7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/ServiceRevisionSummary.h>
12#include <aws/ecs/model/ServiceDeploymentStatus.h>
13#include <aws/ecs/model/ServiceDeploymentLifecycleStage.h>
14#include <aws/ecs/model/DeploymentConfiguration.h>
15#include <aws/ecs/model/Rollback.h>
16#include <aws/ecs/model/ServiceDeploymentCircuitBreaker.h>
17#include <aws/ecs/model/ServiceDeploymentAlarms.h>
61 template<
typename ServiceDeploymentArnT = Aws::String>
62 void SetServiceDeploymentArn(ServiceDeploymentArnT&& value) { m_serviceDeploymentArnHasBeenSet =
true; m_serviceDeploymentArn = std::forward<ServiceDeploymentArnT>(value); }
63 template<
typename ServiceDeploymentArnT = Aws::String>
73 template<
typename ServiceArnT = Aws::String>
74 void SetServiceArn(ServiceArnT&& value) { m_serviceArnHasBeenSet =
true; m_serviceArn = std::forward<ServiceArnT>(value); }
75 template<
typename ServiceArnT = Aws::String>
85 template<
typename ClusterArnT = Aws::String>
86 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet =
true; m_clusterArn = std::forward<ClusterArnT>(value); }
87 template<
typename ClusterArnT = Aws::String>
98 template<
typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
100 template<
typename CreatedAtT = Aws::Utils::DateTime>
111 template<
typename StartedAtT = Aws::Utils::DateTime>
112 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet =
true; m_startedAt = std::forward<StartedAtT>(value); }
113 template<
typename StartedAtT = Aws::Utils::DateTime>
124 template<
typename FinishedAtT = Aws::Utils::DateTime>
125 void SetFinishedAt(FinishedAtT&& value) { m_finishedAtHasBeenSet =
true; m_finishedAt = std::forward<FinishedAtT>(value); }
126 template<
typename FinishedAtT = Aws::Utils::DateTime>
140 template<
typename StoppedAtT = Aws::Utils::DateTime>
141 void SetStoppedAt(StoppedAtT&& value) { m_stoppedAtHasBeenSet =
true; m_stoppedAt = std::forward<StoppedAtT>(value); }
142 template<
typename StoppedAtT = Aws::Utils::DateTime>
153 template<
typename UpdatedAtT = Aws::Utils::DateTime>
154 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
155 template<
typename UpdatedAtT = Aws::Utils::DateTime>
165 template<
typename SourceServiceRevisionsT = Aws::Vector<ServiceRevisionSummary>>
166 void SetSourceServiceRevisions(SourceServiceRevisionsT&& value) { m_sourceServiceRevisionsHasBeenSet =
true; m_sourceServiceRevisions = std::forward<SourceServiceRevisionsT>(value); }
167 template<
typename SourceServiceRevisionsT = Aws::Vector<ServiceRevisionSummary>>
169 template<
typename SourceServiceRevisionsT = ServiceRevisionSummary>
170 ServiceDeployment&
AddSourceServiceRevisions(SourceServiceRevisionsT&& value) { m_sourceServiceRevisionsHasBeenSet =
true; m_sourceServiceRevisions.emplace_back(std::forward<SourceServiceRevisionsT>(value));
return *
this; }
179 template<
typename TargetServiceRevisionT = ServiceRevisionSummary>
180 void SetTargetServiceRevision(TargetServiceRevisionT&& value) { m_targetServiceRevisionHasBeenSet =
true; m_targetServiceRevision = std::forward<TargetServiceRevisionT>(value); }
181 template<
typename TargetServiceRevisionT = ServiceRevisionSummary>
202 template<
typename StatusReasonT = Aws::String>
203 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet =
true; m_statusReason = std::forward<StatusReasonT>(value); }
204 template<
typename StatusReasonT = Aws::String>
245 template<
typename DeploymentConfigurationT = DeploymentConfiguration>
246 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) { m_deploymentConfigurationHasBeenSet =
true; m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value); }
247 template<
typename DeploymentConfigurationT = DeploymentConfiguration>
258 template<
typename RollbackT = Rollback>
259 void SetRollback(RollbackT&& value) { m_rollbackHasBeenSet =
true; m_rollback = std::forward<RollbackT>(value); }
260 template<
typename RollbackT = Rollback>
271 template<
typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
272 void SetDeploymentCircuitBreaker(DeploymentCircuitBreakerT&& value) { m_deploymentCircuitBreakerHasBeenSet =
true; m_deploymentCircuitBreaker = std::forward<DeploymentCircuitBreakerT>(value); }
273 template<
typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
283 template<
typename AlarmsT = ServiceDeploymentAlarms>
284 void SetAlarms(AlarmsT&& value) { m_alarmsHasBeenSet =
true; m_alarms = std::forward<AlarmsT>(value); }
285 template<
typename AlarmsT = ServiceDeploymentAlarms>
291 bool m_serviceDeploymentArnHasBeenSet =
false;
294 bool m_serviceArnHasBeenSet =
false;
297 bool m_clusterArnHasBeenSet =
false;
300 bool m_createdAtHasBeenSet =
false;
303 bool m_startedAtHasBeenSet =
false;
306 bool m_finishedAtHasBeenSet =
false;
309 bool m_stoppedAtHasBeenSet =
false;
312 bool m_updatedAtHasBeenSet =
false;
315 bool m_sourceServiceRevisionsHasBeenSet =
false;
317 ServiceRevisionSummary m_targetServiceRevision;
318 bool m_targetServiceRevisionHasBeenSet =
false;
321 bool m_statusHasBeenSet =
false;
324 bool m_statusReasonHasBeenSet =
false;
327 bool m_lifecycleStageHasBeenSet =
false;
329 DeploymentConfiguration m_deploymentConfiguration;
330 bool m_deploymentConfigurationHasBeenSet =
false;
333 bool m_rollbackHasBeenSet =
false;
335 ServiceDeploymentCircuitBreaker m_deploymentCircuitBreaker;
336 bool m_deploymentCircuitBreakerHasBeenSet =
false;
338 ServiceDeploymentAlarms m_alarms;
339 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
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
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)
bool ServiceDeploymentArnHasBeenSet() const
bool AlarmsHasBeenSet() const
bool SourceServiceRevisionsHasBeenSet() 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
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