AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateExpressGatewayServiceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/ExpressGatewayContainer.h>
12#include <aws/ecs/model/ExpressGatewayScalingTarget.h>
13#include <aws/ecs/model/ExpressGatewayServiceNetworkConfiguration.h>
14#include <aws/ecs/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ECS {
20namespace Model {
21
25 public:
26 AWS_ECS_API CreateExpressGatewayServiceRequest() = default;
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 "CreateExpressGatewayService"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
39
50 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
51 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
52 template <typename ExecutionRoleArnT = Aws::String>
53 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
54 m_executionRoleArnHasBeenSet = true;
55 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
56 }
57 template <typename ExecutionRoleArnT = Aws::String>
59 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
60 return *this;
61 }
63
65
76 inline const Aws::String& GetInfrastructureRoleArn() const { return m_infrastructureRoleArn; }
77 inline bool InfrastructureRoleArnHasBeenSet() const { return m_infrastructureRoleArnHasBeenSet; }
78 template <typename InfrastructureRoleArnT = Aws::String>
79 void SetInfrastructureRoleArn(InfrastructureRoleArnT&& value) {
80 m_infrastructureRoleArnHasBeenSet = true;
81 m_infrastructureRoleArn = std::forward<InfrastructureRoleArnT>(value);
82 }
83 template <typename InfrastructureRoleArnT = Aws::String>
85 SetInfrastructureRoleArn(std::forward<InfrastructureRoleArnT>(value));
86 return *this;
87 }
89
91
100 inline const Aws::String& GetServiceName() const { return m_serviceName; }
101 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
102 template <typename ServiceNameT = Aws::String>
103 void SetServiceName(ServiceNameT&& value) {
104 m_serviceNameHasBeenSet = true;
105 m_serviceName = std::forward<ServiceNameT>(value);
106 }
107 template <typename ServiceNameT = Aws::String>
109 SetServiceName(std::forward<ServiceNameT>(value));
110 return *this;
111 }
113
115
120 inline const Aws::String& GetCluster() const { return m_cluster; }
121 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
122 template <typename ClusterT = Aws::String>
123 void SetCluster(ClusterT&& value) {
124 m_clusterHasBeenSet = true;
125 m_cluster = std::forward<ClusterT>(value);
126 }
127 template <typename ClusterT = Aws::String>
129 SetCluster(std::forward<ClusterT>(value));
130 return *this;
131 }
133
135
143 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
144 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
145 template <typename HealthCheckPathT = Aws::String>
146 void SetHealthCheckPath(HealthCheckPathT&& value) {
147 m_healthCheckPathHasBeenSet = true;
148 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
149 }
150 template <typename HealthCheckPathT = Aws::String>
152 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
153 return *this;
154 }
156
158
167 inline const ExpressGatewayContainer& GetPrimaryContainer() const { return m_primaryContainer; }
168 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
169 template <typename PrimaryContainerT = ExpressGatewayContainer>
170 void SetPrimaryContainer(PrimaryContainerT&& value) {
171 m_primaryContainerHasBeenSet = true;
172 m_primaryContainer = std::forward<PrimaryContainerT>(value);
173 }
174 template <typename PrimaryContainerT = ExpressGatewayContainer>
176 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
177 return *this;
178 }
180
182
191 inline const Aws::String& GetTaskRoleArn() const { return m_taskRoleArn; }
192 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
193 template <typename TaskRoleArnT = Aws::String>
194 void SetTaskRoleArn(TaskRoleArnT&& value) {
195 m_taskRoleArnHasBeenSet = true;
196 m_taskRoleArn = std::forward<TaskRoleArnT>(value);
197 }
198 template <typename TaskRoleArnT = Aws::String>
200 SetTaskRoleArn(std::forward<TaskRoleArnT>(value));
201 return *this;
202 }
204
206
214 inline const ExpressGatewayServiceNetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
215 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
216 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
217 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
218 m_networkConfigurationHasBeenSet = true;
219 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
220 }
221 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
223 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
224 return *this;
225 }
227
229
234 inline const Aws::String& GetCpu() const { return m_cpu; }
235 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
236 template <typename CpuT = Aws::String>
237 void SetCpu(CpuT&& value) {
238 m_cpuHasBeenSet = true;
239 m_cpu = std::forward<CpuT>(value);
240 }
241 template <typename CpuT = Aws::String>
243 SetCpu(std::forward<CpuT>(value));
244 return *this;
245 }
247
249
254 inline const Aws::String& GetMemory() const { return m_memory; }
255 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
256 template <typename MemoryT = Aws::String>
257 void SetMemory(MemoryT&& value) {
258 m_memoryHasBeenSet = true;
259 m_memory = std::forward<MemoryT>(value);
260 }
261 template <typename MemoryT = Aws::String>
263 SetMemory(std::forward<MemoryT>(value));
264 return *this;
265 }
267
269
277 inline const ExpressGatewayScalingTarget& GetScalingTarget() const { return m_scalingTarget; }
278 inline bool ScalingTargetHasBeenSet() const { return m_scalingTargetHasBeenSet; }
279 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
280 void SetScalingTarget(ScalingTargetT&& value) {
281 m_scalingTargetHasBeenSet = true;
282 m_scalingTarget = std::forward<ScalingTargetT>(value);
283 }
284 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
286 SetScalingTarget(std::forward<ScalingTargetT>(value));
287 return *this;
288 }
290
292
297 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
298 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
299 template <typename TagsT = Aws::Vector<Tag>>
300 void SetTags(TagsT&& value) {
301 m_tagsHasBeenSet = true;
302 m_tags = std::forward<TagsT>(value);
303 }
304 template <typename TagsT = Aws::Vector<Tag>>
306 SetTags(std::forward<TagsT>(value));
307 return *this;
308 }
309 template <typename TagsT = Tag>
311 m_tagsHasBeenSet = true;
312 m_tags.emplace_back(std::forward<TagsT>(value));
313 return *this;
314 }
316 private:
317 Aws::String m_executionRoleArn;
318
319 Aws::String m_infrastructureRoleArn;
320
321 Aws::String m_serviceName;
322
323 Aws::String m_cluster;
324
325 Aws::String m_healthCheckPath;
326
327 ExpressGatewayContainer m_primaryContainer;
328
329 Aws::String m_taskRoleArn;
330
331 ExpressGatewayServiceNetworkConfiguration m_networkConfiguration;
332
333 Aws::String m_cpu;
334
335 Aws::String m_memory;
336
337 ExpressGatewayScalingTarget m_scalingTarget;
338
339 Aws::Vector<Tag> m_tags;
340 bool m_executionRoleArnHasBeenSet = false;
341 bool m_infrastructureRoleArnHasBeenSet = false;
342 bool m_serviceNameHasBeenSet = false;
343 bool m_clusterHasBeenSet = false;
344 bool m_healthCheckPathHasBeenSet = false;
345 bool m_primaryContainerHasBeenSet = false;
346 bool m_taskRoleArnHasBeenSet = false;
347 bool m_networkConfigurationHasBeenSet = false;
348 bool m_cpuHasBeenSet = false;
349 bool m_memoryHasBeenSet = false;
350 bool m_scalingTargetHasBeenSet = false;
351 bool m_tagsHasBeenSet = false;
352};
353
354} // namespace Model
355} // namespace ECS
356} // namespace Aws
CreateExpressGatewayServiceRequest & WithCpu(CpuT &&value)
CreateExpressGatewayServiceRequest & AddTags(TagsT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
CreateExpressGatewayServiceRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
CreateExpressGatewayServiceRequest & WithTaskRoleArn(TaskRoleArnT &&value)
CreateExpressGatewayServiceRequest & WithHealthCheckPath(HealthCheckPathT &&value)
CreateExpressGatewayServiceRequest & WithScalingTarget(ScalingTargetT &&value)
CreateExpressGatewayServiceRequest & WithNetworkConfiguration(NetworkConfigurationT &&value)
CreateExpressGatewayServiceRequest & WithMemory(MemoryT &&value)
CreateExpressGatewayServiceRequest & WithTags(TagsT &&value)
CreateExpressGatewayServiceRequest & WithServiceName(ServiceNameT &&value)
CreateExpressGatewayServiceRequest & WithCluster(ClusterT &&value)
const ExpressGatewayServiceNetworkConfiguration & GetNetworkConfiguration() const
CreateExpressGatewayServiceRequest & WithPrimaryContainer(PrimaryContainerT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateExpressGatewayServiceRequest & WithInfrastructureRoleArn(InfrastructureRoleArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector