/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace OpsWorks { namespace Model { /** *

Contains the response to a DescribeEcsClusters * request.

See Also:

AWS * API Reference

*/ class DescribeEcsClustersResult { public: AWS_OPSWORKS_API DescribeEcsClustersResult(); AWS_OPSWORKS_API DescribeEcsClustersResult(const Aws::AmazonWebServiceResult& result); AWS_OPSWORKS_API DescribeEcsClustersResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of EcsCluster objects containing the cluster * descriptions.

*/ inline const Aws::Vector& GetEcsClusters() const{ return m_ecsClusters; } /** *

A list of EcsCluster objects containing the cluster * descriptions.

*/ inline void SetEcsClusters(const Aws::Vector& value) { m_ecsClusters = value; } /** *

A list of EcsCluster objects containing the cluster * descriptions.

*/ inline void SetEcsClusters(Aws::Vector&& value) { m_ecsClusters = std::move(value); } /** *

A list of EcsCluster objects containing the cluster * descriptions.

*/ inline DescribeEcsClustersResult& WithEcsClusters(const Aws::Vector& value) { SetEcsClusters(value); return *this;} /** *

A list of EcsCluster objects containing the cluster * descriptions.

*/ inline DescribeEcsClustersResult& WithEcsClusters(Aws::Vector&& value) { SetEcsClusters(std::move(value)); return *this;} /** *

A list of EcsCluster objects containing the cluster * descriptions.

*/ inline DescribeEcsClustersResult& AddEcsClusters(const EcsCluster& value) { m_ecsClusters.push_back(value); return *this; } /** *

A list of EcsCluster objects containing the cluster * descriptions.

*/ inline DescribeEcsClustersResult& AddEcsClusters(EcsCluster&& value) { m_ecsClusters.push_back(std::move(value)); return *this; } /** *

If a paginated request does not return all of the remaining results, this * parameter is set to a token that you can assign to the request object's * NextToken parameter to retrieve the next set of results. If the * previous paginated request returned all of the remaining results, this parameter * is set to null.

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

If a paginated request does not return all of the remaining results, this * parameter is set to a token that you can assign to the request object's * NextToken parameter to retrieve the next set of results. If the * previous paginated request returned all of the remaining results, this parameter * is set to null.

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

If a paginated request does not return all of the remaining results, this * parameter is set to a token that you can assign to the request object's * NextToken parameter to retrieve the next set of results. If the * previous paginated request returned all of the remaining results, this parameter * is set to null.

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

If a paginated request does not return all of the remaining results, this * parameter is set to a token that you can assign to the request object's * NextToken parameter to retrieve the next set of results. If the * previous paginated request returned all of the remaining results, this parameter * is set to null.

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

If a paginated request does not return all of the remaining results, this * parameter is set to a token that you can assign to the request object's * NextToken parameter to retrieve the next set of results. If the * previous paginated request returned all of the remaining results, this parameter * is set to null.

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

If a paginated request does not return all of the remaining results, this * parameter is set to a token that you can assign to the request object's * NextToken parameter to retrieve the next set of results. If the * previous paginated request returned all of the remaining results, this parameter * is set to null.

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

If a paginated request does not return all of the remaining results, this * parameter is set to a token that you can assign to the request object's * NextToken parameter to retrieve the next set of results. If the * previous paginated request returned all of the remaining results, this parameter * is set to null.

*/ inline DescribeEcsClustersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeEcsClustersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeEcsClustersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeEcsClustersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_ecsClusters; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace OpsWorks } // namespace Aws