/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace AutoScalingPlans { namespace Model { /** */ class DescribeScalingPlanResourcesRequest : public AutoScalingPlansRequest { public: AWS_AUTOSCALINGPLANS_API DescribeScalingPlanResourcesRequest(); // 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 "DescribeScalingPlanResources"; } AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override; AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the scaling plan.

*/ inline const Aws::String& GetScalingPlanName() const{ return m_scalingPlanName; } /** *

The name of the scaling plan.

*/ inline bool ScalingPlanNameHasBeenSet() const { return m_scalingPlanNameHasBeenSet; } /** *

The name of the scaling plan.

*/ inline void SetScalingPlanName(const Aws::String& value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName = value; } /** *

The name of the scaling plan.

*/ inline void SetScalingPlanName(Aws::String&& value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName = std::move(value); } /** *

The name of the scaling plan.

*/ inline void SetScalingPlanName(const char* value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName.assign(value); } /** *

The name of the scaling plan.

*/ inline DescribeScalingPlanResourcesRequest& WithScalingPlanName(const Aws::String& value) { SetScalingPlanName(value); return *this;} /** *

The name of the scaling plan.

*/ inline DescribeScalingPlanResourcesRequest& WithScalingPlanName(Aws::String&& value) { SetScalingPlanName(std::move(value)); return *this;} /** *

The name of the scaling plan.

*/ inline DescribeScalingPlanResourcesRequest& WithScalingPlanName(const char* value) { SetScalingPlanName(value); return *this;} /** *

The version number of the scaling plan. Currently, the only valid value is * 1.

*/ inline long long GetScalingPlanVersion() const{ return m_scalingPlanVersion; } /** *

The version number of the scaling plan. Currently, the only valid value is * 1.

*/ inline bool ScalingPlanVersionHasBeenSet() const { return m_scalingPlanVersionHasBeenSet; } /** *

The version number of the scaling plan. Currently, the only valid value is * 1.

*/ inline void SetScalingPlanVersion(long long value) { m_scalingPlanVersionHasBeenSet = true; m_scalingPlanVersion = value; } /** *

The version number of the scaling plan. Currently, the only valid value is * 1.

*/ inline DescribeScalingPlanResourcesRequest& WithScalingPlanVersion(long long value) { SetScalingPlanVersion(value); return *this;} /** *

The maximum number of scalable resources to return. The value must be between * 1 and 50. The default value is 50.

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

The maximum number of scalable resources to return. The value must be between * 1 and 50. The default value is 50.

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

The maximum number of scalable resources to return. The value must be between * 1 and 50. The default value is 50.

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

The maximum number of scalable resources to return. The value must be between * 1 and 50. The default value is 50.

*/ inline DescribeScalingPlanResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

*/ inline DescribeScalingPlanResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_scalingPlanName; bool m_scalingPlanNameHasBeenSet = false; long long m_scalingPlanVersion; bool m_scalingPlanVersionHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace AutoScalingPlans } // namespace Aws