AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
ExpressGatewayServiceConfiguration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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/IngressPathSummary.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ECS {
27namespace Model {
28
37 public:
38 AWS_ECS_API ExpressGatewayServiceConfiguration() = default;
42
44
47 inline const Aws::String& GetServiceRevisionArn() const { return m_serviceRevisionArn; }
48 inline bool ServiceRevisionArnHasBeenSet() const { return m_serviceRevisionArnHasBeenSet; }
49 template <typename ServiceRevisionArnT = Aws::String>
50 void SetServiceRevisionArn(ServiceRevisionArnT&& value) {
51 m_serviceRevisionArnHasBeenSet = true;
52 m_serviceRevisionArn = std::forward<ServiceRevisionArnT>(value);
53 }
54 template <typename ServiceRevisionArnT = Aws::String>
56 SetServiceRevisionArn(std::forward<ServiceRevisionArnT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
66 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
67 template <typename ExecutionRoleArnT = Aws::String>
68 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
69 m_executionRoleArnHasBeenSet = true;
70 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
71 }
72 template <typename ExecutionRoleArnT = Aws::String>
74 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetTaskRoleArn() const { return m_taskRoleArn; }
84 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
85 template <typename TaskRoleArnT = Aws::String>
86 void SetTaskRoleArn(TaskRoleArnT&& value) {
87 m_taskRoleArnHasBeenSet = true;
88 m_taskRoleArn = std::forward<TaskRoleArnT>(value);
89 }
90 template <typename TaskRoleArnT = Aws::String>
92 SetTaskRoleArn(std::forward<TaskRoleArnT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetTaskDefinitionArn() const { return m_taskDefinitionArn; }
104 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
105 template <typename TaskDefinitionArnT = Aws::String>
106 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) {
107 m_taskDefinitionArnHasBeenSet = true;
108 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
109 }
110 template <typename TaskDefinitionArnT = Aws::String>
112 SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetCpu() const { return m_cpu; }
122 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
123 template <typename CpuT = Aws::String>
124 void SetCpu(CpuT&& value) {
125 m_cpuHasBeenSet = true;
126 m_cpu = std::forward<CpuT>(value);
127 }
128 template <typename CpuT = Aws::String>
130 SetCpu(std::forward<CpuT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetMemory() const { return m_memory; }
140 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
141 template <typename MemoryT = Aws::String>
142 void SetMemory(MemoryT&& value) {
143 m_memoryHasBeenSet = true;
144 m_memory = std::forward<MemoryT>(value);
145 }
146 template <typename MemoryT = Aws::String>
148 SetMemory(std::forward<MemoryT>(value));
149 return *this;
150 }
152
154
166 inline ExpressCpuArchitecture GetCpuArchitecture() const { return m_cpuArchitecture; }
167 inline bool CpuArchitectureHasBeenSet() const { return m_cpuArchitectureHasBeenSet; }
169 m_cpuArchitectureHasBeenSet = true;
170 m_cpuArchitecture = value;
171 }
173 SetCpuArchitecture(value);
174 return *this;
175 }
177
179
182 inline const ExpressGatewayServiceNetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
183 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
184 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
185 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
186 m_networkConfigurationHasBeenSet = true;
187 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
188 }
189 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
191 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
201 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
202 template <typename HealthCheckPathT = Aws::String>
203 void SetHealthCheckPath(HealthCheckPathT&& value) {
204 m_healthCheckPathHasBeenSet = true;
205 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
206 }
207 template <typename HealthCheckPathT = Aws::String>
209 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
210 return *this;
211 }
213
215
218 inline const ExpressGatewayContainer& GetPrimaryContainer() const { return m_primaryContainer; }
219 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
220 template <typename PrimaryContainerT = ExpressGatewayContainer>
221 void SetPrimaryContainer(PrimaryContainerT&& value) {
222 m_primaryContainerHasBeenSet = true;
223 m_primaryContainer = std::forward<PrimaryContainerT>(value);
224 }
225 template <typename PrimaryContainerT = ExpressGatewayContainer>
227 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
228 return *this;
229 }
231
233
236 inline const ExpressGatewayScalingTarget& GetScalingTarget() const { return m_scalingTarget; }
237 inline bool ScalingTargetHasBeenSet() const { return m_scalingTargetHasBeenSet; }
238 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
239 void SetScalingTarget(ScalingTargetT&& value) {
240 m_scalingTargetHasBeenSet = true;
241 m_scalingTarget = std::forward<ScalingTargetT>(value);
242 }
243 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
245 SetScalingTarget(std::forward<ScalingTargetT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Vector<IngressPathSummary>& GetIngressPaths() const { return m_ingressPaths; }
255 inline bool IngressPathsHasBeenSet() const { return m_ingressPathsHasBeenSet; }
256 template <typename IngressPathsT = Aws::Vector<IngressPathSummary>>
257 void SetIngressPaths(IngressPathsT&& value) {
258 m_ingressPathsHasBeenSet = true;
259 m_ingressPaths = std::forward<IngressPathsT>(value);
260 }
261 template <typename IngressPathsT = Aws::Vector<IngressPathSummary>>
263 SetIngressPaths(std::forward<IngressPathsT>(value));
264 return *this;
265 }
266 template <typename IngressPathsT = IngressPathSummary>
268 m_ingressPathsHasBeenSet = true;
269 m_ingressPaths.emplace_back(std::forward<IngressPathsT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
279 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
280 template <typename CreatedAtT = Aws::Utils::DateTime>
281 void SetCreatedAt(CreatedAtT&& value) {
282 m_createdAtHasBeenSet = true;
283 m_createdAt = std::forward<CreatedAtT>(value);
284 }
285 template <typename CreatedAtT = Aws::Utils::DateTime>
287 SetCreatedAt(std::forward<CreatedAtT>(value));
288 return *this;
289 }
291 private:
292 Aws::String m_serviceRevisionArn;
293
294 Aws::String m_executionRoleArn;
295
296 Aws::String m_taskRoleArn;
297
298 Aws::String m_taskDefinitionArn;
299
300 Aws::String m_cpu;
301
302 Aws::String m_memory;
303
305
306 ExpressGatewayServiceNetworkConfiguration m_networkConfiguration;
307
308 Aws::String m_healthCheckPath;
309
310 ExpressGatewayContainer m_primaryContainer;
311
312 ExpressGatewayScalingTarget m_scalingTarget;
313
314 Aws::Vector<IngressPathSummary> m_ingressPaths;
315
316 Aws::Utils::DateTime m_createdAt{};
317 bool m_serviceRevisionArnHasBeenSet = false;
318 bool m_executionRoleArnHasBeenSet = false;
319 bool m_taskRoleArnHasBeenSet = false;
320 bool m_taskDefinitionArnHasBeenSet = false;
321 bool m_cpuHasBeenSet = false;
322 bool m_memoryHasBeenSet = false;
323 bool m_cpuArchitectureHasBeenSet = false;
324 bool m_networkConfigurationHasBeenSet = false;
325 bool m_healthCheckPathHasBeenSet = false;
326 bool m_primaryContainerHasBeenSet = false;
327 bool m_scalingTargetHasBeenSet = false;
328 bool m_ingressPathsHasBeenSet = false;
329 bool m_createdAtHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace ECS
334} // namespace Aws
const Aws::Vector< IngressPathSummary > & GetIngressPaths() const
ExpressGatewayServiceConfiguration & WithScalingTarget(ScalingTargetT &&value)
AWS_ECS_API ExpressGatewayServiceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ExpressGatewayServiceConfiguration & WithCpuArchitecture(ExpressCpuArchitecture value)
ExpressGatewayServiceConfiguration & WithCpu(CpuT &&value)
ExpressGatewayServiceConfiguration & WithHealthCheckPath(HealthCheckPathT &&value)
ExpressGatewayServiceConfiguration & WithNetworkConfiguration(NetworkConfigurationT &&value)
ExpressGatewayServiceConfiguration & WithMemory(MemoryT &&value)
const ExpressGatewayServiceNetworkConfiguration & GetNetworkConfiguration() const
ExpressGatewayServiceConfiguration & WithExecutionRoleArn(ExecutionRoleArnT &&value)
ExpressGatewayServiceConfiguration & WithServiceRevisionArn(ServiceRevisionArnT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ExpressGatewayServiceConfiguration & WithIngressPaths(IngressPathsT &&value)
ExpressGatewayServiceConfiguration & WithPrimaryContainer(PrimaryContainerT &&value)
AWS_ECS_API ExpressGatewayServiceConfiguration(Aws::Utils::Json::JsonView jsonValue)
ExpressGatewayServiceConfiguration & WithCreatedAt(CreatedAtT &&value)
ExpressGatewayServiceConfiguration & WithTaskRoleArn(TaskRoleArnT &&value)
ExpressGatewayServiceConfiguration & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
ExpressGatewayServiceConfiguration & AddIngressPaths(IngressPathsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue