/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace ComputeOptimizer { namespace Model { /** */ class DeleteRecommendationPreferencesRequest : public ComputeOptimizerRequest { public: AWS_COMPUTEOPTIMIZER_API DeleteRecommendationPreferencesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteRecommendationPreferences"; } AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override; AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The target resource type of the recommendation preference to delete.

*

The Ec2Instance option encompasses standalone instances and * instances that are part of Auto Scaling groups. The * AutoScalingGroup option encompasses only instances that are part of * an Auto Scaling group.

The valid values for this parameter are * Ec2Instance and AutoScalingGroup.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The target resource type of the recommendation preference to delete.

*

The Ec2Instance option encompasses standalone instances and * instances that are part of Auto Scaling groups. The * AutoScalingGroup option encompasses only instances that are part of * an Auto Scaling group.

The valid values for this parameter are * Ec2Instance and AutoScalingGroup.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The target resource type of the recommendation preference to delete.

*

The Ec2Instance option encompasses standalone instances and * instances that are part of Auto Scaling groups. The * AutoScalingGroup option encompasses only instances that are part of * an Auto Scaling group.

The valid values for this parameter are * Ec2Instance and AutoScalingGroup.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The target resource type of the recommendation preference to delete.

*

The Ec2Instance option encompasses standalone instances and * instances that are part of Auto Scaling groups. The * AutoScalingGroup option encompasses only instances that are part of * an Auto Scaling group.

The valid values for this parameter are * Ec2Instance and AutoScalingGroup.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The target resource type of the recommendation preference to delete.

*

The Ec2Instance option encompasses standalone instances and * instances that are part of Auto Scaling groups. The * AutoScalingGroup option encompasses only instances that are part of * an Auto Scaling group.

The valid values for this parameter are * Ec2Instance and AutoScalingGroup.

*/ inline DeleteRecommendationPreferencesRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The target resource type of the recommendation preference to delete.

*

The Ec2Instance option encompasses standalone instances and * instances that are part of Auto Scaling groups. The * AutoScalingGroup option encompasses only instances that are part of * an Auto Scaling group.

The valid values for this parameter are * Ec2Instance and AutoScalingGroup.

*/ inline DeleteRecommendationPreferencesRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

An object that describes the scope of the recommendation preference to * delete.

You can delete recommendation preferences that are created at the * organization level (for management accounts of an organization only), account * level, and resource level. For more information, see Activating * enhanced infrastructure metrics in the Compute Optimizer User * Guide.

*/ inline const Scope& GetScope() const{ return m_scope; } /** *

An object that describes the scope of the recommendation preference to * delete.

You can delete recommendation preferences that are created at the * organization level (for management accounts of an organization only), account * level, and resource level. For more information, see Activating * enhanced infrastructure metrics in the Compute Optimizer User * Guide.

*/ inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } /** *

An object that describes the scope of the recommendation preference to * delete.

You can delete recommendation preferences that are created at the * organization level (for management accounts of an organization only), account * level, and resource level. For more information, see Activating * enhanced infrastructure metrics in the Compute Optimizer User * Guide.

*/ inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; } /** *

An object that describes the scope of the recommendation preference to * delete.

You can delete recommendation preferences that are created at the * organization level (for management accounts of an organization only), account * level, and resource level. For more information, see Activating * enhanced infrastructure metrics in the Compute Optimizer User * Guide.

*/ inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } /** *

An object that describes the scope of the recommendation preference to * delete.

You can delete recommendation preferences that are created at the * organization level (for management accounts of an organization only), account * level, and resource level. For more information, see Activating * enhanced infrastructure metrics in the Compute Optimizer User * Guide.

*/ inline DeleteRecommendationPreferencesRequest& WithScope(const Scope& value) { SetScope(value); return *this;} /** *

An object that describes the scope of the recommendation preference to * delete.

You can delete recommendation preferences that are created at the * organization level (for management accounts of an organization only), account * level, and resource level. For more information, see Activating * enhanced infrastructure metrics in the Compute Optimizer User * Guide.

*/ inline DeleteRecommendationPreferencesRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;} /** *

The name of the recommendation preference to delete.

*/ inline const Aws::Vector& GetRecommendationPreferenceNames() const{ return m_recommendationPreferenceNames; } /** *

The name of the recommendation preference to delete.

*/ inline bool RecommendationPreferenceNamesHasBeenSet() const { return m_recommendationPreferenceNamesHasBeenSet; } /** *

The name of the recommendation preference to delete.

*/ inline void SetRecommendationPreferenceNames(const Aws::Vector& value) { m_recommendationPreferenceNamesHasBeenSet = true; m_recommendationPreferenceNames = value; } /** *

The name of the recommendation preference to delete.

*/ inline void SetRecommendationPreferenceNames(Aws::Vector&& value) { m_recommendationPreferenceNamesHasBeenSet = true; m_recommendationPreferenceNames = std::move(value); } /** *

The name of the recommendation preference to delete.

*/ inline DeleteRecommendationPreferencesRequest& WithRecommendationPreferenceNames(const Aws::Vector& value) { SetRecommendationPreferenceNames(value); return *this;} /** *

The name of the recommendation preference to delete.

*/ inline DeleteRecommendationPreferencesRequest& WithRecommendationPreferenceNames(Aws::Vector&& value) { SetRecommendationPreferenceNames(std::move(value)); return *this;} /** *

The name of the recommendation preference to delete.

*/ inline DeleteRecommendationPreferencesRequest& AddRecommendationPreferenceNames(const RecommendationPreferenceName& value) { m_recommendationPreferenceNamesHasBeenSet = true; m_recommendationPreferenceNames.push_back(value); return *this; } /** *

The name of the recommendation preference to delete.

*/ inline DeleteRecommendationPreferencesRequest& AddRecommendationPreferenceNames(RecommendationPreferenceName&& value) { m_recommendationPreferenceNamesHasBeenSet = true; m_recommendationPreferenceNames.push_back(std::move(value)); return *this; } private: ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Scope m_scope; bool m_scopeHasBeenSet = false; Aws::Vector m_recommendationPreferenceNames; bool m_recommendationPreferenceNamesHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws