AWS SDK for C++  1.9.105
AWS SDK for C++
DescribeEcsClustersResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace OpsWorks
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
47  inline const Aws::Vector<EcsCluster>& GetEcsClusters() const{ return m_ecsClusters; }
48 
53  inline void SetEcsClusters(const Aws::Vector<EcsCluster>& value) { m_ecsClusters = value; }
54 
59  inline void SetEcsClusters(Aws::Vector<EcsCluster>&& value) { m_ecsClusters = std::move(value); }
60 
65  inline DescribeEcsClustersResult& WithEcsClusters(const Aws::Vector<EcsCluster>& value) { SetEcsClusters(value); return *this;}
66 
71  inline DescribeEcsClustersResult& WithEcsClusters(Aws::Vector<EcsCluster>&& value) { SetEcsClusters(std::move(value)); return *this;}
72 
77  inline DescribeEcsClustersResult& AddEcsClusters(const EcsCluster& value) { m_ecsClusters.push_back(value); return *this; }
78 
83  inline DescribeEcsClustersResult& AddEcsClusters(EcsCluster&& value) { m_ecsClusters.push_back(std::move(value)); return *this; }
84 
85 
93  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
94 
102  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
103 
111  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
112 
120  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
121 
129  inline DescribeEcsClustersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
130 
138  inline DescribeEcsClustersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
139 
147  inline DescribeEcsClustersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
148 
149  private:
150 
151  Aws::Vector<EcsCluster> m_ecsClusters;
152 
153  Aws::String m_nextToken;
154  };
155 
156 } // namespace Model
157 } // namespace OpsWorks
158 } // namespace Aws
Aws::OpsWorks::Model::DescribeEcsClustersResult
Definition: DescribeEcsClustersResult.h:36
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::OpsWorks::Model::DescribeEcsClustersResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeEcsClustersResult.h:120
Aws::OpsWorks::Model::DescribeEcsClustersResult::WithEcsClusters
DescribeEcsClustersResult & WithEcsClusters(Aws::Vector< EcsCluster > &&value)
Definition: DescribeEcsClustersResult.h:71
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeEcsClustersResult::WithEcsClusters
DescribeEcsClustersResult & WithEcsClusters(const Aws::Vector< EcsCluster > &value)
Definition: DescribeEcsClustersResult.h:65
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
EcsCluster.h
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DescribeEcsClustersResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeEcsClustersResult.h:93
Aws::OpsWorks::Model::DescribeEcsClustersResult::SetEcsClusters
void SetEcsClusters(const Aws::Vector< EcsCluster > &value)
Definition: DescribeEcsClustersResult.h:53
Aws::OpsWorks::Model::DescribeEcsClustersResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeEcsClustersResult.h:102
Aws::OpsWorks::Model::DescribeEcsClustersResult::WithNextToken
DescribeEcsClustersResult & WithNextToken(Aws::String &&value)
Definition: DescribeEcsClustersResult.h:138
Aws::OpsWorks::Model::DescribeEcsClustersResult::WithNextToken
DescribeEcsClustersResult & WithNextToken(const char *value)
Definition: DescribeEcsClustersResult.h:147
AWSString.h
Aws::OpsWorks::Model::DescribeEcsClustersResult::SetEcsClusters
void SetEcsClusters(Aws::Vector< EcsCluster > &&value)
Definition: DescribeEcsClustersResult.h:59
Aws::OpsWorks::Model::DescribeEcsClustersResult::operator=
DescribeEcsClustersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::DescribeEcsClustersResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeEcsClustersResult.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeEcsClustersResult::AddEcsClusters
DescribeEcsClustersResult & AddEcsClusters(const EcsCluster &value)
Definition: DescribeEcsClustersResult.h:77
Aws::OpsWorks::Model::DescribeEcsClustersResult::WithNextToken
DescribeEcsClustersResult & WithNextToken(const Aws::String &value)
Definition: DescribeEcsClustersResult.h:129
Aws::OpsWorks::Model::DescribeEcsClustersResult::DescribeEcsClustersResult
DescribeEcsClustersResult()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DescribeEcsClustersResult::GetEcsClusters
const Aws::Vector< EcsCluster > & GetEcsClusters() const
Definition: DescribeEcsClustersResult.h:47
Aws::OpsWorks::Model::EcsCluster
Definition: EcsCluster.h:32
Aws::OpsWorks::Model::DescribeEcsClustersResult::DescribeEcsClustersResult
DescribeEcsClustersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::DescribeEcsClustersResult::AddEcsClusters
DescribeEcsClustersResult & AddEcsClusters(EcsCluster &&value)
Definition: DescribeEcsClustersResult.h:83