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

A list of ARNs, one for each cluster to be described.

*/ inline const Aws::Vector& GetEcsClusterArns() const{ return m_ecsClusterArns; } /** *

A list of ARNs, one for each cluster to be described.

*/ inline bool EcsClusterArnsHasBeenSet() const { return m_ecsClusterArnsHasBeenSet; } /** *

A list of ARNs, one for each cluster to be described.

*/ inline void SetEcsClusterArns(const Aws::Vector& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns = value; } /** *

A list of ARNs, one for each cluster to be described.

*/ inline void SetEcsClusterArns(Aws::Vector&& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns = std::move(value); } /** *

A list of ARNs, one for each cluster to be described.

*/ inline DescribeEcsClustersRequest& WithEcsClusterArns(const Aws::Vector& value) { SetEcsClusterArns(value); return *this;} /** *

A list of ARNs, one for each cluster to be described.

*/ inline DescribeEcsClustersRequest& WithEcsClusterArns(Aws::Vector&& value) { SetEcsClusterArns(std::move(value)); return *this;} /** *

A list of ARNs, one for each cluster to be described.

*/ inline DescribeEcsClustersRequest& AddEcsClusterArns(const Aws::String& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.push_back(value); return *this; } /** *

A list of ARNs, one for each cluster to be described.

*/ inline DescribeEcsClustersRequest& AddEcsClusterArns(Aws::String&& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.push_back(std::move(value)); return *this; } /** *

A list of ARNs, one for each cluster to be described.

*/ inline DescribeEcsClustersRequest& AddEcsClusterArns(const char* value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.push_back(value); return *this; } /** *

A stack ID. DescribeEcsClusters returns a description of the * cluster that is registered with the stack.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

A stack ID. DescribeEcsClusters returns a description of the * cluster that is registered with the stack.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

A stack ID. DescribeEcsClusters returns a description of the * cluster that is registered with the stack.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

A stack ID. DescribeEcsClusters returns a description of the * cluster that is registered with the stack.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

A stack ID. DescribeEcsClusters returns a description of the * cluster that is registered with the stack.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

A stack ID. DescribeEcsClusters returns a description of the * cluster that is registered with the stack.

*/ inline DescribeEcsClustersRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

A stack ID. DescribeEcsClusters returns a description of the * cluster that is registered with the stack.

*/ inline DescribeEcsClustersRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

A stack ID. DescribeEcsClusters returns a description of the * cluster that is registered with the stack.

*/ inline DescribeEcsClustersRequest& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

If the previous paginated request did not return all of the remaining * results, the response object'sNextToken parameter value is set to a * token. To retrieve the next set of results, call * DescribeEcsClusters again and assign that token to the request * object's NextToken parameter. If there are no remaining results, * the previous response object's NextToken parameter is set to * null.

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

If the previous paginated request did not return all of the remaining * results, the response object'sNextToken parameter value is set to a * token. To retrieve the next set of results, call * DescribeEcsClusters again and assign that token to the request * object's NextToken parameter. If there are no remaining results, * the previous response object's NextToken parameter is set to * null.

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

If the previous paginated request did not return all of the remaining * results, the response object'sNextToken parameter value is set to a * token. To retrieve the next set of results, call * DescribeEcsClusters again and assign that token to the request * object's NextToken parameter. If there are no remaining results, * the previous response object's NextToken parameter is set to * null.

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

If the previous paginated request did not return all of the remaining * results, the response object'sNextToken parameter value is set to a * token. To retrieve the next set of results, call * DescribeEcsClusters again and assign that token to the request * object's NextToken parameter. If there are no remaining results, * the previous response object's NextToken parameter is set to * null.

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

If the previous paginated request did not return all of the remaining * results, the response object'sNextToken parameter value is set to a * token. To retrieve the next set of results, call * DescribeEcsClusters again and assign that token to the request * object's NextToken parameter. If there are no remaining results, * the previous response object's NextToken parameter is set to * null.

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

If the previous paginated request did not return all of the remaining * results, the response object'sNextToken parameter value is set to a * token. To retrieve the next set of results, call * DescribeEcsClusters again and assign that token to the request * object's NextToken parameter. If there are no remaining results, * the previous response object's NextToken parameter is set to * null.

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

If the previous paginated request did not return all of the remaining * results, the response object'sNextToken parameter value is set to a * token. To retrieve the next set of results, call * DescribeEcsClusters again and assign that token to the request * object's NextToken parameter. If there are no remaining results, * the previous response object's NextToken parameter is set to * null.

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

If the previous paginated request did not return all of the remaining * results, the response object'sNextToken parameter value is set to a * token. To retrieve the next set of results, call * DescribeEcsClusters again and assign that token to the request * object's NextToken parameter. If there are no remaining results, * the previous response object's NextToken parameter is set to * null.

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

To receive a paginated response, use this parameter to specify the maximum * number of results to be returned with a single call. If the number of available * results exceeds this maximum, the response includes a NextToken * value that you can assign to the NextToken request parameter to get * the next set of results.

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

To receive a paginated response, use this parameter to specify the maximum * number of results to be returned with a single call. If the number of available * results exceeds this maximum, the response includes a NextToken * value that you can assign to the NextToken request parameter to get * the next set of results.

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

To receive a paginated response, use this parameter to specify the maximum * number of results to be returned with a single call. If the number of available * results exceeds this maximum, the response includes a NextToken * value that you can assign to the NextToken request parameter to get * the next set of results.

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

To receive a paginated response, use this parameter to specify the maximum * number of results to be returned with a single call. If the number of available * results exceeds this maximum, the response includes a NextToken * value that you can assign to the NextToken request parameter to get * the next set of results.

*/ inline DescribeEcsClustersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::Vector m_ecsClusterArns; bool m_ecsClusterArnsHasBeenSet = false; Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws