/** * 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 ECS { namespace Model { /** */ class DescribeCapacityProvidersRequest : public ECSRequest { public: AWS_ECS_API DescribeCapacityProvidersRequest(); // 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 "DescribeCapacityProviders"; } AWS_ECS_API Aws::String SerializePayload() const override; AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The short name or full Amazon Resource Name (ARN) of one or more capacity * providers. Up to 100 capacity providers can be described in an * action.

*/ inline const Aws::Vector& GetCapacityProviders() const{ return m_capacityProviders; } /** *

The short name or full Amazon Resource Name (ARN) of one or more capacity * providers. Up to 100 capacity providers can be described in an * action.

*/ inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; } /** *

The short name or full Amazon Resource Name (ARN) of one or more capacity * providers. Up to 100 capacity providers can be described in an * action.

*/ inline void SetCapacityProviders(const Aws::Vector& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = value; } /** *

The short name or full Amazon Resource Name (ARN) of one or more capacity * providers. Up to 100 capacity providers can be described in an * action.

*/ inline void SetCapacityProviders(Aws::Vector&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = std::move(value); } /** *

The short name or full Amazon Resource Name (ARN) of one or more capacity * providers. Up to 100 capacity providers can be described in an * action.

*/ inline DescribeCapacityProvidersRequest& WithCapacityProviders(const Aws::Vector& value) { SetCapacityProviders(value); return *this;} /** *

The short name or full Amazon Resource Name (ARN) of one or more capacity * providers. Up to 100 capacity providers can be described in an * action.

*/ inline DescribeCapacityProvidersRequest& WithCapacityProviders(Aws::Vector&& value) { SetCapacityProviders(std::move(value)); return *this;} /** *

The short name or full Amazon Resource Name (ARN) of one or more capacity * providers. Up to 100 capacity providers can be described in an * action.

*/ inline DescribeCapacityProvidersRequest& AddCapacityProviders(const Aws::String& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; } /** *

The short name or full Amazon Resource Name (ARN) of one or more capacity * providers. Up to 100 capacity providers can be described in an * action.

*/ inline DescribeCapacityProvidersRequest& AddCapacityProviders(Aws::String&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(std::move(value)); return *this; } /** *

The short name or full Amazon Resource Name (ARN) of one or more capacity * providers. Up to 100 capacity providers can be described in an * action.

*/ inline DescribeCapacityProvidersRequest& AddCapacityProviders(const char* value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; } /** *

Specifies whether or not you want to see the resource tags for the capacity * provider. If TAGS is specified, the tags are included in the * response. If this field is omitted, tags aren't included in the response.

*/ inline const Aws::Vector& GetInclude() const{ return m_include; } /** *

Specifies whether or not you want to see the resource tags for the capacity * provider. If TAGS is specified, the tags are included in the * response. If this field is omitted, tags aren't included in the response.

*/ inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; } /** *

Specifies whether or not you want to see the resource tags for the capacity * provider. If TAGS is specified, the tags are included in the * response. If this field is omitted, tags aren't included in the response.

*/ inline void SetInclude(const Aws::Vector& value) { m_includeHasBeenSet = true; m_include = value; } /** *

Specifies whether or not you want to see the resource tags for the capacity * provider. If TAGS is specified, the tags are included in the * response. If this field is omitted, tags aren't included in the response.

*/ inline void SetInclude(Aws::Vector&& value) { m_includeHasBeenSet = true; m_include = std::move(value); } /** *

Specifies whether or not you want to see the resource tags for the capacity * provider. If TAGS is specified, the tags are included in the * response. If this field is omitted, tags aren't included in the response.

*/ inline DescribeCapacityProvidersRequest& WithInclude(const Aws::Vector& value) { SetInclude(value); return *this;} /** *

Specifies whether or not you want to see the resource tags for the capacity * provider. If TAGS is specified, the tags are included in the * response. If this field is omitted, tags aren't included in the response.

*/ inline DescribeCapacityProvidersRequest& WithInclude(Aws::Vector&& value) { SetInclude(std::move(value)); return *this;} /** *

Specifies whether or not you want to see the resource tags for the capacity * provider. If TAGS is specified, the tags are included in the * response. If this field is omitted, tags aren't included in the response.

*/ inline DescribeCapacityProvidersRequest& AddInclude(const CapacityProviderField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; } /** *

Specifies whether or not you want to see the resource tags for the capacity * provider. If TAGS is specified, the tags are included in the * response. If this field is omitted, tags aren't included in the response.

*/ inline DescribeCapacityProvidersRequest& AddInclude(CapacityProviderField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; } /** *

The maximum number of account setting results returned by * DescribeCapacityProviders in paginated output. When this parameter * is used, DescribeCapacityProviders only returns * maxResults results in a single page along with a * nextToken response element. The remaining results of the initial * request can be seen by sending another DescribeCapacityProviders * request with the returned nextToken value. This value can be * between 1 and 10. If this parameter is not used, then * DescribeCapacityProviders returns up to 10 results and a * nextToken value if applicable.

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

The maximum number of account setting results returned by * DescribeCapacityProviders in paginated output. When this parameter * is used, DescribeCapacityProviders only returns * maxResults results in a single page along with a * nextToken response element. The remaining results of the initial * request can be seen by sending another DescribeCapacityProviders * request with the returned nextToken value. This value can be * between 1 and 10. If this parameter is not used, then * DescribeCapacityProviders returns up to 10 results and a * nextToken value if applicable.

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

The maximum number of account setting results returned by * DescribeCapacityProviders in paginated output. When this parameter * is used, DescribeCapacityProviders only returns * maxResults results in a single page along with a * nextToken response element. The remaining results of the initial * request can be seen by sending another DescribeCapacityProviders * request with the returned nextToken value. This value can be * between 1 and 10. If this parameter is not used, then * DescribeCapacityProviders returns up to 10 results and a * nextToken value if applicable.

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

The maximum number of account setting results returned by * DescribeCapacityProviders in paginated output. When this parameter * is used, DescribeCapacityProviders only returns * maxResults results in a single page along with a * nextToken response element. The remaining results of the initial * request can be seen by sending another DescribeCapacityProviders * request with the returned nextToken value. This value can be * between 1 and 10. If this parameter is not used, then * DescribeCapacityProviders returns up to 10 results and a * nextToken value if applicable.

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

The nextToken value returned from a previous paginated * DescribeCapacityProviders request where maxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the nextToken * value.

This token should be treated as an opaque identifier that * is only used to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeCapacityProviders request where maxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the nextToken * value.

This token should be treated as an opaque identifier that * is only used to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeCapacityProviders request where maxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the nextToken * value.

This token should be treated as an opaque identifier that * is only used to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeCapacityProviders request where maxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the nextToken * value.

This token should be treated as an opaque identifier that * is only used to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeCapacityProviders request where maxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the nextToken * value.

This token should be treated as an opaque identifier that * is only used to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeCapacityProviders request where maxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the nextToken * value.

This token should be treated as an opaque identifier that * is only used to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeCapacityProviders request where maxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the nextToken * value.

This token should be treated as an opaque identifier that * is only used to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeCapacityProviders request where maxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the nextToken * value.

This token should be treated as an opaque identifier that * is only used to retrieve the next items in a list and not for other programmatic * purposes.

*/ inline DescribeCapacityProvidersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_capacityProviders; bool m_capacityProvidersHasBeenSet = false; Aws::Vector m_include; bool m_includeHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws