AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeEcsClustersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace OpsWorks
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeEcsClusters"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::Vector<Aws::String>& GetEcsClusterArns() const{ return m_ecsClusterArns; }
42 
46  inline bool EcsClusterArnsHasBeenSet() const { return m_ecsClusterArnsHasBeenSet; }
47 
51  inline void SetEcsClusterArns(const Aws::Vector<Aws::String>& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns = value; }
52 
56  inline void SetEcsClusterArns(Aws::Vector<Aws::String>&& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns = std::move(value); }
57 
61  inline DescribeEcsClustersRequest& WithEcsClusterArns(const Aws::Vector<Aws::String>& value) { SetEcsClusterArns(value); return *this;}
62 
66  inline DescribeEcsClustersRequest& WithEcsClusterArns(Aws::Vector<Aws::String>&& value) { SetEcsClusterArns(std::move(value)); return *this;}
67 
71  inline DescribeEcsClustersRequest& AddEcsClusterArns(const Aws::String& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.push_back(value); return *this; }
72 
76  inline DescribeEcsClustersRequest& AddEcsClusterArns(Aws::String&& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.push_back(std::move(value)); return *this; }
77 
81  inline DescribeEcsClustersRequest& AddEcsClusterArns(const char* value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.push_back(value); return *this; }
82 
83 
88  inline const Aws::String& GetStackId() const{ return m_stackId; }
89 
94  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
95 
100  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
101 
106  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
107 
112  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
113 
118  inline DescribeEcsClustersRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
119 
124  inline DescribeEcsClustersRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
125 
130  inline DescribeEcsClustersRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
131 
132 
142  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
143 
153  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
154 
164  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
165 
175  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
176 
186  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
187 
197  inline DescribeEcsClustersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
198 
208  inline DescribeEcsClustersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
209 
219  inline DescribeEcsClustersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
220 
221 
229  inline int GetMaxResults() const{ return m_maxResults; }
230 
238  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
239 
247  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
248 
256  inline DescribeEcsClustersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
257 
258  private:
259 
260  Aws::Vector<Aws::String> m_ecsClusterArns;
261  bool m_ecsClusterArnsHasBeenSet;
262 
263  Aws::String m_stackId;
264  bool m_stackIdHasBeenSet;
265 
266  Aws::String m_nextToken;
267  bool m_nextTokenHasBeenSet;
268 
269  int m_maxResults;
270  bool m_maxResultsHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace OpsWorks
275 } // namespace Aws
Aws::OpsWorks::Model::DescribeEcsClustersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeEcsClustersRequest.h:153
Aws::OpsWorks::Model::DescribeEcsClustersRequest::WithEcsClusterArns
DescribeEcsClustersRequest & WithEcsClusterArns(Aws::Vector< Aws::String > &&value)
Definition: DescribeEcsClustersRequest.h:66
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SetStackId
void SetStackId(const char *value)
Definition: DescribeEcsClustersRequest.h:112
Aws::OpsWorks::Model::DescribeEcsClustersRequest::WithStackId
DescribeEcsClustersRequest & WithStackId(const char *value)
Definition: DescribeEcsClustersRequest.h:130
Aws::OpsWorks::Model::DescribeEcsClustersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeEcsClustersRequest.h:31
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::DescribeEcsClustersRequest::WithNextToken
DescribeEcsClustersRequest & WithNextToken(Aws::String &&value)
Definition: DescribeEcsClustersRequest.h:208
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeEcsClustersRequest::WithNextToken
DescribeEcsClustersRequest & WithNextToken(const Aws::String &value)
Definition: DescribeEcsClustersRequest.h:197
Aws::OpsWorks::Model::DescribeEcsClustersRequest::WithMaxResults
DescribeEcsClustersRequest & WithMaxResults(int value)
Definition: DescribeEcsClustersRequest.h:256
Aws::OpsWorks::Model::DescribeEcsClustersRequest::AddEcsClusterArns
DescribeEcsClustersRequest & AddEcsClusterArns(Aws::String &&value)
Definition: DescribeEcsClustersRequest.h:76
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: DescribeEcsClustersRequest.h:106
AWSVector.h
Aws::OpsWorks::Model::DescribeEcsClustersRequest::GetEcsClusterArns
const Aws::Vector< Aws::String > & GetEcsClusterArns() const
Definition: DescribeEcsClustersRequest.h:41
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SetEcsClusterArns
void SetEcsClusterArns(Aws::Vector< Aws::String > &&value)
Definition: DescribeEcsClustersRequest.h:56
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: DescribeEcsClustersRequest.h:100
OpsWorksRequest.h
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeEcsClustersRequest.h:247
Aws::OpsWorks::Model::DescribeEcsClustersRequest::WithEcsClusterArns
DescribeEcsClustersRequest & WithEcsClusterArns(const Aws::Vector< Aws::String > &value)
Definition: DescribeEcsClustersRequest.h:61
Aws::OpsWorks::Model::DescribeEcsClustersRequest::WithStackId
DescribeEcsClustersRequest & WithStackId(Aws::String &&value)
Definition: DescribeEcsClustersRequest.h:124
Aws::OpsWorks::Model::DescribeEcsClustersRequest::EcsClusterArnsHasBeenSet
bool EcsClusterArnsHasBeenSet() const
Definition: DescribeEcsClustersRequest.h:46
Aws::OpsWorks::Model::DescribeEcsClustersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeEcsClustersRequest.h:238
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeEcsClustersRequest.h:175
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SetEcsClusterArns
void SetEcsClusterArns(const Aws::Vector< Aws::String > &value)
Definition: DescribeEcsClustersRequest.h:51
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeEcsClustersRequest.h:164
Aws::OpsWorks::Model::DescribeEcsClustersRequest
Definition: DescribeEcsClustersRequest.h:23
AWSString.h
Aws::OpsWorks::Model::DescribeEcsClustersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeEcsClustersRequest.h:186
Aws::OpsWorks::Model::DescribeEcsClustersRequest::WithStackId
DescribeEcsClustersRequest & WithStackId(const Aws::String &value)
Definition: DescribeEcsClustersRequest.h:118
Aws::OpsWorks::Model::DescribeEcsClustersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeEcsClustersRequest.h:142
Aws::OpsWorks::Model::DescribeEcsClustersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::DescribeEcsClustersRequest::AddEcsClusterArns
DescribeEcsClustersRequest & AddEcsClusterArns(const Aws::String &value)
Definition: DescribeEcsClustersRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeEcsClustersRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeEcsClustersRequest.h:229
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DescribeEcsClustersRequest::GetStackId
const Aws::String & GetStackId() const
Definition: DescribeEcsClustersRequest.h:88
Aws::OpsWorks::Model::DescribeEcsClustersRequest::DescribeEcsClustersRequest
DescribeEcsClustersRequest()
Aws::OpsWorks::Model::DescribeEcsClustersRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: DescribeEcsClustersRequest.h:94
Aws::OpsWorks::Model::DescribeEcsClustersRequest::WithNextToken
DescribeEcsClustersRequest & WithNextToken(const char *value)
Definition: DescribeEcsClustersRequest.h:219
Aws::OpsWorks::Model::DescribeEcsClustersRequest::AddEcsClusterArns
DescribeEcsClustersRequest & AddEcsClusterArns(const char *value)
Definition: DescribeEcsClustersRequest.h:81