/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ComputeOptimizer { namespace Model { /** */ class GetRecommendationPreferencesRequest : public ComputeOptimizerRequest { public: AWS_COMPUTEOPTIMIZER_API GetRecommendationPreferencesRequest(); // 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 "GetRecommendationPreferences"; } 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 for which to return * preferences.

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 for which to return * preferences.

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 for which to return * preferences.

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 for which to return * preferences.

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 for which to return * preferences.

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 GetRecommendationPreferencesRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The target resource type of the recommendation preference for which to return * preferences.

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 GetRecommendationPreferencesRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

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

You can return 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 * return.

You can return 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 * return.

You can return 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 * return.

You can return 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 * return.

You can return 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 GetRecommendationPreferencesRequest& WithScope(const Scope& value) { SetScope(value); return *this;} /** *

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

You can return 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 GetRecommendationPreferencesRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;} /** *

The token to advance to the next page of recommendation preferences.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to advance to the next page of recommendation preferences.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token to advance to the next page of recommendation preferences.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token to advance to the next page of recommendation preferences.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token to advance to the next page of recommendation preferences.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token to advance to the next page of recommendation preferences.

*/ inline GetRecommendationPreferencesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to advance to the next page of recommendation preferences.

*/ inline GetRecommendationPreferencesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to advance to the next page of recommendation preferences.

*/ inline GetRecommendationPreferencesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of recommendation preferences to return with a single * request.

To retrieve the remaining results, make another request with the * returned nextToken value.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of recommendation preferences to return with a single * request.

To retrieve the remaining results, make another request with the * returned nextToken value.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of recommendation preferences to return with a single * request.

To retrieve the remaining results, make another request with the * returned nextToken value.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of recommendation preferences to return with a single * request.

To retrieve the remaining results, make another request with the * returned nextToken value.

*/ inline GetRecommendationPreferencesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Scope m_scope; bool m_scopeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws