AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
UpdateExpressGatewayServiceRequest.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/ExpressCpuArchitecture.h>
11#include <aws/ecs/model/ExpressGatewayContainer.h>
12#include <aws/ecs/model/ExpressGatewayScalingTarget.h>
13#include <aws/ecs/model/ExpressGatewayServiceNetworkConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ECS {
19namespace Model {
20
24 public:
25 AWS_ECS_API UpdateExpressGatewayServiceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateExpressGatewayService"; }
32
33 AWS_ECS_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
42 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
43 template <typename ServiceArnT = Aws::String>
44 void SetServiceArn(ServiceArnT&& value) {
45 m_serviceArnHasBeenSet = true;
46 m_serviceArn = std::forward<ServiceArnT>(value);
47 }
48 template <typename ServiceArnT = Aws::String>
50 SetServiceArn(std::forward<ServiceArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
61 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
62 template <typename ExecutionRoleArnT = Aws::String>
63 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
64 m_executionRoleArnHasBeenSet = true;
65 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
66 }
67 template <typename ExecutionRoleArnT = Aws::String>
69 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
79 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
80 template <typename HealthCheckPathT = Aws::String>
81 void SetHealthCheckPath(HealthCheckPathT&& value) {
82 m_healthCheckPathHasBeenSet = true;
83 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
84 }
85 template <typename HealthCheckPathT = Aws::String>
87 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
88 return *this;
89 }
91
93
96 inline const ExpressGatewayContainer& GetPrimaryContainer() const { return m_primaryContainer; }
97 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
98 template <typename PrimaryContainerT = ExpressGatewayContainer>
99 void SetPrimaryContainer(PrimaryContainerT&& value) {
100 m_primaryContainerHasBeenSet = true;
101 m_primaryContainer = std::forward<PrimaryContainerT>(value);
102 }
103 template <typename PrimaryContainerT = ExpressGatewayContainer>
105 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetTaskRoleArn() const { return m_taskRoleArn; }
116 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
117 template <typename TaskRoleArnT = Aws::String>
118 void SetTaskRoleArn(TaskRoleArnT&& value) {
119 m_taskRoleArnHasBeenSet = true;
120 m_taskRoleArn = std::forward<TaskRoleArnT>(value);
121 }
122 template <typename TaskRoleArnT = Aws::String>
124 SetTaskRoleArn(std::forward<TaskRoleArnT>(value));
125 return *this;
126 }
128
130
134 inline const ExpressGatewayServiceNetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
135 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
136 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
137 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
138 m_networkConfigurationHasBeenSet = true;
139 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
140 }
141 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
143 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetCpu() const { return m_cpu; }
153 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
154 template <typename CpuT = Aws::String>
155 void SetCpu(CpuT&& value) {
156 m_cpuHasBeenSet = true;
157 m_cpu = std::forward<CpuT>(value);
158 }
159 template <typename CpuT = Aws::String>
161 SetCpu(std::forward<CpuT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetMemory() const { return m_memory; }
171 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
172 template <typename MemoryT = Aws::String>
173 void SetMemory(MemoryT&& value) {
174 m_memoryHasBeenSet = true;
175 m_memory = std::forward<MemoryT>(value);
176 }
177 template <typename MemoryT = Aws::String>
179 SetMemory(std::forward<MemoryT>(value));
180 return *this;
181 }
183
185
199 inline ExpressCpuArchitecture GetCpuArchitecture() const { return m_cpuArchitecture; }
200 inline bool CpuArchitectureHasBeenSet() const { return m_cpuArchitectureHasBeenSet; }
202 m_cpuArchitectureHasBeenSet = true;
203 m_cpuArchitecture = value;
204 }
206 SetCpuArchitecture(value);
207 return *this;
208 }
210
212
215 inline const ExpressGatewayScalingTarget& GetScalingTarget() const { return m_scalingTarget; }
216 inline bool ScalingTargetHasBeenSet() const { return m_scalingTargetHasBeenSet; }
217 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
218 void SetScalingTarget(ScalingTargetT&& value) {
219 m_scalingTargetHasBeenSet = true;
220 m_scalingTarget = std::forward<ScalingTargetT>(value);
221 }
222 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
224 SetScalingTarget(std::forward<ScalingTargetT>(value));
225 return *this;
226 }
228
230
242 inline const Aws::String& GetTaskDefinitionArn() const { return m_taskDefinitionArn; }
243 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
244 template <typename TaskDefinitionArnT = Aws::String>
245 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) {
246 m_taskDefinitionArnHasBeenSet = true;
247 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
248 }
249 template <typename TaskDefinitionArnT = Aws::String>
251 SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_serviceArn;
257
258 Aws::String m_executionRoleArn;
259
260 Aws::String m_healthCheckPath;
261
262 ExpressGatewayContainer m_primaryContainer;
263
264 Aws::String m_taskRoleArn;
265
266 ExpressGatewayServiceNetworkConfiguration m_networkConfiguration;
267
268 Aws::String m_cpu;
269
270 Aws::String m_memory;
271
273
274 ExpressGatewayScalingTarget m_scalingTarget;
275
276 Aws::String m_taskDefinitionArn;
277 bool m_serviceArnHasBeenSet = false;
278 bool m_executionRoleArnHasBeenSet = false;
279 bool m_healthCheckPathHasBeenSet = false;
280 bool m_primaryContainerHasBeenSet = false;
281 bool m_taskRoleArnHasBeenSet = false;
282 bool m_networkConfigurationHasBeenSet = false;
283 bool m_cpuHasBeenSet = false;
284 bool m_memoryHasBeenSet = false;
285 bool m_cpuArchitectureHasBeenSet = false;
286 bool m_scalingTargetHasBeenSet = false;
287 bool m_taskDefinitionArnHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace ECS
292} // namespace Aws
const ExpressGatewayServiceNetworkConfiguration & GetNetworkConfiguration() const
UpdateExpressGatewayServiceRequest & WithTaskRoleArn(TaskRoleArnT &&value)
UpdateExpressGatewayServiceRequest & WithPrimaryContainer(PrimaryContainerT &&value)
UpdateExpressGatewayServiceRequest & WithServiceArn(ServiceArnT &&value)
UpdateExpressGatewayServiceRequest & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
UpdateExpressGatewayServiceRequest & WithNetworkConfiguration(NetworkConfigurationT &&value)
UpdateExpressGatewayServiceRequest & WithHealthCheckPath(HealthCheckPathT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateExpressGatewayServiceRequest & WithScalingTarget(ScalingTargetT &&value)
UpdateExpressGatewayServiceRequest & WithCpuArchitecture(ExpressCpuArchitecture value)
UpdateExpressGatewayServiceRequest & WithMemory(MemoryT &&value)
UpdateExpressGatewayServiceRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
UpdateExpressGatewayServiceRequest & WithCpu(CpuT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String