AWS SDK for C++  1.9.159
AWS SDK for C++
ListContainerInstancesRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ECS
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 "ListContainerInstances"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetCluster() const{ return m_cluster; }
44 
50  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
51 
57  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
58 
64  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
65 
71  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
72 
78  inline ListContainerInstancesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
79 
85  inline ListContainerInstancesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
86 
92  inline ListContainerInstancesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
93 
94 
102  inline const Aws::String& GetFilter() const{ return m_filter; }
103 
111  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
112 
120  inline void SetFilter(const Aws::String& value) { m_filterHasBeenSet = true; m_filter = value; }
121 
129  inline void SetFilter(Aws::String&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
130 
138  inline void SetFilter(const char* value) { m_filterHasBeenSet = true; m_filter.assign(value); }
139 
147  inline ListContainerInstancesRequest& WithFilter(const Aws::String& value) { SetFilter(value); return *this;}
148 
156  inline ListContainerInstancesRequest& WithFilter(Aws::String&& value) { SetFilter(std::move(value)); return *this;}
157 
165  inline ListContainerInstancesRequest& WithFilter(const char* value) { SetFilter(value); return *this;}
166 
167 
177  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
178 
188  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
189 
199  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
200 
210  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
211 
221  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
222 
232  inline ListContainerInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
233 
243  inline ListContainerInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
244 
254  inline ListContainerInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
255 
256 
269  inline int GetMaxResults() const{ return m_maxResults; }
270 
283  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
284 
297  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
298 
311  inline ListContainerInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
312 
313 
322  inline const ContainerInstanceStatus& GetStatus() const{ return m_status; }
323 
332  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
333 
342  inline void SetStatus(const ContainerInstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
343 
352  inline void SetStatus(ContainerInstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
353 
362  inline ListContainerInstancesRequest& WithStatus(const ContainerInstanceStatus& value) { SetStatus(value); return *this;}
363 
372  inline ListContainerInstancesRequest& WithStatus(ContainerInstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
373 
374  private:
375 
376  Aws::String m_cluster;
377  bool m_clusterHasBeenSet;
378 
379  Aws::String m_filter;
380  bool m_filterHasBeenSet;
381 
382  Aws::String m_nextToken;
383  bool m_nextTokenHasBeenSet;
384 
385  int m_maxResults;
386  bool m_maxResultsHasBeenSet;
387 
388  ContainerInstanceStatus m_status;
389  bool m_statusHasBeenSet;
390  };
391 
392 } // namespace Model
393 } // namespace ECS
394 } // namespace Aws
Aws::ECS::Model::ListContainerInstancesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListContainerInstancesRequest.h:199
Aws::ECS::Model::ListContainerInstancesRequest::WithNextToken
ListContainerInstancesRequest & WithNextToken(Aws::String &&value)
Definition: ListContainerInstancesRequest.h:243
Aws::ECS::Model::ListContainerInstancesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListContainerInstancesRequest.h:269
Aws::ECS::Model::ContainerInstanceStatus
ContainerInstanceStatus
Definition: ContainerInstanceStatus.h:17
Aws::ECS::Model::ListContainerInstancesRequest::ListContainerInstancesRequest
ListContainerInstancesRequest()
Aws::ECS::Model::ListContainerInstancesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListContainerInstancesRequest.h:297
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::ListContainerInstancesRequest::WithStatus
ListContainerInstancesRequest & WithStatus(const ContainerInstanceStatus &value)
Definition: ListContainerInstancesRequest.h:362
Aws::ECS::Model::ListContainerInstancesRequest::SetCluster
void SetCluster(const char *value)
Definition: ListContainerInstancesRequest.h:71
Aws::ECS::Model::ListContainerInstancesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListContainerInstancesRequest.h:221
Aws::ECS::Model::ListContainerInstancesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListContainerInstancesRequest.h:188
Aws::ECS::Model::ListContainerInstancesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListContainerInstancesRequest.h:177
Aws::ECS::Model::ListContainerInstancesRequest::WithStatus
ListContainerInstancesRequest & WithStatus(ContainerInstanceStatus &&value)
Definition: ListContainerInstancesRequest.h:372
Aws::ECS::Model::ListContainerInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListContainerInstancesRequest.h:31
Aws::ECS::Model::ListContainerInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::ListContainerInstancesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListContainerInstancesRequest.h:283
Aws::ECS::Model::ListContainerInstancesRequest::GetStatus
const ContainerInstanceStatus & GetStatus() const
Definition: ListContainerInstancesRequest.h:322
ContainerInstanceStatus.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ListContainerInstancesRequest
Definition: ListContainerInstancesRequest.h:23
Aws::ECS::Model::ListContainerInstancesRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ListContainerInstancesRequest.h:332
Aws::ECS::Model::ListContainerInstancesRequest::WithFilter
ListContainerInstancesRequest & WithFilter(Aws::String &&value)
Definition: ListContainerInstancesRequest.h:156
Aws::ECS::Model::ListContainerInstancesRequest::SetStatus
void SetStatus(ContainerInstanceStatus &&value)
Definition: ListContainerInstancesRequest.h:352
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::ListContainerInstancesRequest::WithCluster
ListContainerInstancesRequest & WithCluster(const Aws::String &value)
Definition: ListContainerInstancesRequest.h:78
Aws::ECS::Model::ListContainerInstancesRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: ListContainerInstancesRequest.h:57
Aws::ECS::Model::ListContainerInstancesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListContainerInstancesRequest.h:210
AWSString.h
Aws::ECS::Model::ListContainerInstancesRequest::WithFilter
ListContainerInstancesRequest & WithFilter(const char *value)
Definition: ListContainerInstancesRequest.h:165
Aws::ECS::Model::ListContainerInstancesRequest::SetFilter
void SetFilter(const Aws::String &value)
Definition: ListContainerInstancesRequest.h:120
Aws::ECS::Model::ListContainerInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::ListContainerInstancesRequest::GetCluster
const Aws::String & GetCluster() const
Definition: ListContainerInstancesRequest.h:43
Aws::ECS::Model::ListContainerInstancesRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: ListContainerInstancesRequest.h:111
Aws::ECS::Model::ListContainerInstancesRequest::SetStatus
void SetStatus(const ContainerInstanceStatus &value)
Definition: ListContainerInstancesRequest.h:342
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ListContainerInstancesRequest::WithCluster
ListContainerInstancesRequest & WithCluster(const char *value)
Definition: ListContainerInstancesRequest.h:92
Aws::ECS::Model::ListContainerInstancesRequest::GetFilter
const Aws::String & GetFilter() const
Definition: ListContainerInstancesRequest.h:102
Aws::ECS::Model::ListContainerInstancesRequest::WithNextToken
ListContainerInstancesRequest & WithNextToken(const Aws::String &value)
Definition: ListContainerInstancesRequest.h:232
Aws::ECS::Model::ListContainerInstancesRequest::SetFilter
void SetFilter(Aws::String &&value)
Definition: ListContainerInstancesRequest.h:129
Aws::ECS::Model::ListContainerInstancesRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: ListContainerInstancesRequest.h:50
Aws::ECS::Model::ListContainerInstancesRequest::SetFilter
void SetFilter(const char *value)
Definition: ListContainerInstancesRequest.h:138
Aws::ECS::Model::ListContainerInstancesRequest::WithNextToken
ListContainerInstancesRequest & WithNextToken(const char *value)
Definition: ListContainerInstancesRequest.h:254
Aws::ECS::Model::ListContainerInstancesRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: ListContainerInstancesRequest.h:64
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::ListContainerInstancesRequest::WithMaxResults
ListContainerInstancesRequest & WithMaxResults(int value)
Definition: ListContainerInstancesRequest.h:311
Aws::ECS::Model::ListContainerInstancesRequest::WithCluster
ListContainerInstancesRequest & WithCluster(Aws::String &&value)
Definition: ListContainerInstancesRequest.h:85
Aws::ECS::Model::ListContainerInstancesRequest::WithFilter
ListContainerInstancesRequest & WithFilter(const Aws::String &value)
Definition: ListContainerInstancesRequest.h:147