AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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/ExpressGatewayContainer.h>
12#include <aws/ecs/model/ExpressGatewayScalingTarget.h>
13#include <aws/ecs/model/ExpressGatewayServiceNetworkConfiguration.h>
14#include <aws/ecs/model/IngressPathSummary.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ECS {
26namespace Model {
27
36 public:
37 AWS_ECS_API ExpressGatewayServiceConfiguration() = default;
41
43
46 inline const Aws::String& GetServiceRevisionArn() const { return m_serviceRevisionArn; }
47 inline bool ServiceRevisionArnHasBeenSet() const { return m_serviceRevisionArnHasBeenSet; }
48 template <typename ServiceRevisionArnT = Aws::String>
49 void SetServiceRevisionArn(ServiceRevisionArnT&& value) {
50 m_serviceRevisionArnHasBeenSet = true;
51 m_serviceRevisionArn = std::forward<ServiceRevisionArnT>(value);
52 }
53 template <typename ServiceRevisionArnT = Aws::String>
55 SetServiceRevisionArn(std::forward<ServiceRevisionArnT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
65 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
66 template <typename ExecutionRoleArnT = Aws::String>
67 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
68 m_executionRoleArnHasBeenSet = true;
69 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
70 }
71 template <typename ExecutionRoleArnT = Aws::String>
73 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetTaskRoleArn() const { return m_taskRoleArn; }
83 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
84 template <typename TaskRoleArnT = Aws::String>
85 void SetTaskRoleArn(TaskRoleArnT&& value) {
86 m_taskRoleArnHasBeenSet = true;
87 m_taskRoleArn = std::forward<TaskRoleArnT>(value);
88 }
89 template <typename TaskRoleArnT = Aws::String>
91 SetTaskRoleArn(std::forward<TaskRoleArnT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetTaskDefinitionArn() const { return m_taskDefinitionArn; }
103 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
104 template <typename TaskDefinitionArnT = Aws::String>
105 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) {
106 m_taskDefinitionArnHasBeenSet = true;
107 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
108 }
109 template <typename TaskDefinitionArnT = Aws::String>
111 SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetCpu() const { return m_cpu; }
121 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
122 template <typename CpuT = Aws::String>
123 void SetCpu(CpuT&& value) {
124 m_cpuHasBeenSet = true;
125 m_cpu = std::forward<CpuT>(value);
126 }
127 template <typename CpuT = Aws::String>
129 SetCpu(std::forward<CpuT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetMemory() const { return m_memory; }
139 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
140 template <typename MemoryT = Aws::String>
141 void SetMemory(MemoryT&& value) {
142 m_memoryHasBeenSet = true;
143 m_memory = std::forward<MemoryT>(value);
144 }
145 template <typename MemoryT = Aws::String>
147 SetMemory(std::forward<MemoryT>(value));
148 return *this;
149 }
151
153
156 inline const ExpressGatewayServiceNetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
157 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
158 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
159 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
160 m_networkConfigurationHasBeenSet = true;
161 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
162 }
163 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
165 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
175 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
176 template <typename HealthCheckPathT = Aws::String>
177 void SetHealthCheckPath(HealthCheckPathT&& value) {
178 m_healthCheckPathHasBeenSet = true;
179 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
180 }
181 template <typename HealthCheckPathT = Aws::String>
183 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
184 return *this;
185 }
187
189
192 inline const ExpressGatewayContainer& GetPrimaryContainer() const { return m_primaryContainer; }
193 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
194 template <typename PrimaryContainerT = ExpressGatewayContainer>
195 void SetPrimaryContainer(PrimaryContainerT&& value) {
196 m_primaryContainerHasBeenSet = true;
197 m_primaryContainer = std::forward<PrimaryContainerT>(value);
198 }
199 template <typename PrimaryContainerT = ExpressGatewayContainer>
201 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
202 return *this;
203 }
205
207
210 inline const ExpressGatewayScalingTarget& GetScalingTarget() const { return m_scalingTarget; }
211 inline bool ScalingTargetHasBeenSet() const { return m_scalingTargetHasBeenSet; }
212 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
213 void SetScalingTarget(ScalingTargetT&& value) {
214 m_scalingTargetHasBeenSet = true;
215 m_scalingTarget = std::forward<ScalingTargetT>(value);
216 }
217 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
219 SetScalingTarget(std::forward<ScalingTargetT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Vector<IngressPathSummary>& GetIngressPaths() const { return m_ingressPaths; }
229 inline bool IngressPathsHasBeenSet() const { return m_ingressPathsHasBeenSet; }
230 template <typename IngressPathsT = Aws::Vector<IngressPathSummary>>
231 void SetIngressPaths(IngressPathsT&& value) {
232 m_ingressPathsHasBeenSet = true;
233 m_ingressPaths = std::forward<IngressPathsT>(value);
234 }
235 template <typename IngressPathsT = Aws::Vector<IngressPathSummary>>
237 SetIngressPaths(std::forward<IngressPathsT>(value));
238 return *this;
239 }
240 template <typename IngressPathsT = IngressPathSummary>
242 m_ingressPathsHasBeenSet = true;
243 m_ingressPaths.emplace_back(std::forward<IngressPathsT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
253 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
254 template <typename CreatedAtT = Aws::Utils::DateTime>
255 void SetCreatedAt(CreatedAtT&& value) {
256 m_createdAtHasBeenSet = true;
257 m_createdAt = std::forward<CreatedAtT>(value);
258 }
259 template <typename CreatedAtT = Aws::Utils::DateTime>
261 SetCreatedAt(std::forward<CreatedAtT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_serviceRevisionArn;
267
268 Aws::String m_executionRoleArn;
269
270 Aws::String m_taskRoleArn;
271
272 Aws::String m_taskDefinitionArn;
273
274 Aws::String m_cpu;
275
276 Aws::String m_memory;
277
278 ExpressGatewayServiceNetworkConfiguration m_networkConfiguration;
279
280 Aws::String m_healthCheckPath;
281
282 ExpressGatewayContainer m_primaryContainer;
283
284 ExpressGatewayScalingTarget m_scalingTarget;
285
286 Aws::Vector<IngressPathSummary> m_ingressPaths;
287
288 Aws::Utils::DateTime m_createdAt{};
289 bool m_serviceRevisionArnHasBeenSet = false;
290 bool m_executionRoleArnHasBeenSet = false;
291 bool m_taskRoleArnHasBeenSet = false;
292 bool m_taskDefinitionArnHasBeenSet = false;
293 bool m_cpuHasBeenSet = false;
294 bool m_memoryHasBeenSet = false;
295 bool m_networkConfigurationHasBeenSet = false;
296 bool m_healthCheckPathHasBeenSet = false;
297 bool m_primaryContainerHasBeenSet = false;
298 bool m_scalingTargetHasBeenSet = false;
299 bool m_ingressPathsHasBeenSet = false;
300 bool m_createdAtHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace ECS
305} // namespace Aws
const Aws::Vector< IngressPathSummary > & GetIngressPaths() const
ExpressGatewayServiceConfiguration & WithScalingTarget(ScalingTargetT &&value)
AWS_ECS_API ExpressGatewayServiceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
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