AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListServicesRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace 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
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
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 = false;
311
312 Aws::String m_nextToken;
313 bool m_nextTokenHasBeenSet = false;
314
315 int m_maxResults;
316 bool m_maxResultsHasBeenSet = false;
317
318 LaunchType m_launchType;
319 bool m_launchTypeHasBeenSet = false;
320
321 SchedulingStrategy m_schedulingStrategy;
322 bool m_schedulingStrategyHasBeenSet = false;
323 };
324
325} // namespace Model
326} // namespace ECS
327} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetNextToken(const Aws::String &value)
ListServicesRequest & WithCluster(Aws::String &&value)
AWS_ECS_API Aws::String SerializePayload() const override
ListServicesRequest & WithCluster(const char *value)
ListServicesRequest & WithMaxResults(int value)
const LaunchType & GetLaunchType() const
const SchedulingStrategy & GetSchedulingStrategy() const
ListServicesRequest & WithNextToken(const Aws::String &value)
ListServicesRequest & WithNextToken(const char *value)
void SetLaunchType(const LaunchType &value)
ListServicesRequest & WithLaunchType(LaunchType &&value)
ListServicesRequest & WithSchedulingStrategy(SchedulingStrategy &&value)
const Aws::String & GetNextToken() const
void SetSchedulingStrategy(SchedulingStrategy &&value)
const Aws::String & GetCluster() const
virtual const char * GetServiceRequestName() const override
void SetCluster(const Aws::String &value)
void SetNextToken(Aws::String &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListServicesRequest & WithSchedulingStrategy(const SchedulingStrategy &value)
void SetSchedulingStrategy(const SchedulingStrategy &value)
ListServicesRequest & WithCluster(const Aws::String &value)
ListServicesRequest & WithNextToken(Aws::String &&value)
void SetCluster(Aws::String &&value)
ListServicesRequest & WithLaunchType(const LaunchType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String