AWS SDK for C++  1.9.16
AWS SDK for C++
ListClustersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ECS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListClusters"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
46  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
47 
57  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 
68  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
69 
79  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
80 
90  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
91 
101  inline ListClustersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
112  inline ListClustersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
113 
123  inline ListClustersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
124 
125 
136  inline int GetMaxResults() const{ return m_maxResults; }
137 
148  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
149 
160  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
161 
172  inline ListClustersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
173 
174  private:
175 
176  Aws::String m_nextToken;
177  bool m_nextTokenHasBeenSet;
178 
179  int m_maxResults;
180  bool m_maxResultsHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace ECS
185 } // namespace Aws
Aws::ECS::Model::ListClustersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListClustersRequest.h:148
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::ListClustersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListClustersRequest.h:68
Aws::ECS::Model::ListClustersRequest::GetMaxResults
int GetMaxResults() const
Definition: ListClustersRequest.h:136
Aws::ECS::Model::ListClustersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListClustersRequest.h:46
Aws::ECS::Model::ListClustersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ListClustersRequest::ListClustersRequest
ListClustersRequest()
Aws::ECS::Model::ListClustersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListClustersRequest.h:30
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::ListClustersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListClustersRequest.h:90
Aws::ECS::Model::ListClustersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListClustersRequest.h:79
Aws::ECS::Model::ListClustersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::ListClustersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListClustersRequest.h:160
Aws::ECS::Model::ListClustersRequest::WithMaxResults
ListClustersRequest & WithMaxResults(int value)
Definition: ListClustersRequest.h:172
AWSString.h
Aws::ECS::Model::ListClustersRequest::WithNextToken
ListClustersRequest & WithNextToken(Aws::String &&value)
Definition: ListClustersRequest.h:112
Aws::ECS::Model::ListClustersRequest
Definition: ListClustersRequest.h:22
Aws::ECS::Model::ListClustersRequest::WithNextToken
ListClustersRequest & WithNextToken(const Aws::String &value)
Definition: ListClustersRequest.h:101
Aws::ECS::Model::ListClustersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListClustersRequest.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::ListClustersRequest::WithNextToken
ListClustersRequest & WithNextToken(const char *value)
Definition: ListClustersRequest.h:123