AWS SDK for C++  1.8.129
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 
237  inline const LaunchType& GetLaunchType() const{ return m_launchType; }
238 
242  inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
243 
247  inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
248 
252  inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
253 
257  inline ListServicesRequest& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
258 
262  inline ListServicesRequest& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
263 
264 
268  inline const SchedulingStrategy& GetSchedulingStrategy() const{ return m_schedulingStrategy; }
269 
273  inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
274 
278  inline void SetSchedulingStrategy(const SchedulingStrategy& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; }
279 
283  inline void SetSchedulingStrategy(SchedulingStrategy&& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = std::move(value); }
284 
288  inline ListServicesRequest& WithSchedulingStrategy(const SchedulingStrategy& value) { SetSchedulingStrategy(value); return *this;}
289 
293  inline ListServicesRequest& WithSchedulingStrategy(SchedulingStrategy&& value) { SetSchedulingStrategy(std::move(value)); return *this;}
294 
295  private:
296 
297  Aws::String m_cluster;
298  bool m_clusterHasBeenSet;
299 
300  Aws::String m_nextToken;
301  bool m_nextTokenHasBeenSet;
302 
303  int m_maxResults;
304  bool m_maxResultsHasBeenSet;
305 
306  LaunchType m_launchType;
307  bool m_launchTypeHasBeenSet;
308 
309  SchedulingStrategy m_schedulingStrategy;
310  bool m_schedulingStrategyHasBeenSet;
311  };
312 
313 } // namespace Model
314 } // namespace ECS
315 } // namespace Aws
Aws::ECS::Model::ListServicesRequest::LaunchTypeHasBeenSet
bool LaunchTypeHasBeenSet() const
Definition: ListServicesRequest.h:242
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:293
Aws::ECS::Model::ListServicesRequest::WithLaunchType
ListServicesRequest & WithLaunchType(const LaunchType &value)
Definition: ListServicesRequest.h:257
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:268
Aws::ECS::Model::ListServicesRequest::WithLaunchType
ListServicesRequest & WithLaunchType(LaunchType &&value)
Definition: ListServicesRequest.h:262
Aws::ECS::Model::ListServicesRequest::SetSchedulingStrategy
void SetSchedulingStrategy(SchedulingStrategy &&value)
Definition: ListServicesRequest.h:283
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:288
AWSString.h
Aws::ECS::Model::ListServicesRequest::SetSchedulingStrategy
void SetSchedulingStrategy(const SchedulingStrategy &value)
Definition: ListServicesRequest.h:278
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:237
Aws::ECS::Model::ListServicesRequest::SchedulingStrategyHasBeenSet
bool SchedulingStrategyHasBeenSet() const
Definition: ListServicesRequest.h:273
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:252
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:247
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