AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceDeployment.h
1
6#pragma once
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>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace ECS
31{
32namespace Model
33{
34
47 {
48 public:
49 AWS_ECS_API ServiceDeployment() = default;
53
54
56
59 inline const Aws::String& GetServiceDeploymentArn() const { return m_serviceDeploymentArn; }
60 inline bool ServiceDeploymentArnHasBeenSet() const { return m_serviceDeploymentArnHasBeenSet; }
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>
64 ServiceDeployment& WithServiceDeploymentArn(ServiceDeploymentArnT&& value) { SetServiceDeploymentArn(std::forward<ServiceDeploymentArnT>(value)); return *this;}
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) { m_serviceArnHasBeenSet = true; m_serviceArn = std::forward<ServiceArnT>(value); }
75 template<typename ServiceArnT = Aws::String>
76 ServiceDeployment& WithServiceArn(ServiceArnT&& value) { SetServiceArn(std::forward<ServiceArnT>(value)); return *this;}
78
80
83 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
84 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
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>
88 ServiceDeployment& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
90
92
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
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>
101 ServiceDeployment& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
103
105
109 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
110 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
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>
114 ServiceDeployment& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
116
118
122 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
123 inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; }
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>
127 ServiceDeployment& WithFinishedAt(FinishedAtT&& value) { SetFinishedAt(std::forward<FinishedAtT>(value)); return *this;}
129
131
138 inline const Aws::Utils::DateTime& GetStoppedAt() const { return m_stoppedAt; }
139 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
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>
143 ServiceDeployment& WithStoppedAt(StoppedAtT&& value) { SetStoppedAt(std::forward<StoppedAtT>(value)); return *this;}
145
147
151 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
152 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
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>
156 ServiceDeployment& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
158
160
163 inline const Aws::Vector<ServiceRevisionSummary>& GetSourceServiceRevisions() const { return m_sourceServiceRevisions; }
164 inline bool SourceServiceRevisionsHasBeenSet() const { return m_sourceServiceRevisionsHasBeenSet; }
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>>
168 ServiceDeployment& WithSourceServiceRevisions(SourceServiceRevisionsT&& value) { SetSourceServiceRevisions(std::forward<SourceServiceRevisionsT>(value)); return *this;}
169 template<typename SourceServiceRevisionsT = ServiceRevisionSummary>
170 ServiceDeployment& AddSourceServiceRevisions(SourceServiceRevisionsT&& value) { m_sourceServiceRevisionsHasBeenSet = true; m_sourceServiceRevisions.emplace_back(std::forward<SourceServiceRevisionsT>(value)); return *this; }
172
174
177 inline const ServiceRevisionSummary& GetTargetServiceRevision() const { return m_targetServiceRevision; }
178 inline bool TargetServiceRevisionHasBeenSet() const { return m_targetServiceRevisionHasBeenSet; }
179 template<typename TargetServiceRevisionT = ServiceRevisionSummary>
180 void SetTargetServiceRevision(TargetServiceRevisionT&& value) { m_targetServiceRevisionHasBeenSet = true; m_targetServiceRevision = std::forward<TargetServiceRevisionT>(value); }
181 template<typename TargetServiceRevisionT = ServiceRevisionSummary>
182 ServiceDeployment& WithTargetServiceRevision(TargetServiceRevisionT&& value) { SetTargetServiceRevision(std::forward<TargetServiceRevisionT>(value)); return *this;}
184
186
189 inline ServiceDeploymentStatus GetStatus() const { return m_status; }
190 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
191 inline void SetStatus(ServiceDeploymentStatus value) { m_statusHasBeenSet = true; m_status = value; }
192 inline ServiceDeployment& WithStatus(ServiceDeploymentStatus value) { SetStatus(value); return *this;}
194
196
200 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
201 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
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>
205 ServiceDeployment& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
207
209
235 inline ServiceDeploymentLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
236 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
237 inline void SetLifecycleStage(ServiceDeploymentLifecycleStage value) { m_lifecycleStageHasBeenSet = true; m_lifecycleStage = value; }
240
242
243 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
244 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
245 template<typename DeploymentConfigurationT = DeploymentConfiguration>
246 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value); }
247 template<typename DeploymentConfigurationT = DeploymentConfiguration>
248 ServiceDeployment& WithDeploymentConfiguration(DeploymentConfigurationT&& value) { SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value)); return *this;}
250
252
256 inline const Rollback& GetRollback() const { return m_rollback; }
257 inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
258 template<typename RollbackT = Rollback>
259 void SetRollback(RollbackT&& value) { m_rollbackHasBeenSet = true; m_rollback = std::forward<RollbackT>(value); }
260 template<typename RollbackT = Rollback>
261 ServiceDeployment& WithRollback(RollbackT&& value) { SetRollback(std::forward<RollbackT>(value)); return *this;}
263
265
269 inline const ServiceDeploymentCircuitBreaker& GetDeploymentCircuitBreaker() const { return m_deploymentCircuitBreaker; }
270 inline bool DeploymentCircuitBreakerHasBeenSet() const { return m_deploymentCircuitBreakerHasBeenSet; }
271 template<typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
272 void SetDeploymentCircuitBreaker(DeploymentCircuitBreakerT&& value) { m_deploymentCircuitBreakerHasBeenSet = true; m_deploymentCircuitBreaker = std::forward<DeploymentCircuitBreakerT>(value); }
273 template<typename DeploymentCircuitBreakerT = ServiceDeploymentCircuitBreaker>
274 ServiceDeployment& WithDeploymentCircuitBreaker(DeploymentCircuitBreakerT&& value) { SetDeploymentCircuitBreaker(std::forward<DeploymentCircuitBreakerT>(value)); return *this;}
276
278
281 inline const ServiceDeploymentAlarms& GetAlarms() const { return m_alarms; }
282 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
283 template<typename AlarmsT = ServiceDeploymentAlarms>
284 void SetAlarms(AlarmsT&& value) { m_alarmsHasBeenSet = true; m_alarms = std::forward<AlarmsT>(value); }
285 template<typename AlarmsT = ServiceDeploymentAlarms>
286 ServiceDeployment& WithAlarms(AlarmsT&& value) { SetAlarms(std::forward<AlarmsT>(value)); return *this;}
288 private:
289
290 Aws::String m_serviceDeploymentArn;
291 bool m_serviceDeploymentArnHasBeenSet = false;
292
293 Aws::String m_serviceArn;
294 bool m_serviceArnHasBeenSet = false;
295
296 Aws::String m_clusterArn;
297 bool m_clusterArnHasBeenSet = false;
298
299 Aws::Utils::DateTime m_createdAt{};
300 bool m_createdAtHasBeenSet = false;
301
302 Aws::Utils::DateTime m_startedAt{};
303 bool m_startedAtHasBeenSet = false;
304
305 Aws::Utils::DateTime m_finishedAt{};
306 bool m_finishedAtHasBeenSet = false;
307
308 Aws::Utils::DateTime m_stoppedAt{};
309 bool m_stoppedAtHasBeenSet = false;
310
311 Aws::Utils::DateTime m_updatedAt{};
312 bool m_updatedAtHasBeenSet = false;
313
314 Aws::Vector<ServiceRevisionSummary> m_sourceServiceRevisions;
315 bool m_sourceServiceRevisionsHasBeenSet = false;
316
317 ServiceRevisionSummary m_targetServiceRevision;
318 bool m_targetServiceRevisionHasBeenSet = false;
319
321 bool m_statusHasBeenSet = false;
322
323 Aws::String m_statusReason;
324 bool m_statusReasonHasBeenSet = false;
325
327 bool m_lifecycleStageHasBeenSet = false;
328
329 DeploymentConfiguration m_deploymentConfiguration;
330 bool m_deploymentConfigurationHasBeenSet = false;
331
332 Rollback m_rollback;
333 bool m_rollbackHasBeenSet = false;
334
335 ServiceDeploymentCircuitBreaker m_deploymentCircuitBreaker;
336 bool m_deploymentCircuitBreakerHasBeenSet = false;
337
338 ServiceDeploymentAlarms m_alarms;
339 bool m_alarmsHasBeenSet = false;
340 };
341
342} // namespace Model
343} // namespace ECS
344} // 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