AWS SDK for C++

AWS SDK for C++ Version 1.11.891

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/ExpressCpuArchitecture.h>
12#include <aws/ecs/model/ExpressGatewayContainer.h>
13#include <aws/ecs/model/ExpressGatewayScalingTarget.h>
14#include <aws/ecs/model/ExpressGatewayServiceNetworkConfiguration.h>
15#include <aws/ecs/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace ECS {
21namespace Model {
22
26 public:
27 AWS_ECS_API CreateExpressGatewayServiceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateExpressGatewayService"; }
34
35 AWS_ECS_API Aws::String SerializePayload() const override;
36
38
40
51 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
52 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
53 template <typename ExecutionRoleArnT = Aws::String>
54 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
55 m_executionRoleArnHasBeenSet = true;
56 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
57 }
58 template <typename ExecutionRoleArnT = Aws::String>
60 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
61 return *this;
62 }
64
66
77 inline const Aws::String& GetInfrastructureRoleArn() const { return m_infrastructureRoleArn; }
78 inline bool InfrastructureRoleArnHasBeenSet() const { return m_infrastructureRoleArnHasBeenSet; }
79 template <typename InfrastructureRoleArnT = Aws::String>
80 void SetInfrastructureRoleArn(InfrastructureRoleArnT&& value) {
81 m_infrastructureRoleArnHasBeenSet = true;
82 m_infrastructureRoleArn = std::forward<InfrastructureRoleArnT>(value);
83 }
84 template <typename InfrastructureRoleArnT = Aws::String>
86 SetInfrastructureRoleArn(std::forward<InfrastructureRoleArnT>(value));
87 return *this;
88 }
90
92
101 inline const Aws::String& GetServiceName() const { return m_serviceName; }
102 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
103 template <typename ServiceNameT = Aws::String>
104 void SetServiceName(ServiceNameT&& value) {
105 m_serviceNameHasBeenSet = true;
106 m_serviceName = std::forward<ServiceNameT>(value);
107 }
108 template <typename ServiceNameT = Aws::String>
110 SetServiceName(std::forward<ServiceNameT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::String& GetCluster() const { return m_cluster; }
122 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
123 template <typename ClusterT = Aws::String>
124 void SetCluster(ClusterT&& value) {
125 m_clusterHasBeenSet = true;
126 m_cluster = std::forward<ClusterT>(value);
127 }
128 template <typename ClusterT = Aws::String>
130 SetCluster(std::forward<ClusterT>(value));
131 return *this;
132 }
134
136
144 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
145 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
146 template <typename HealthCheckPathT = Aws::String>
147 void SetHealthCheckPath(HealthCheckPathT&& value) {
148 m_healthCheckPathHasBeenSet = true;
149 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
150 }
151 template <typename HealthCheckPathT = Aws::String>
153 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
154 return *this;
155 }
157
159
168 inline const ExpressGatewayContainer& GetPrimaryContainer() const { return m_primaryContainer; }
169 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
170 template <typename PrimaryContainerT = ExpressGatewayContainer>
171 void SetPrimaryContainer(PrimaryContainerT&& value) {
172 m_primaryContainerHasBeenSet = true;
173 m_primaryContainer = std::forward<PrimaryContainerT>(value);
174 }
175 template <typename PrimaryContainerT = ExpressGatewayContainer>
177 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
178 return *this;
179 }
181
183
192 inline const Aws::String& GetTaskRoleArn() const { return m_taskRoleArn; }
193 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
194 template <typename TaskRoleArnT = Aws::String>
195 void SetTaskRoleArn(TaskRoleArnT&& value) {
196 m_taskRoleArnHasBeenSet = true;
197 m_taskRoleArn = std::forward<TaskRoleArnT>(value);
198 }
199 template <typename TaskRoleArnT = Aws::String>
201 SetTaskRoleArn(std::forward<TaskRoleArnT>(value));
202 return *this;
203 }
205
207
215 inline const ExpressGatewayServiceNetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
216 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
217 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
218 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
219 m_networkConfigurationHasBeenSet = true;
220 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
221 }
222 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
224 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
225 return *this;
226 }
228
230
235 inline const Aws::String& GetCpu() const { return m_cpu; }
236 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
237 template <typename CpuT = Aws::String>
238 void SetCpu(CpuT&& value) {
239 m_cpuHasBeenSet = true;
240 m_cpu = std::forward<CpuT>(value);
241 }
242 template <typename CpuT = Aws::String>
244 SetCpu(std::forward<CpuT>(value));
245 return *this;
246 }
248
250
255 inline const Aws::String& GetMemory() const { return m_memory; }
256 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
257 template <typename MemoryT = Aws::String>
258 void SetMemory(MemoryT&& value) {
259 m_memoryHasBeenSet = true;
260 m_memory = std::forward<MemoryT>(value);
261 }
262 template <typename MemoryT = Aws::String>
264 SetMemory(std::forward<MemoryT>(value));
265 return *this;
266 }
268
270
283 inline ExpressCpuArchitecture GetCpuArchitecture() const { return m_cpuArchitecture; }
284 inline bool CpuArchitectureHasBeenSet() const { return m_cpuArchitectureHasBeenSet; }
286 m_cpuArchitectureHasBeenSet = true;
287 m_cpuArchitecture = value;
288 }
290 SetCpuArchitecture(value);
291 return *this;
292 }
294
296
304 inline const ExpressGatewayScalingTarget& GetScalingTarget() const { return m_scalingTarget; }
305 inline bool ScalingTargetHasBeenSet() const { return m_scalingTargetHasBeenSet; }
306 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
307 void SetScalingTarget(ScalingTargetT&& value) {
308 m_scalingTargetHasBeenSet = true;
309 m_scalingTarget = std::forward<ScalingTargetT>(value);
310 }
311 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
313 SetScalingTarget(std::forward<ScalingTargetT>(value));
314 return *this;
315 }
317
319
324 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
325 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
326 template <typename TagsT = Aws::Vector<Tag>>
327 void SetTags(TagsT&& value) {
328 m_tagsHasBeenSet = true;
329 m_tags = std::forward<TagsT>(value);
330 }
331 template <typename TagsT = Aws::Vector<Tag>>
333 SetTags(std::forward<TagsT>(value));
334 return *this;
335 }
336 template <typename TagsT = Tag>
338 m_tagsHasBeenSet = true;
339 m_tags.emplace_back(std::forward<TagsT>(value));
340 return *this;
341 }
343
345
357 inline const Aws::String& GetTaskDefinitionArn() const { return m_taskDefinitionArn; }
358 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
359 template <typename TaskDefinitionArnT = Aws::String>
360 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) {
361 m_taskDefinitionArnHasBeenSet = true;
362 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
363 }
364 template <typename TaskDefinitionArnT = Aws::String>
366 SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value));
367 return *this;
368 }
370 private:
371 Aws::String m_executionRoleArn;
372
373 Aws::String m_infrastructureRoleArn;
374
375 Aws::String m_serviceName;
376
377 Aws::String m_cluster;
378
379 Aws::String m_healthCheckPath;
380
381 ExpressGatewayContainer m_primaryContainer;
382
383 Aws::String m_taskRoleArn;
384
385 ExpressGatewayServiceNetworkConfiguration m_networkConfiguration;
386
387 Aws::String m_cpu;
388
389 Aws::String m_memory;
390
392
393 ExpressGatewayScalingTarget m_scalingTarget;
394
395 Aws::Vector<Tag> m_tags;
396
397 Aws::String m_taskDefinitionArn;
398 bool m_executionRoleArnHasBeenSet = false;
399 bool m_infrastructureRoleArnHasBeenSet = false;
400 bool m_serviceNameHasBeenSet = false;
401 bool m_clusterHasBeenSet = false;
402 bool m_healthCheckPathHasBeenSet = false;
403 bool m_primaryContainerHasBeenSet = false;
404 bool m_taskRoleArnHasBeenSet = false;
405 bool m_networkConfigurationHasBeenSet = false;
406 bool m_cpuHasBeenSet = false;
407 bool m_memoryHasBeenSet = false;
408 bool m_cpuArchitectureHasBeenSet = false;
409 bool m_scalingTargetHasBeenSet = false;
410 bool m_tagsHasBeenSet = false;
411 bool m_taskDefinitionArnHasBeenSet = false;
412};
413
414} // namespace Model
415} // namespace ECS
416} // namespace Aws
CreateExpressGatewayServiceRequest & WithCpu(CpuT &&value)
CreateExpressGatewayServiceRequest & AddTags(TagsT &&value)
CreateExpressGatewayServiceRequest & WithCpuArchitecture(ExpressCpuArchitecture 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)
CreateExpressGatewayServiceRequest & WithTaskDefinitionArn(TaskDefinitionArnT &&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