AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListServicesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/LaunchType.h>
11#include <aws/ecs/model/ResourceManagementType.h>
12#include <aws/ecs/model/SchedulingStrategy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ECS {
18namespace Model {
19
23 public:
24 AWS_ECS_API ListServicesRequest() = default;
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 "ListServices"; }
31
32 AWS_ECS_API Aws::String SerializePayload() const override;
33
35
37
42 inline const Aws::String& GetCluster() const { return m_cluster; }
43 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
44 template <typename ClusterT = Aws::String>
45 void SetCluster(ClusterT&& value) {
46 m_clusterHasBeenSet = true;
47 m_cluster = std::forward<ClusterT>(value);
48 }
49 template <typename ClusterT = Aws::String>
50 ListServicesRequest& WithCluster(ClusterT&& value) {
51 SetCluster(std::forward<ClusterT>(value));
52 return *this;
53 }
55
57
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
74 ListServicesRequest& WithNextToken(NextTokenT&& value) {
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
91 inline int GetMaxResults() const { return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) {
94 m_maxResultsHasBeenSet = true;
95 m_maxResults = value;
96 }
98 SetMaxResults(value);
99 return *this;
100 }
102
104
108 inline LaunchType GetLaunchType() const { return m_launchType; }
109 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
110 inline void SetLaunchType(LaunchType value) {
111 m_launchTypeHasBeenSet = true;
112 m_launchType = value;
113 }
115 SetLaunchType(value);
116 return *this;
117 }
119
121
125 inline SchedulingStrategy GetSchedulingStrategy() const { return m_schedulingStrategy; }
126 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
128 m_schedulingStrategyHasBeenSet = true;
129 m_schedulingStrategy = value;
130 }
133 return *this;
134 }
136
138
142 inline ResourceManagementType GetResourceManagementType() const { return m_resourceManagementType; }
143 inline bool ResourceManagementTypeHasBeenSet() const { return m_resourceManagementTypeHasBeenSet; }
145 m_resourceManagementTypeHasBeenSet = true;
146 m_resourceManagementType = value;
147 }
150 return *this;
151 }
153 private:
154 Aws::String m_cluster;
155
156 Aws::String m_nextToken;
157
158 int m_maxResults{0};
159
160 LaunchType m_launchType{LaunchType::NOT_SET};
161
163
165 bool m_clusterHasBeenSet = false;
166 bool m_nextTokenHasBeenSet = false;
167 bool m_maxResultsHasBeenSet = false;
168 bool m_launchTypeHasBeenSet = false;
169 bool m_schedulingStrategyHasBeenSet = false;
170 bool m_resourceManagementTypeHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace ECS
175} // namespace Aws
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API ListServicesRequest()=default
void SetResourceManagementType(ResourceManagementType value)
ListServicesRequest & WithMaxResults(int value)
void SetSchedulingStrategy(SchedulingStrategy value)
ResourceManagementType GetResourceManagementType() const
ListServicesRequest & WithCluster(ClusterT &&value)
ListServicesRequest & WithSchedulingStrategy(SchedulingStrategy value)
ListServicesRequest & WithNextToken(NextTokenT &&value)
SchedulingStrategy GetSchedulingStrategy() const
const Aws::String & GetNextToken() const
const Aws::String & GetCluster() const
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListServicesRequest & WithLaunchType(LaunchType value)
ListServicesRequest & WithResourceManagementType(ResourceManagementType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String