AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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/DeploymentLifecycleHookDetail.h>
13#include <aws/ecs/model/Rollback.h>
14#include <aws/ecs/model/ServiceDeploymentAlarms.h>
15#include <aws/ecs/model/ServiceDeploymentCircuitBreaker.h>
16#include <aws/ecs/model/ServiceDeploymentLifecycleStage.h>
17#include <aws/ecs/model/ServiceDeploymentStatus.h>
18#include <aws/ecs/model/ServiceRevisionSummary.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace ECS {
30namespace Model {
31
44 public:
45 AWS_ECS_API ServiceDeployment() = default;
49
51
54 inline const Aws::String& GetServiceDeploymentArn() const { return m_serviceDeploymentArn; }
55 inline bool ServiceDeploymentArnHasBeenSet() const { return m_serviceDeploymentArnHasBeenSet; }
56 template <typename ServiceDeploymentArnT = Aws::String>
57 void SetServiceDeploymentArn(ServiceDeploymentArnT&& value) {
58 m_serviceDeploymentArnHasBeenSet = true;
59 m_serviceDeploymentArn = std::forward<ServiceDeploymentArnT>(value);
60 }
61 template <typename ServiceDeploymentArnT = Aws::String>
62 ServiceDeployment& WithServiceDeploymentArn(ServiceDeploymentArnT&& value) {
63 SetServiceDeploymentArn(std::forward<ServiceDeploymentArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
73 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
74 template <typename ServiceArnT = Aws::String>
75 void SetServiceArn(ServiceArnT&& value) {
76 m_serviceArnHasBeenSet = true;
77 m_serviceArn = std::forward<ServiceArnT>(value);
78 }
79 template <typename ServiceArnT = Aws::String>
80 ServiceDeployment& WithServiceArn(ServiceArnT&& value) {
81 SetServiceArn(std::forward<ServiceArnT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
91 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
92 template <typename ClusterArnT = Aws::String>
93 void SetClusterArn(ClusterArnT&& value) {
94 m_clusterArnHasBeenSet = true;
95 m_clusterArn = std::forward<ClusterArnT>(value);
96 }
97 template <typename ClusterArnT = Aws::String>
98 ServiceDeployment& WithClusterArn(ClusterArnT&& value) {
99 SetClusterArn(std::forward<ClusterArnT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
110 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
111 template <typename CreatedAtT = Aws::Utils::DateTime>
112 void SetCreatedAt(CreatedAtT&& value) {
113 m_createdAtHasBeenSet = true;
114 m_createdAt = std::forward<CreatedAtT>(value);
115 }
116 template <typename CreatedAtT = Aws::Utils::DateTime>
117 ServiceDeployment& WithCreatedAt(CreatedAtT&& value) {
118 SetCreatedAt(std::forward<CreatedAtT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
129 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
130 template <typename StartedAtT = Aws::Utils::DateTime>
131 void SetStartedAt(StartedAtT&& value) {
132 m_startedAtHasBeenSet = true;
133 m_startedAt = std::forward<StartedAtT>(value);
134 }
135 template <typename StartedAtT = Aws::Utils::DateTime>
136 ServiceDeployment& WithStartedAt(StartedAtT&& value) {
137 SetStartedAt(std::forward<StartedAtT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
148 inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; }
149 template <typename FinishedAtT = Aws::Utils::DateTime>
150 void SetFinishedAt(FinishedAtT&& value) {
151 m_finishedAtHasBeenSet = true;
152 m_finishedAt = std::forward<FinishedAtT>(value);
153 }
154 template <typename FinishedAtT = Aws::Utils::DateTime>
155 ServiceDeployment& WithFinishedAt(FinishedAtT&& value) {
156 SetFinishedAt(std::forward<FinishedAtT>(value));
157 return *this;
158 }
160
162
169 inline const Aws::Utils::DateTime& GetStoppedAt() const { return m_stoppedAt; }
170 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
171 template <typename StoppedAtT = Aws::Utils::DateTime>
172 void SetStoppedAt(StoppedAtT&& value) {
173 m_stoppedAtHasBeenSet = true;
174 m_stoppedAt = std::forward<StoppedAtT>(value);
175 }
176 template <typename StoppedAtT = Aws::Utils::DateTime>
177 ServiceDeployment& WithStoppedAt(StoppedAtT&& value) {
178 SetStoppedAt(std::forward<StoppedAtT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
189 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
190 template <typename UpdatedAtT = Aws::Utils::DateTime>
191 void SetUpdatedAt(UpdatedAtT&& value) {
192 m_updatedAtHasBeenSet = true;
193 m_updatedAt = std::forward<UpdatedAtT>(value);
194 }
195 template <typename UpdatedAtT = Aws::Utils::DateTime>
196 ServiceDeployment& WithUpdatedAt(UpdatedAtT&& value) {
197 SetUpdatedAt(std::forward<UpdatedAtT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Vector<ServiceRevisionSummary>& GetSourceServiceRevisions() const { return m_sourceServiceRevisions; }
207 inline bool SourceServiceRevisionsHasBeenSet() const { return m_sourceServiceRevisionsHasBeenSet; }
208 template <typename SourceServiceRevisionsT = Aws::Vector<ServiceRevisionSummary>>
209 void SetSourceServiceRevisions(SourceServiceRevisionsT&& value) {
210 m_sourceServiceRevisionsHasBeenSet = true;
211 m_sourceServiceRevisions = std::forward<SourceServiceRevisionsT>(value);
212 }
213 template <typename SourceServiceRevisionsT = Aws::Vector<ServiceRevisionSummary>>
214 ServiceDeployment& WithSourceServiceRevisions(SourceServiceRevisionsT&& value) {
215 SetSourceServiceRevisions(std::forward<SourceServiceRevisionsT>(value));
216 return *this;
217 }
218 template <typename SourceServiceRevisionsT = ServiceRevisionSummary>
219 ServiceDeployment& AddSourceServiceRevisions(SourceServiceRevisionsT&& value) {
220 m_sourceServiceRevisionsHasBeenSet = true;
221 m_sourceServiceRevisions.emplace_back(std::forward<SourceServiceRevisionsT>(value));
222 return *this;
223 }
225
227
230 inline const ServiceRevisionSummary& GetTargetServiceRevision() const { return m_targetServiceRevision; }
231 inline bool TargetServiceRevisionHasBeenSet() const { return m_targetServiceRevisionHasBeenSet; }
232 template <typename TargetServiceRevisionT = ServiceRevisionSummary>
233 void SetTargetServiceRevision(TargetServiceRevisionT&& value) {
234 m_targetServiceRevisionHasBeenSet = true;
235 m_targetServiceRevision = std::forward<TargetServiceRevisionT>(value);
236 }
237 template <typename TargetServiceRevisionT = ServiceRevisionSummary>
238 ServiceDeployment& WithTargetServiceRevision(TargetServiceRevisionT&& value) {
239 SetTargetServiceRevision(std::forward<TargetServiceRevisionT>(value));
240 return *this;
241 }
243
245
248 inline ServiceDeploymentStatus GetStatus() const { return m_status; }
249 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
251 m_statusHasBeenSet = true;
252 m_status = value;
253 }
255 SetStatus(value);
256 return *this;
257 }
259
261
265 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
266 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
267 template <typename StatusReasonT = Aws::String>
268 void SetStatusReason(StatusReasonT&& value) {
269 m_statusReasonHasBeenSet = true;
270 m_statusReason = std::forward<StatusReasonT>(value);
271 }
272 template <typename StatusReasonT = Aws::String>
273 ServiceDeployment& WithStatusReason(StatusReasonT&& value) {
274 SetStatusReason(std::forward<StatusReasonT>(value));
275 return *this;
276 }
278
280
306 inline ServiceDeploymentLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
307 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
309 m_lifecycleStageHasBeenSet = true;
310 m_lifecycleStage = value;
311 }
313 SetLifecycleStage(value);
314 return *this;
315 }
317
319
322 inline const Aws::Vector<DeploymentLifecycleHookDetail>& GetLifecycleHookDetails() const { return m_lifecycleHookDetails; }
323 inline bool LifecycleHookDetailsHasBeenSet() const { return m_lifecycleHookDetailsHasBeenSet; }
324 template <typename LifecycleHookDetailsT = Aws::Vector<DeploymentLifecycleHookDetail>>
325 void SetLifecycleHookDetails(LifecycleHookDetailsT&& value) {
326 m_lifecycleHookDetailsHasBeenSet = true;
327 m_lifecycleHookDetails = std::forward<LifecycleHookDetailsT>(value);
328 }
329 template <typename LifecycleHookDetailsT = Aws::Vector<DeploymentLifecycleHookDetail>>
330 ServiceDeployment& WithLifecycleHookDetails(LifecycleHookDetailsT&& value) {
331 SetLifecycleHookDetails(std::forward<LifecycleHookDetailsT>(value));
332 return *this;
333 }
334 template <typename LifecycleHookDetailsT = DeploymentLifecycleHookDetail>
335 ServiceDeployment& AddLifecycleHookDetails(LifecycleHookDetailsT&& value) {
336 m_lifecycleHookDetailsHasBeenSet = true;
337 m_lifecycleHookDetails.emplace_back(std::forward<LifecycleHookDetailsT>(value));
338 return *this;
339 }
341
343
344 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
345 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
346 template <typename DeploymentConfigurationT = DeploymentConfiguration>
347 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) {
348 m_deploymentConfigurationHasBeenSet = true;
349 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
350 }
351 template <typename DeploymentConfigurationT = DeploymentConfiguration>
352 ServiceDeployment& WithDeploymentConfiguration(DeploymentConfigurationT&& value) {
353 SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value));
354 return *this;
355 }
357
359
363 inline const Rollback& GetRollback() const { return m_rollback; }
364 inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
365 template <typename RollbackT = Rollback>
366 void SetRollback(RollbackT&& value) {
367 m_rollbackHasBeenSet = true;
368 m_rollback = std::forward<RollbackT>(value);
369 }
370 template <typename RollbackT = Rollback>
371 ServiceDeployment& WithRollback(RollbackT&& value) {
372 SetRollback(std::forward<RollbackT>(value));
373 return *this;
374 }
376
378
382 inline const ServiceDeploymentCircuitBreaker& GetDeploymentCircuitBreaker() const { return m_deploymentCircuitBreaker; }
383 inline bool DeploymentCircuitBreakerHasBeenSet() const { return m_deploymentCircuitBreakerHasBeenSet; }
384 template <typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
385 void SetDeploymentCircuitBreaker(DeploymentCircuitBreakerT&& value) {
386 m_deploymentCircuitBreakerHasBeenSet = true;
387 m_deploymentCircuitBreaker = std::forward<DeploymentCircuitBreakerT>(value);
388 }
389 template <typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
390 ServiceDeployment& WithDeploymentCircuitBreaker(DeploymentCircuitBreakerT&& value) {
391 SetDeploymentCircuitBreaker(std::forward<DeploymentCircuitBreakerT>(value));
392 return *this;
393 }
395
397
400 inline const ServiceDeploymentAlarms& GetAlarms() const { return m_alarms; }
401 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
402 template <typename AlarmsT = ServiceDeploymentAlarms>
403 void SetAlarms(AlarmsT&& value) {
404 m_alarmsHasBeenSet = true;
405 m_alarms = std::forward<AlarmsT>(value);
406 }
407 template <typename AlarmsT = ServiceDeploymentAlarms>
408 ServiceDeployment& WithAlarms(AlarmsT&& value) {
409 SetAlarms(std::forward<AlarmsT>(value));
410 return *this;
411 }
413 private:
414 Aws::String m_serviceDeploymentArn;
415
416 Aws::String m_serviceArn;
417
418 Aws::String m_clusterArn;
419
420 Aws::Utils::DateTime m_createdAt{};
421
422 Aws::Utils::DateTime m_startedAt{};
423
424 Aws::Utils::DateTime m_finishedAt{};
425
426 Aws::Utils::DateTime m_stoppedAt{};
427
428 Aws::Utils::DateTime m_updatedAt{};
429
430 Aws::Vector<ServiceRevisionSummary> m_sourceServiceRevisions;
431
432 ServiceRevisionSummary m_targetServiceRevision;
433
435
436 Aws::String m_statusReason;
437
439
440 Aws::Vector<DeploymentLifecycleHookDetail> m_lifecycleHookDetails;
441
442 DeploymentConfiguration m_deploymentConfiguration;
443
444 Rollback m_rollback;
445
446 ServiceDeploymentCircuitBreaker m_deploymentCircuitBreaker;
447
448 ServiceDeploymentAlarms m_alarms;
449 bool m_serviceDeploymentArnHasBeenSet = false;
450 bool m_serviceArnHasBeenSet = false;
451 bool m_clusterArnHasBeenSet = false;
452 bool m_createdAtHasBeenSet = false;
453 bool m_startedAtHasBeenSet = false;
454 bool m_finishedAtHasBeenSet = false;
455 bool m_stoppedAtHasBeenSet = false;
456 bool m_updatedAtHasBeenSet = false;
457 bool m_sourceServiceRevisionsHasBeenSet = false;
458 bool m_targetServiceRevisionHasBeenSet = false;
459 bool m_statusHasBeenSet = false;
460 bool m_statusReasonHasBeenSet = false;
461 bool m_lifecycleStageHasBeenSet = false;
462 bool m_lifecycleHookDetailsHasBeenSet = false;
463 bool m_deploymentConfigurationHasBeenSet = false;
464 bool m_rollbackHasBeenSet = false;
465 bool m_deploymentCircuitBreakerHasBeenSet = false;
466 bool m_alarmsHasBeenSet = false;
467};
468
469} // namespace Model
470} // namespace ECS
471} // 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
ServiceDeployment & AddLifecycleHookDetails(LifecycleHookDetailsT &&value)
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
ServiceDeployment & WithLifecycleHookDetails(LifecycleHookDetailsT &&value)
void SetFinishedAt(FinishedAtT &&value)
void SetLifecycleHookDetails(LifecycleHookDetailsT &&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
const Aws::Vector< DeploymentLifecycleHookDetail > & GetLifecycleHookDetails() 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