AWS SDK for C++  1.9.123
AWS SDK for C++
ListServicesRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ListServices"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetCluster() const{ return m_cluster; }
45 
51  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
52 
58  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
59 
65  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
66 
72  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
73 
79  inline ListServicesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
80 
86  inline ListServicesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
87 
93  inline ListServicesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
94 
95 
105  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
106 
116  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
117 
127  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
128 
138  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
139 
149  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
150 
160  inline ListServicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
161 
171  inline ListServicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
172 
182  inline ListServicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
183 
184 
195  inline int GetMaxResults() const{ return m_maxResults; }
196 
207  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
208 
219  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
220 
231  inline ListServicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
232 
233 
238  inline const LaunchType& GetLaunchType() const{ return m_launchType; }
239 
244  inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
245 
250  inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
251 
256  inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
257 
262  inline ListServicesRequest& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
263 
268  inline ListServicesRequest& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
269 
270 
275  inline const SchedulingStrategy& GetSchedulingStrategy() const{ return m_schedulingStrategy; }
276 
281  inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
282 
287  inline void SetSchedulingStrategy(const SchedulingStrategy& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; }
288 
293  inline void SetSchedulingStrategy(SchedulingStrategy&& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = std::move(value); }
294 
299  inline ListServicesRequest& WithSchedulingStrategy(const SchedulingStrategy& value) { SetSchedulingStrategy(value); return *this;}
300 
305  inline ListServicesRequest& WithSchedulingStrategy(SchedulingStrategy&& value) { SetSchedulingStrategy(std::move(value)); return *this;}
306 
307  private:
308 
309  Aws::String m_cluster;
310  bool m_clusterHasBeenSet;
311 
312  Aws::String m_nextToken;
313  bool m_nextTokenHasBeenSet;
314 
315  int m_maxResults;
316  bool m_maxResultsHasBeenSet;
317 
318  LaunchType m_launchType;
319  bool m_launchTypeHasBeenSet;
320 
321  SchedulingStrategy m_schedulingStrategy;
322  bool m_schedulingStrategyHasBeenSet;
323  };
324 
325 } // namespace Model
326 } // namespace ECS
327 } // namespace Aws
Aws::ECS::Model::ListServicesRequest::LaunchTypeHasBeenSet
bool LaunchTypeHasBeenSet() const
Definition: ListServicesRequest.h:244
Aws::ECS::Model::ListServicesRequest::SetCluster
void SetCluster(const char *value)
Definition: ListServicesRequest.h:72
Aws::ECS::Model::ListServicesRequest::WithSchedulingStrategy
ListServicesRequest & WithSchedulingStrategy(SchedulingStrategy &&value)
Definition: ListServicesRequest.h:305
Aws::ECS::Model::ListServicesRequest::WithLaunchType
ListServicesRequest & WithLaunchType(const LaunchType &value)
Definition: ListServicesRequest.h:262
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::ListServicesRequest::WithCluster
ListServicesRequest & WithCluster(const char *value)
Definition: ListServicesRequest.h:93
Aws::ECS::Model::ListServicesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListServicesRequest.h:195
Aws::ECS::Model::ListServicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListServicesRequest.h:32
Aws::ECS::Model::ListServicesRequest::ListServicesRequest
ListServicesRequest()
Aws::ECS::Model::ListServicesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListServicesRequest.h:105
Aws::ECS::Model::ListServicesRequest::GetCluster
const Aws::String & GetCluster() const
Definition: ListServicesRequest.h:44
Aws::ECS::Model::ListServicesRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: ListServicesRequest.h:51
Aws::ECS::Model::ListServicesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListServicesRequest.h:116
Aws::ECS::Model::ListServicesRequest::WithCluster
ListServicesRequest & WithCluster(Aws::String &&value)
Definition: ListServicesRequest.h:86
Aws::ECS::Model::ListServicesRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: ListServicesRequest.h:65
Aws::ECS::Model::ListServicesRequest::WithNextToken
ListServicesRequest & WithNextToken(Aws::String &&value)
Definition: ListServicesRequest.h:171
Aws::ECS::Model::ListServicesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::LaunchType
LaunchType
Definition: LaunchType.h:17
LaunchType.h
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::ListServicesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::ListServicesRequest::GetSchedulingStrategy
const SchedulingStrategy & GetSchedulingStrategy() const
Definition: ListServicesRequest.h:275
Aws::ECS::Model::ListServicesRequest::WithLaunchType
ListServicesRequest & WithLaunchType(LaunchType &&value)
Definition: ListServicesRequest.h:268
Aws::ECS::Model::ListServicesRequest::SetSchedulingStrategy
void SetSchedulingStrategy(SchedulingStrategy &&value)
Definition: ListServicesRequest.h:293
Aws::ECS::Model::ListServicesRequest
Definition: ListServicesRequest.h:24
Aws::ECS::Model::ListServicesRequest::WithMaxResults
ListServicesRequest & WithMaxResults(int value)
Definition: ListServicesRequest.h:231
Aws::ECS::Model::ListServicesRequest::WithSchedulingStrategy
ListServicesRequest & WithSchedulingStrategy(const SchedulingStrategy &value)
Definition: ListServicesRequest.h:299
AWSString.h
Aws::ECS::Model::ListServicesRequest::SetSchedulingStrategy
void SetSchedulingStrategy(const SchedulingStrategy &value)
Definition: ListServicesRequest.h:287
Aws::ECS::Model::ListServicesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListServicesRequest.h:207
Aws::ECS::Model::SchedulingStrategy
SchedulingStrategy
Definition: SchedulingStrategy.h:17
Aws::ECS::Model::ListServicesRequest::WithCluster
ListServicesRequest & WithCluster(const Aws::String &value)
Definition: ListServicesRequest.h:79
SchedulingStrategy.h
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ListServicesRequest::WithNextToken
ListServicesRequest & WithNextToken(const char *value)
Definition: ListServicesRequest.h:182
Aws::ECS::Model::ListServicesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListServicesRequest.h:219
Aws::ECS::Model::ListServicesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListServicesRequest.h:149
Aws::ECS::Model::ListServicesRequest::GetLaunchType
const LaunchType & GetLaunchType() const
Definition: ListServicesRequest.h:238
Aws::ECS::Model::ListServicesRequest::SchedulingStrategyHasBeenSet
bool SchedulingStrategyHasBeenSet() const
Definition: ListServicesRequest.h:281
Aws::ECS::Model::ListServicesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListServicesRequest.h:138
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ListServicesRequest::SetLaunchType
void SetLaunchType(LaunchType &&value)
Definition: ListServicesRequest.h:256
Aws::ECS::Model::ListServicesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListServicesRequest.h:127
Aws::ECS::Model::ListServicesRequest::SetLaunchType
void SetLaunchType(const LaunchType &value)
Definition: ListServicesRequest.h:250
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::ListServicesRequest::WithNextToken
ListServicesRequest & WithNextToken(const Aws::String &value)
Definition: ListServicesRequest.h:160
Aws::ECS::Model::ListServicesRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: ListServicesRequest.h:58