AWS SDK for C++

AWS SDK for C++ Version 1.11.756

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
100 inline const Aws::String& GetCpu() const { return m_cpu; }
101 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
102 template <typename CpuT = Aws::String>
103 void SetCpu(CpuT&& value) {
104 m_cpuHasBeenSet = true;
105 m_cpu = std::forward<CpuT>(value);
106 }
107 template <typename CpuT = Aws::String>
109 SetCpu(std::forward<CpuT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetMemory() const { return m_memory; }
119 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
120 template <typename MemoryT = Aws::String>
121 void SetMemory(MemoryT&& value) {
122 m_memoryHasBeenSet = true;
123 m_memory = std::forward<MemoryT>(value);
124 }
125 template <typename MemoryT = Aws::String>
127 SetMemory(std::forward<MemoryT>(value));
128 return *this;
129 }
131
133
136 inline const ExpressGatewayServiceNetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
137 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
138 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
139 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
140 m_networkConfigurationHasBeenSet = true;
141 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
142 }
143 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
145 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
155 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
156 template <typename HealthCheckPathT = Aws::String>
157 void SetHealthCheckPath(HealthCheckPathT&& value) {
158 m_healthCheckPathHasBeenSet = true;
159 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
160 }
161 template <typename HealthCheckPathT = Aws::String>
163 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
164 return *this;
165 }
167
169
172 inline const ExpressGatewayContainer& GetPrimaryContainer() const { return m_primaryContainer; }
173 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
174 template <typename PrimaryContainerT = ExpressGatewayContainer>
175 void SetPrimaryContainer(PrimaryContainerT&& value) {
176 m_primaryContainerHasBeenSet = true;
177 m_primaryContainer = std::forward<PrimaryContainerT>(value);
178 }
179 template <typename PrimaryContainerT = ExpressGatewayContainer>
181 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
182 return *this;
183 }
185
187
190 inline const ExpressGatewayScalingTarget& GetScalingTarget() const { return m_scalingTarget; }
191 inline bool ScalingTargetHasBeenSet() const { return m_scalingTargetHasBeenSet; }
192 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
193 void SetScalingTarget(ScalingTargetT&& value) {
194 m_scalingTargetHasBeenSet = true;
195 m_scalingTarget = std::forward<ScalingTargetT>(value);
196 }
197 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
199 SetScalingTarget(std::forward<ScalingTargetT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Vector<IngressPathSummary>& GetIngressPaths() const { return m_ingressPaths; }
209 inline bool IngressPathsHasBeenSet() const { return m_ingressPathsHasBeenSet; }
210 template <typename IngressPathsT = Aws::Vector<IngressPathSummary>>
211 void SetIngressPaths(IngressPathsT&& value) {
212 m_ingressPathsHasBeenSet = true;
213 m_ingressPaths = std::forward<IngressPathsT>(value);
214 }
215 template <typename IngressPathsT = Aws::Vector<IngressPathSummary>>
217 SetIngressPaths(std::forward<IngressPathsT>(value));
218 return *this;
219 }
220 template <typename IngressPathsT = IngressPathSummary>
222 m_ingressPathsHasBeenSet = true;
223 m_ingressPaths.emplace_back(std::forward<IngressPathsT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
233 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
234 template <typename CreatedAtT = Aws::Utils::DateTime>
235 void SetCreatedAt(CreatedAtT&& value) {
236 m_createdAtHasBeenSet = true;
237 m_createdAt = std::forward<CreatedAtT>(value);
238 }
239 template <typename CreatedAtT = Aws::Utils::DateTime>
241 SetCreatedAt(std::forward<CreatedAtT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_serviceRevisionArn;
247
248 Aws::String m_executionRoleArn;
249
250 Aws::String m_taskRoleArn;
251
252 Aws::String m_cpu;
253
254 Aws::String m_memory;
255
256 ExpressGatewayServiceNetworkConfiguration m_networkConfiguration;
257
258 Aws::String m_healthCheckPath;
259
260 ExpressGatewayContainer m_primaryContainer;
261
262 ExpressGatewayScalingTarget m_scalingTarget;
263
264 Aws::Vector<IngressPathSummary> m_ingressPaths;
265
266 Aws::Utils::DateTime m_createdAt{};
267 bool m_serviceRevisionArnHasBeenSet = false;
268 bool m_executionRoleArnHasBeenSet = false;
269 bool m_taskRoleArnHasBeenSet = false;
270 bool m_cpuHasBeenSet = false;
271 bool m_memoryHasBeenSet = false;
272 bool m_networkConfigurationHasBeenSet = false;
273 bool m_healthCheckPathHasBeenSet = false;
274 bool m_primaryContainerHasBeenSet = false;
275 bool m_scalingTargetHasBeenSet = false;
276 bool m_ingressPathsHasBeenSet = false;
277 bool m_createdAtHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace ECS
282} // 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 & 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