/** * 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 AutoScalingPlans { namespace Model { /** */ class DescribeScalingPlansRequest : public AutoScalingPlansRequest { public: AWS_AUTOSCALINGPLANS_API DescribeScalingPlansRequest(); // 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 "DescribeScalingPlans"; } AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override; AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The names of the scaling plans (up to 10). If you specify application * sources, you cannot specify scaling plan names.

*/ inline const Aws::Vector& GetScalingPlanNames() const{ return m_scalingPlanNames; } /** *

The names of the scaling plans (up to 10). If you specify application * sources, you cannot specify scaling plan names.

*/ inline bool ScalingPlanNamesHasBeenSet() const { return m_scalingPlanNamesHasBeenSet; } /** *

The names of the scaling plans (up to 10). If you specify application * sources, you cannot specify scaling plan names.

*/ inline void SetScalingPlanNames(const Aws::Vector& value) { m_scalingPlanNamesHasBeenSet = true; m_scalingPlanNames = value; } /** *

The names of the scaling plans (up to 10). If you specify application * sources, you cannot specify scaling plan names.

*/ inline void SetScalingPlanNames(Aws::Vector&& value) { m_scalingPlanNamesHasBeenSet = true; m_scalingPlanNames = std::move(value); } /** *

The names of the scaling plans (up to 10). If you specify application * sources, you cannot specify scaling plan names.

*/ inline DescribeScalingPlansRequest& WithScalingPlanNames(const Aws::Vector& value) { SetScalingPlanNames(value); return *this;} /** *

The names of the scaling plans (up to 10). If you specify application * sources, you cannot specify scaling plan names.

*/ inline DescribeScalingPlansRequest& WithScalingPlanNames(Aws::Vector&& value) { SetScalingPlanNames(std::move(value)); return *this;} /** *

The names of the scaling plans (up to 10). If you specify application * sources, you cannot specify scaling plan names.

*/ inline DescribeScalingPlansRequest& AddScalingPlanNames(const Aws::String& value) { m_scalingPlanNamesHasBeenSet = true; m_scalingPlanNames.push_back(value); return *this; } /** *

The names of the scaling plans (up to 10). If you specify application * sources, you cannot specify scaling plan names.

*/ inline DescribeScalingPlansRequest& AddScalingPlanNames(Aws::String&& value) { m_scalingPlanNamesHasBeenSet = true; m_scalingPlanNames.push_back(std::move(value)); return *this; } /** *

The names of the scaling plans (up to 10). If you specify application * sources, you cannot specify scaling plan names.

*/ inline DescribeScalingPlansRequest& AddScalingPlanNames(const char* value) { m_scalingPlanNamesHasBeenSet = true; m_scalingPlanNames.push_back(value); return *this; } /** *

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

If you specify a scaling plan version, you must * also specify a scaling plan name.

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

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

If you specify a scaling plan version, you must * also specify a scaling plan name.

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

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

If you specify a scaling plan version, you must * also specify a scaling plan name.

*/ 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.

If you specify a scaling plan version, you must * also specify a scaling plan name.

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

The sources for the applications (up to 10). If you specify scaling plan * names, you cannot specify application sources.

*/ inline const Aws::Vector& GetApplicationSources() const{ return m_applicationSources; } /** *

The sources for the applications (up to 10). If you specify scaling plan * names, you cannot specify application sources.

*/ inline bool ApplicationSourcesHasBeenSet() const { return m_applicationSourcesHasBeenSet; } /** *

The sources for the applications (up to 10). If you specify scaling plan * names, you cannot specify application sources.

*/ inline void SetApplicationSources(const Aws::Vector& value) { m_applicationSourcesHasBeenSet = true; m_applicationSources = value; } /** *

The sources for the applications (up to 10). If you specify scaling plan * names, you cannot specify application sources.

*/ inline void SetApplicationSources(Aws::Vector&& value) { m_applicationSourcesHasBeenSet = true; m_applicationSources = std::move(value); } /** *

The sources for the applications (up to 10). If you specify scaling plan * names, you cannot specify application sources.

*/ inline DescribeScalingPlansRequest& WithApplicationSources(const Aws::Vector& value) { SetApplicationSources(value); return *this;} /** *

The sources for the applications (up to 10). If you specify scaling plan * names, you cannot specify application sources.

*/ inline DescribeScalingPlansRequest& WithApplicationSources(Aws::Vector&& value) { SetApplicationSources(std::move(value)); return *this;} /** *

The sources for the applications (up to 10). If you specify scaling plan * names, you cannot specify application sources.

*/ inline DescribeScalingPlansRequest& AddApplicationSources(const ApplicationSource& value) { m_applicationSourcesHasBeenSet = true; m_applicationSources.push_back(value); return *this; } /** *

The sources for the applications (up to 10). If you specify scaling plan * names, you cannot specify application sources.

*/ inline DescribeScalingPlansRequest& AddApplicationSources(ApplicationSource&& value) { m_applicationSourcesHasBeenSet = true; m_applicationSources.push_back(std::move(value)); return *this; } /** *

The maximum number of scalable resources to return. This value can 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. This value can 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. This value can 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. This value can be between * 1 and 50. The default value is 50.

*/ inline DescribeScalingPlansRequest& 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 DescribeScalingPlansRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of results.

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

The token for the next set of results.

*/ inline DescribeScalingPlansRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_scalingPlanNames; bool m_scalingPlanNamesHasBeenSet = false; long long m_scalingPlanVersion; bool m_scalingPlanVersionHasBeenSet = false; Aws::Vector m_applicationSources; bool m_applicationSourcesHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace AutoScalingPlans } // namespace Aws