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>
56 template <
typename ServiceDeploymentArnT = Aws::String>
58 m_serviceDeploymentArnHasBeenSet =
true;
59 m_serviceDeploymentArn = std::forward<ServiceDeploymentArnT>(value);
61 template <
typename ServiceDeploymentArnT = Aws::String>
74 template <
typename ServiceArnT = Aws::String>
76 m_serviceArnHasBeenSet =
true;
77 m_serviceArn = std::forward<ServiceArnT>(value);
79 template <
typename ServiceArnT = Aws::String>
92 template <
typename ClusterArnT = Aws::String>
94 m_clusterArnHasBeenSet =
true;
95 m_clusterArn = std::forward<ClusterArnT>(value);
97 template <
typename ClusterArnT = Aws::String>
111 template <
typename CreatedAtT = Aws::Utils::DateTime>
113 m_createdAtHasBeenSet =
true;
114 m_createdAt = std::forward<CreatedAtT>(value);
116 template <
typename CreatedAtT = Aws::Utils::DateTime>
130 template <
typename StartedAtT = Aws::Utils::DateTime>
132 m_startedAtHasBeenSet =
true;
133 m_startedAt = std::forward<StartedAtT>(value);
135 template <
typename StartedAtT = Aws::Utils::DateTime>
149 template <
typename FinishedAtT = Aws::Utils::DateTime>
151 m_finishedAtHasBeenSet =
true;
152 m_finishedAt = std::forward<FinishedAtT>(value);
154 template <
typename FinishedAtT = Aws::Utils::DateTime>
171 template <
typename StoppedAtT = Aws::Utils::DateTime>
173 m_stoppedAtHasBeenSet =
true;
174 m_stoppedAt = std::forward<StoppedAtT>(value);
176 template <
typename StoppedAtT = Aws::Utils::DateTime>
190 template <
typename UpdatedAtT = Aws::Utils::DateTime>
192 m_updatedAtHasBeenSet =
true;
193 m_updatedAt = std::forward<UpdatedAtT>(value);
195 template <
typename UpdatedAtT = Aws::Utils::DateTime>
208 template <
typename SourceServiceRevisionsT = Aws::Vector<ServiceRevisionSummary>>
210 m_sourceServiceRevisionsHasBeenSet =
true;
211 m_sourceServiceRevisions = std::forward<SourceServiceRevisionsT>(value);
213 template <
typename SourceServiceRevisionsT = Aws::Vector<ServiceRevisionSummary>>
218 template <
typename SourceServiceRevisionsT = ServiceRevisionSummary>
220 m_sourceServiceRevisionsHasBeenSet =
true;
221 m_sourceServiceRevisions.emplace_back(std::forward<SourceServiceRevisionsT>(value));
232 template <
typename TargetServiceRevisionT = ServiceRevisionSummary>
234 m_targetServiceRevisionHasBeenSet =
true;
235 m_targetServiceRevision = std::forward<TargetServiceRevisionT>(value);
237 template <
typename TargetServiceRevisionT = ServiceRevisionSummary>
251 m_statusHasBeenSet =
true;
267 template <
typename StatusReasonT = Aws::String>
269 m_statusReasonHasBeenSet =
true;
270 m_statusReason = std::forward<StatusReasonT>(value);
272 template <
typename StatusReasonT = Aws::String>
309 m_lifecycleStageHasBeenSet =
true;
310 m_lifecycleStage = value;
324 template <
typename LifecycleHookDetailsT = Aws::Vector<DeploymentLifecycleHookDetail>>
326 m_lifecycleHookDetailsHasBeenSet =
true;
327 m_lifecycleHookDetails = std::forward<LifecycleHookDetailsT>(value);
329 template <
typename LifecycleHookDetailsT = Aws::Vector<DeploymentLifecycleHookDetail>>
334 template <
typename LifecycleHookDetailsT = DeploymentLifecycleHookDetail>
336 m_lifecycleHookDetailsHasBeenSet =
true;
337 m_lifecycleHookDetails.emplace_back(std::forward<LifecycleHookDetailsT>(value));
346 template <
typename DeploymentConfigurationT = DeploymentConfiguration>
348 m_deploymentConfigurationHasBeenSet =
true;
349 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
351 template <
typename DeploymentConfigurationT = DeploymentConfiguration>
365 template <
typename RollbackT = Rollback>
367 m_rollbackHasBeenSet =
true;
368 m_rollback = std::forward<RollbackT>(value);
370 template <
typename RollbackT = Rollback>
384 template <
typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
386 m_deploymentCircuitBreakerHasBeenSet =
true;
387 m_deploymentCircuitBreaker = std::forward<DeploymentCircuitBreakerT>(value);
389 template <
typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
402 template <
typename AlarmsT = ServiceDeploymentAlarms>
404 m_alarmsHasBeenSet =
true;
405 m_alarms = std::forward<AlarmsT>(value);
407 template <
typename AlarmsT = ServiceDeploymentAlarms>
432 ServiceRevisionSummary m_targetServiceRevision;
442 DeploymentConfiguration m_deploymentConfiguration;
446 ServiceDeploymentCircuitBreaker m_deploymentCircuitBreaker;
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;
void SetTargetServiceRevision(TargetServiceRevisionT &&value)
bool TargetServiceRevisionHasBeenSet() const
bool StatusReasonHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceDeployment & WithSourceServiceRevisions(SourceServiceRevisionsT &&value)
void SetDeploymentCircuitBreaker(DeploymentCircuitBreakerT &&value)
bool StartedAtHasBeenSet() const
bool DeploymentCircuitBreakerHasBeenSet() const
void SetServiceDeploymentArn(ServiceDeploymentArnT &&value)
const Aws::String & GetServiceArn() const
const Rollback & GetRollback() const
void SetAlarms(AlarmsT &&value)
ServiceDeploymentLifecycleStage GetLifecycleStage() const
const Aws::Utils::DateTime & GetStartedAt() const
bool FinishedAtHasBeenSet() 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)
bool UpdatedAtHasBeenSet() const
const ServiceRevisionSummary & GetTargetServiceRevision() const
ServiceDeployment & WithStatus(ServiceDeploymentStatus value)
void SetRollback(RollbackT &&value)
bool ClusterArnHasBeenSet() const
const Aws::Utils::DateTime & GetStoppedAt() const
ServiceDeployment & WithUpdatedAt(UpdatedAtT &&value)
ServiceDeployment & WithAlarms(AlarmsT &&value)
void SetDeploymentConfiguration(DeploymentConfigurationT &&value)
void SetStatus(ServiceDeploymentStatus value)
bool CreatedAtHasBeenSet() const
const Aws::String & GetStatusReason() const
const Aws::Vector< ServiceRevisionSummary > & GetSourceServiceRevisions() const
bool LifecycleStageHasBeenSet() const
AWS_ECS_API ServiceDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DeploymentConfigurationHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
ServiceDeployment & WithCreatedAt(CreatedAtT &&value)
bool ServiceArnHasBeenSet() const
ServiceDeployment & WithStartedAt(StartedAtT &&value)
ServiceDeployment & WithTargetServiceRevision(TargetServiceRevisionT &&value)
void SetSourceServiceRevisions(SourceServiceRevisionsT &&value)
bool RollbackHasBeenSet() const
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)
bool ServiceDeploymentArnHasBeenSet() const
bool AlarmsHasBeenSet() const
bool SourceServiceRevisionsHasBeenSet() const
bool LifecycleHookDetailsHasBeenSet() const
void SetServiceArn(ServiceArnT &&value)
bool StoppedAtHasBeenSet() const
const DeploymentConfiguration & GetDeploymentConfiguration() const
ServiceDeployment & WithServiceDeploymentArn(ServiceDeploymentArnT &&value)
ServiceDeployment & WithStoppedAt(StoppedAtT &&value)
ServiceDeploymentStatus GetStatus() const
bool StatusHasBeenSet() const
const Aws::Vector< DeploymentLifecycleHookDetail > & GetLifecycleHookDetails() const
ServiceDeployment & WithLifecycleStage(ServiceDeploymentLifecycleStage value)
ServiceDeploymentLifecycleStage
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue