AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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
310 inline ServiceDeploymentLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
311 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
313 m_lifecycleStageHasBeenSet = true;
314 m_lifecycleStage = value;
315 }
317 SetLifecycleStage(value);
318 return *this;
319 }
321
323
326 inline const Aws::Vector<DeploymentLifecycleHookDetail>& GetLifecycleHookDetails() const { return m_lifecycleHookDetails; }
327 inline bool LifecycleHookDetailsHasBeenSet() const { return m_lifecycleHookDetailsHasBeenSet; }
328 template <typename LifecycleHookDetailsT = Aws::Vector<DeploymentLifecycleHookDetail>>
329 void SetLifecycleHookDetails(LifecycleHookDetailsT&& value) {
330 m_lifecycleHookDetailsHasBeenSet = true;
331 m_lifecycleHookDetails = std::forward<LifecycleHookDetailsT>(value);
332 }
333 template <typename LifecycleHookDetailsT = Aws::Vector<DeploymentLifecycleHookDetail>>
334 ServiceDeployment& WithLifecycleHookDetails(LifecycleHookDetailsT&& value) {
335 SetLifecycleHookDetails(std::forward<LifecycleHookDetailsT>(value));
336 return *this;
337 }
338 template <typename LifecycleHookDetailsT = DeploymentLifecycleHookDetail>
339 ServiceDeployment& AddLifecycleHookDetails(LifecycleHookDetailsT&& value) {
340 m_lifecycleHookDetailsHasBeenSet = true;
341 m_lifecycleHookDetails.emplace_back(std::forward<LifecycleHookDetailsT>(value));
342 return *this;
343 }
345
347
348 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
349 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
350 template <typename DeploymentConfigurationT = DeploymentConfiguration>
351 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) {
352 m_deploymentConfigurationHasBeenSet = true;
353 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
354 }
355 template <typename DeploymentConfigurationT = DeploymentConfiguration>
356 ServiceDeployment& WithDeploymentConfiguration(DeploymentConfigurationT&& value) {
357 SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value));
358 return *this;
359 }
361
363
367 inline const Rollback& GetRollback() const { return m_rollback; }
368 inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
369 template <typename RollbackT = Rollback>
370 void SetRollback(RollbackT&& value) {
371 m_rollbackHasBeenSet = true;
372 m_rollback = std::forward<RollbackT>(value);
373 }
374 template <typename RollbackT = Rollback>
375 ServiceDeployment& WithRollback(RollbackT&& value) {
376 SetRollback(std::forward<RollbackT>(value));
377 return *this;
378 }
380
382
386 inline const ServiceDeploymentCircuitBreaker& GetDeploymentCircuitBreaker() const { return m_deploymentCircuitBreaker; }
387 inline bool DeploymentCircuitBreakerHasBeenSet() const { return m_deploymentCircuitBreakerHasBeenSet; }
388 template <typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
389 void SetDeploymentCircuitBreaker(DeploymentCircuitBreakerT&& value) {
390 m_deploymentCircuitBreakerHasBeenSet = true;
391 m_deploymentCircuitBreaker = std::forward<DeploymentCircuitBreakerT>(value);
392 }
393 template <typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
394 ServiceDeployment& WithDeploymentCircuitBreaker(DeploymentCircuitBreakerT&& value) {
395 SetDeploymentCircuitBreaker(std::forward<DeploymentCircuitBreakerT>(value));
396 return *this;
397 }
399
401
404 inline const ServiceDeploymentAlarms& GetAlarms() const { return m_alarms; }
405 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
406 template <typename AlarmsT = ServiceDeploymentAlarms>
407 void SetAlarms(AlarmsT&& value) {
408 m_alarmsHasBeenSet = true;
409 m_alarms = std::forward<AlarmsT>(value);
410 }
411 template <typename AlarmsT = ServiceDeploymentAlarms>
412 ServiceDeployment& WithAlarms(AlarmsT&& value) {
413 SetAlarms(std::forward<AlarmsT>(value));
414 return *this;
415 }
417 private:
418 Aws::String m_serviceDeploymentArn;
419
420 Aws::String m_serviceArn;
421
422 Aws::String m_clusterArn;
423
424 Aws::Utils::DateTime m_createdAt{};
425
426 Aws::Utils::DateTime m_startedAt{};
427
428 Aws::Utils::DateTime m_finishedAt{};
429
430 Aws::Utils::DateTime m_stoppedAt{};
431
432 Aws::Utils::DateTime m_updatedAt{};
433
434 Aws::Vector<ServiceRevisionSummary> m_sourceServiceRevisions;
435
436 ServiceRevisionSummary m_targetServiceRevision;
437
439
440 Aws::String m_statusReason;
441
443
444 Aws::Vector<DeploymentLifecycleHookDetail> m_lifecycleHookDetails;
445
446 DeploymentConfiguration m_deploymentConfiguration;
447
448 Rollback m_rollback;
449
450 ServiceDeploymentCircuitBreaker m_deploymentCircuitBreaker;
451
452 ServiceDeploymentAlarms m_alarms;
453 bool m_serviceDeploymentArnHasBeenSet = false;
454 bool m_serviceArnHasBeenSet = false;
455 bool m_clusterArnHasBeenSet = false;
456 bool m_createdAtHasBeenSet = false;
457 bool m_startedAtHasBeenSet = false;
458 bool m_finishedAtHasBeenSet = false;
459 bool m_stoppedAtHasBeenSet = false;
460 bool m_updatedAtHasBeenSet = false;
461 bool m_sourceServiceRevisionsHasBeenSet = false;
462 bool m_targetServiceRevisionHasBeenSet = false;
463 bool m_statusHasBeenSet = false;
464 bool m_statusReasonHasBeenSet = false;
465 bool m_lifecycleStageHasBeenSet = false;
466 bool m_lifecycleHookDetailsHasBeenSet = false;
467 bool m_deploymentConfigurationHasBeenSet = false;
468 bool m_rollbackHasBeenSet = false;
469 bool m_deploymentCircuitBreakerHasBeenSet = false;
470 bool m_alarmsHasBeenSet = false;
471};
472
473} // namespace Model
474} // namespace ECS
475} // 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