AWS SDK for C++

AWS SDK for C++ Version 1.11.906

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
162 inline ExpressCpuArchitecture GetCpuArchitecture() const { return m_cpuArchitecture; }
163 inline bool CpuArchitectureHasBeenSet() const { return m_cpuArchitectureHasBeenSet; }
165 m_cpuArchitectureHasBeenSet = true;
166 m_cpuArchitecture = value;
167 }
169 SetCpuArchitecture(value);
170 return *this;
171 }
173
175
178 inline const ExpressGatewayServiceNetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
179 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
180 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
181 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
182 m_networkConfigurationHasBeenSet = true;
183 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
184 }
185 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
187 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
197 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
198 template <typename HealthCheckPathT = Aws::String>
199 void SetHealthCheckPath(HealthCheckPathT&& value) {
200 m_healthCheckPathHasBeenSet = true;
201 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
202 }
203 template <typename HealthCheckPathT = Aws::String>
205 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
206 return *this;
207 }
209
211
214 inline const ExpressGatewayContainer& GetPrimaryContainer() const { return m_primaryContainer; }
215 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
216 template <typename PrimaryContainerT = ExpressGatewayContainer>
217 void SetPrimaryContainer(PrimaryContainerT&& value) {
218 m_primaryContainerHasBeenSet = true;
219 m_primaryContainer = std::forward<PrimaryContainerT>(value);
220 }
221 template <typename PrimaryContainerT = ExpressGatewayContainer>
223 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
224 return *this;
225 }
227
229
232 inline const ExpressGatewayScalingTarget& GetScalingTarget() const { return m_scalingTarget; }
233 inline bool ScalingTargetHasBeenSet() const { return m_scalingTargetHasBeenSet; }
234 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
235 void SetScalingTarget(ScalingTargetT&& value) {
236 m_scalingTargetHasBeenSet = true;
237 m_scalingTarget = std::forward<ScalingTargetT>(value);
238 }
239 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
241 SetScalingTarget(std::forward<ScalingTargetT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Vector<IngressPathSummary>& GetIngressPaths() const { return m_ingressPaths; }
251 inline bool IngressPathsHasBeenSet() const { return m_ingressPathsHasBeenSet; }
252 template <typename IngressPathsT = Aws::Vector<IngressPathSummary>>
253 void SetIngressPaths(IngressPathsT&& value) {
254 m_ingressPathsHasBeenSet = true;
255 m_ingressPaths = std::forward<IngressPathsT>(value);
256 }
257 template <typename IngressPathsT = Aws::Vector<IngressPathSummary>>
259 SetIngressPaths(std::forward<IngressPathsT>(value));
260 return *this;
261 }
262 template <typename IngressPathsT = IngressPathSummary>
264 m_ingressPathsHasBeenSet = true;
265 m_ingressPaths.emplace_back(std::forward<IngressPathsT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
275 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
276 template <typename CreatedAtT = Aws::Utils::DateTime>
277 void SetCreatedAt(CreatedAtT&& value) {
278 m_createdAtHasBeenSet = true;
279 m_createdAt = std::forward<CreatedAtT>(value);
280 }
281 template <typename CreatedAtT = Aws::Utils::DateTime>
283 SetCreatedAt(std::forward<CreatedAtT>(value));
284 return *this;
285 }
287 private:
288 Aws::String m_serviceRevisionArn;
289
290 Aws::String m_executionRoleArn;
291
292 Aws::String m_taskRoleArn;
293
294 Aws::String m_taskDefinitionArn;
295
296 Aws::String m_cpu;
297
298 Aws::String m_memory;
299
301
302 ExpressGatewayServiceNetworkConfiguration m_networkConfiguration;
303
304 Aws::String m_healthCheckPath;
305
306 ExpressGatewayContainer m_primaryContainer;
307
308 ExpressGatewayScalingTarget m_scalingTarget;
309
310 Aws::Vector<IngressPathSummary> m_ingressPaths;
311
312 Aws::Utils::DateTime m_createdAt{};
313 bool m_serviceRevisionArnHasBeenSet = false;
314 bool m_executionRoleArnHasBeenSet = false;
315 bool m_taskRoleArnHasBeenSet = false;
316 bool m_taskDefinitionArnHasBeenSet = false;
317 bool m_cpuHasBeenSet = false;
318 bool m_memoryHasBeenSet = false;
319 bool m_cpuArchitectureHasBeenSet = false;
320 bool m_networkConfigurationHasBeenSet = false;
321 bool m_healthCheckPathHasBeenSet = false;
322 bool m_primaryContainerHasBeenSet = false;
323 bool m_scalingTargetHasBeenSet = false;
324 bool m_ingressPathsHasBeenSet = false;
325 bool m_createdAtHasBeenSet = false;
326};
327
328} // namespace Model
329} // namespace ECS
330} // 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