AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ServiceDeployment.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/DeploymentConfiguration.h>
12#include <aws/ecs/model/Rollback.h>
13#include <aws/ecs/model/ServiceDeploymentAlarms.h>
14#include <aws/ecs/model/ServiceDeploymentCircuitBreaker.h>
15#include <aws/ecs/model/ServiceDeploymentLifecycleStage.h>
16#include <aws/ecs/model/ServiceDeploymentStatus.h>
17#include <aws/ecs/model/ServiceRevisionSummary.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ECS {
29namespace Model {
30
43 public:
44 AWS_ECS_API ServiceDeployment() = default;
48
50
53 inline const Aws::String& GetServiceDeploymentArn() const { return m_serviceDeploymentArn; }
54 inline bool ServiceDeploymentArnHasBeenSet() const { return m_serviceDeploymentArnHasBeenSet; }
55 template <typename ServiceDeploymentArnT = Aws::String>
56 void SetServiceDeploymentArn(ServiceDeploymentArnT&& value) {
57 m_serviceDeploymentArnHasBeenSet = true;
58 m_serviceDeploymentArn = std::forward<ServiceDeploymentArnT>(value);
59 }
60 template <typename ServiceDeploymentArnT = Aws::String>
61 ServiceDeployment& WithServiceDeploymentArn(ServiceDeploymentArnT&& value) {
62 SetServiceDeploymentArn(std::forward<ServiceDeploymentArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
72 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
73 template <typename ServiceArnT = Aws::String>
74 void SetServiceArn(ServiceArnT&& value) {
75 m_serviceArnHasBeenSet = true;
76 m_serviceArn = std::forward<ServiceArnT>(value);
77 }
78 template <typename ServiceArnT = Aws::String>
79 ServiceDeployment& WithServiceArn(ServiceArnT&& value) {
80 SetServiceArn(std::forward<ServiceArnT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
90 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
91 template <typename ClusterArnT = Aws::String>
92 void SetClusterArn(ClusterArnT&& value) {
93 m_clusterArnHasBeenSet = true;
94 m_clusterArn = std::forward<ClusterArnT>(value);
95 }
96 template <typename ClusterArnT = Aws::String>
97 ServiceDeployment& WithClusterArn(ClusterArnT&& value) {
98 SetClusterArn(std::forward<ClusterArnT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
109 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
110 template <typename CreatedAtT = Aws::Utils::DateTime>
111 void SetCreatedAt(CreatedAtT&& value) {
112 m_createdAtHasBeenSet = true;
113 m_createdAt = std::forward<CreatedAtT>(value);
114 }
115 template <typename CreatedAtT = Aws::Utils::DateTime>
116 ServiceDeployment& WithCreatedAt(CreatedAtT&& value) {
117 SetCreatedAt(std::forward<CreatedAtT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
128 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
129 template <typename StartedAtT = Aws::Utils::DateTime>
130 void SetStartedAt(StartedAtT&& value) {
131 m_startedAtHasBeenSet = true;
132 m_startedAt = std::forward<StartedAtT>(value);
133 }
134 template <typename StartedAtT = Aws::Utils::DateTime>
135 ServiceDeployment& WithStartedAt(StartedAtT&& value) {
136 SetStartedAt(std::forward<StartedAtT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
147 inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; }
148 template <typename FinishedAtT = Aws::Utils::DateTime>
149 void SetFinishedAt(FinishedAtT&& value) {
150 m_finishedAtHasBeenSet = true;
151 m_finishedAt = std::forward<FinishedAtT>(value);
152 }
153 template <typename FinishedAtT = Aws::Utils::DateTime>
154 ServiceDeployment& WithFinishedAt(FinishedAtT&& value) {
155 SetFinishedAt(std::forward<FinishedAtT>(value));
156 return *this;
157 }
159
161
168 inline const Aws::Utils::DateTime& GetStoppedAt() const { return m_stoppedAt; }
169 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
170 template <typename StoppedAtT = Aws::Utils::DateTime>
171 void SetStoppedAt(StoppedAtT&& value) {
172 m_stoppedAtHasBeenSet = true;
173 m_stoppedAt = std::forward<StoppedAtT>(value);
174 }
175 template <typename StoppedAtT = Aws::Utils::DateTime>
176 ServiceDeployment& WithStoppedAt(StoppedAtT&& value) {
177 SetStoppedAt(std::forward<StoppedAtT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
188 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
189 template <typename UpdatedAtT = Aws::Utils::DateTime>
190 void SetUpdatedAt(UpdatedAtT&& value) {
191 m_updatedAtHasBeenSet = true;
192 m_updatedAt = std::forward<UpdatedAtT>(value);
193 }
194 template <typename UpdatedAtT = Aws::Utils::DateTime>
195 ServiceDeployment& WithUpdatedAt(UpdatedAtT&& value) {
196 SetUpdatedAt(std::forward<UpdatedAtT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Vector<ServiceRevisionSummary>& GetSourceServiceRevisions() const { return m_sourceServiceRevisions; }
206 inline bool SourceServiceRevisionsHasBeenSet() const { return m_sourceServiceRevisionsHasBeenSet; }
207 template <typename SourceServiceRevisionsT = Aws::Vector<ServiceRevisionSummary>>
208 void SetSourceServiceRevisions(SourceServiceRevisionsT&& value) {
209 m_sourceServiceRevisionsHasBeenSet = true;
210 m_sourceServiceRevisions = std::forward<SourceServiceRevisionsT>(value);
211 }
212 template <typename SourceServiceRevisionsT = Aws::Vector<ServiceRevisionSummary>>
213 ServiceDeployment& WithSourceServiceRevisions(SourceServiceRevisionsT&& value) {
214 SetSourceServiceRevisions(std::forward<SourceServiceRevisionsT>(value));
215 return *this;
216 }
217 template <typename SourceServiceRevisionsT = ServiceRevisionSummary>
218 ServiceDeployment& AddSourceServiceRevisions(SourceServiceRevisionsT&& value) {
219 m_sourceServiceRevisionsHasBeenSet = true;
220 m_sourceServiceRevisions.emplace_back(std::forward<SourceServiceRevisionsT>(value));
221 return *this;
222 }
224
226
229 inline const ServiceRevisionSummary& GetTargetServiceRevision() const { return m_targetServiceRevision; }
230 inline bool TargetServiceRevisionHasBeenSet() const { return m_targetServiceRevisionHasBeenSet; }
231 template <typename TargetServiceRevisionT = ServiceRevisionSummary>
232 void SetTargetServiceRevision(TargetServiceRevisionT&& value) {
233 m_targetServiceRevisionHasBeenSet = true;
234 m_targetServiceRevision = std::forward<TargetServiceRevisionT>(value);
235 }
236 template <typename TargetServiceRevisionT = ServiceRevisionSummary>
237 ServiceDeployment& WithTargetServiceRevision(TargetServiceRevisionT&& value) {
238 SetTargetServiceRevision(std::forward<TargetServiceRevisionT>(value));
239 return *this;
240 }
242
244
247 inline ServiceDeploymentStatus GetStatus() const { return m_status; }
248 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
250 m_statusHasBeenSet = true;
251 m_status = value;
252 }
254 SetStatus(value);
255 return *this;
256 }
258
260
264 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
265 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
266 template <typename StatusReasonT = Aws::String>
267 void SetStatusReason(StatusReasonT&& value) {
268 m_statusReasonHasBeenSet = true;
269 m_statusReason = std::forward<StatusReasonT>(value);
270 }
271 template <typename StatusReasonT = Aws::String>
272 ServiceDeployment& WithStatusReason(StatusReasonT&& value) {
273 SetStatusReason(std::forward<StatusReasonT>(value));
274 return *this;
275 }
277
279
305 inline ServiceDeploymentLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
306 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
308 m_lifecycleStageHasBeenSet = true;
309 m_lifecycleStage = value;
310 }
312 SetLifecycleStage(value);
313 return *this;
314 }
316
318
319 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
320 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
321 template <typename DeploymentConfigurationT = DeploymentConfiguration>
322 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) {
323 m_deploymentConfigurationHasBeenSet = true;
324 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
325 }
326 template <typename DeploymentConfigurationT = DeploymentConfiguration>
327 ServiceDeployment& WithDeploymentConfiguration(DeploymentConfigurationT&& value) {
328 SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value));
329 return *this;
330 }
332
334
338 inline const Rollback& GetRollback() const { return m_rollback; }
339 inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
340 template <typename RollbackT = Rollback>
341 void SetRollback(RollbackT&& value) {
342 m_rollbackHasBeenSet = true;
343 m_rollback = std::forward<RollbackT>(value);
344 }
345 template <typename RollbackT = Rollback>
346 ServiceDeployment& WithRollback(RollbackT&& value) {
347 SetRollback(std::forward<RollbackT>(value));
348 return *this;
349 }
351
353
357 inline const ServiceDeploymentCircuitBreaker& GetDeploymentCircuitBreaker() const { return m_deploymentCircuitBreaker; }
358 inline bool DeploymentCircuitBreakerHasBeenSet() const { return m_deploymentCircuitBreakerHasBeenSet; }
359 template <typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
360 void SetDeploymentCircuitBreaker(DeploymentCircuitBreakerT&& value) {
361 m_deploymentCircuitBreakerHasBeenSet = true;
362 m_deploymentCircuitBreaker = std::forward<DeploymentCircuitBreakerT>(value);
363 }
364 template <typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
365 ServiceDeployment& WithDeploymentCircuitBreaker(DeploymentCircuitBreakerT&& value) {
366 SetDeploymentCircuitBreaker(std::forward<DeploymentCircuitBreakerT>(value));
367 return *this;
368 }
370
372
375 inline const ServiceDeploymentAlarms& GetAlarms() const { return m_alarms; }
376 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
377 template <typename AlarmsT = ServiceDeploymentAlarms>
378 void SetAlarms(AlarmsT&& value) {
379 m_alarmsHasBeenSet = true;
380 m_alarms = std::forward<AlarmsT>(value);
381 }
382 template <typename AlarmsT = ServiceDeploymentAlarms>
383 ServiceDeployment& WithAlarms(AlarmsT&& value) {
384 SetAlarms(std::forward<AlarmsT>(value));
385 return *this;
386 }
388 private:
389 Aws::String m_serviceDeploymentArn;
390
391 Aws::String m_serviceArn;
392
393 Aws::String m_clusterArn;
394
395 Aws::Utils::DateTime m_createdAt{};
396
397 Aws::Utils::DateTime m_startedAt{};
398
399 Aws::Utils::DateTime m_finishedAt{};
400
401 Aws::Utils::DateTime m_stoppedAt{};
402
403 Aws::Utils::DateTime m_updatedAt{};
404
405 Aws::Vector<ServiceRevisionSummary> m_sourceServiceRevisions;
406
407 ServiceRevisionSummary m_targetServiceRevision;
408
410
411 Aws::String m_statusReason;
412
414
415 DeploymentConfiguration m_deploymentConfiguration;
416
417 Rollback m_rollback;
418
419 ServiceDeploymentCircuitBreaker m_deploymentCircuitBreaker;
420
421 ServiceDeploymentAlarms m_alarms;
422 bool m_serviceDeploymentArnHasBeenSet = false;
423 bool m_serviceArnHasBeenSet = false;
424 bool m_clusterArnHasBeenSet = false;
425 bool m_createdAtHasBeenSet = false;
426 bool m_startedAtHasBeenSet = false;
427 bool m_finishedAtHasBeenSet = false;
428 bool m_stoppedAtHasBeenSet = false;
429 bool m_updatedAtHasBeenSet = false;
430 bool m_sourceServiceRevisionsHasBeenSet = false;
431 bool m_targetServiceRevisionHasBeenSet = false;
432 bool m_statusHasBeenSet = false;
433 bool m_statusReasonHasBeenSet = false;
434 bool m_lifecycleStageHasBeenSet = false;
435 bool m_deploymentConfigurationHasBeenSet = false;
436 bool m_rollbackHasBeenSet = false;
437 bool m_deploymentCircuitBreakerHasBeenSet = false;
438 bool m_alarmsHasBeenSet = false;
439};
440
441} // namespace Model
442} // namespace ECS
443} // namespace Aws
void SetTargetServiceRevision(TargetServiceRevisionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceDeployment & WithSourceServiceRevisions(SourceServiceRevisionsT &&value)
void SetDeploymentCircuitBreaker(DeploymentCircuitBreakerT &&value)
void SetServiceDeploymentArn(ServiceDeploymentArnT &&value)
const Aws::String & GetServiceArn() const
const Rollback & GetRollback() const
ServiceDeploymentLifecycleStage GetLifecycleStage() const
const Aws::Utils::DateTime & GetStartedAt() const
const ServiceDeploymentAlarms & GetAlarms() const
const ServiceDeploymentCircuitBreaker & GetDeploymentCircuitBreaker() const
void SetLifecycleStage(ServiceDeploymentLifecycleStage value)
ServiceDeployment & WithClusterArn(ClusterArnT &&value)
ServiceDeployment & AddSourceServiceRevisions(SourceServiceRevisionsT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
ServiceDeployment & WithRollback(RollbackT &&value)
ServiceDeployment & WithServiceArn(ServiceArnT &&value)
const ServiceRevisionSummary & GetTargetServiceRevision() const
ServiceDeployment & WithStatus(ServiceDeploymentStatus value)
const Aws::Utils::DateTime & GetStoppedAt() const
ServiceDeployment & WithUpdatedAt(UpdatedAtT &&value)
ServiceDeployment & WithAlarms(AlarmsT &&value)
void SetDeploymentConfiguration(DeploymentConfigurationT &&value)
void SetStatus(ServiceDeploymentStatus value)
const Aws::String & GetStatusReason() const
const Aws::Vector< ServiceRevisionSummary > & GetSourceServiceRevisions() const
AWS_ECS_API ServiceDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
ServiceDeployment & WithCreatedAt(CreatedAtT &&value)
ServiceDeployment & WithStartedAt(StartedAtT &&value)
ServiceDeployment & WithTargetServiceRevision(TargetServiceRevisionT &&value)
void SetSourceServiceRevisions(SourceServiceRevisionsT &&value)
void SetStoppedAt(StoppedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetStartedAt(StartedAtT &&value)
ServiceDeployment & WithFinishedAt(FinishedAtT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceDeployment & WithDeploymentConfiguration(DeploymentConfigurationT &&value)
const Aws::Utils::DateTime & GetFinishedAt() const
void SetClusterArn(ClusterArnT &&value)
void SetStatusReason(StatusReasonT &&value)
const Aws::String & GetServiceDeploymentArn() const
void SetFinishedAt(FinishedAtT &&value)
ServiceDeployment & WithStatusReason(StatusReasonT &&value)
AWS_ECS_API ServiceDeployment(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ServiceDeployment()=default
const Aws::String & GetClusterArn() const
ServiceDeployment & WithDeploymentCircuitBreaker(DeploymentCircuitBreakerT &&value)
void SetServiceArn(ServiceArnT &&value)
const DeploymentConfiguration & GetDeploymentConfiguration() const
ServiceDeployment & WithServiceDeploymentArn(ServiceDeploymentArnT &&value)
ServiceDeployment & WithStoppedAt(StoppedAtT &&value)
ServiceDeploymentStatus GetStatus() const
ServiceDeployment & WithLifecycleStage(ServiceDeploymentLifecycleStage 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