AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/DeploymentConfiguration.h>
14#include <aws/ecs/model/Rollback.h>
15#include <aws/ecs/model/ServiceDeploymentCircuitBreaker.h>
16#include <aws/ecs/model/ServiceDeploymentAlarms.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace ECS
30{
31namespace Model
32{
33
46 {
47 public:
48 AWS_ECS_API ServiceDeployment();
52
53
55
58 inline const Aws::String& GetServiceDeploymentArn() const{ return m_serviceDeploymentArn; }
59 inline bool ServiceDeploymentArnHasBeenSet() const { return m_serviceDeploymentArnHasBeenSet; }
60 inline void SetServiceDeploymentArn(const Aws::String& value) { m_serviceDeploymentArnHasBeenSet = true; m_serviceDeploymentArn = value; }
61 inline void SetServiceDeploymentArn(Aws::String&& value) { m_serviceDeploymentArnHasBeenSet = true; m_serviceDeploymentArn = std::move(value); }
62 inline void SetServiceDeploymentArn(const char* value) { m_serviceDeploymentArnHasBeenSet = true; m_serviceDeploymentArn.assign(value); }
64 inline ServiceDeployment& WithServiceDeploymentArn(Aws::String&& value) { SetServiceDeploymentArn(std::move(value)); return *this;}
65 inline ServiceDeployment& WithServiceDeploymentArn(const char* value) { SetServiceDeploymentArn(value); return *this;}
67
69
72 inline const Aws::String& GetServiceArn() const{ return m_serviceArn; }
73 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
74 inline void SetServiceArn(const Aws::String& value) { m_serviceArnHasBeenSet = true; m_serviceArn = value; }
75 inline void SetServiceArn(Aws::String&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::move(value); }
76 inline void SetServiceArn(const char* value) { m_serviceArnHasBeenSet = true; m_serviceArn.assign(value); }
77 inline ServiceDeployment& WithServiceArn(const Aws::String& value) { SetServiceArn(value); return *this;}
78 inline ServiceDeployment& WithServiceArn(Aws::String&& value) { SetServiceArn(std::move(value)); return *this;}
79 inline ServiceDeployment& WithServiceArn(const char* value) { SetServiceArn(value); return *this;}
81
83
86 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
87 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
88 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
89 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
90 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
91 inline ServiceDeployment& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
92 inline ServiceDeployment& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
93 inline ServiceDeployment& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
95
97
101 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
102 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
103 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
104 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
105 inline ServiceDeployment& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
106 inline ServiceDeployment& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
108
110
114 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
115 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
116 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
117 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
118 inline ServiceDeployment& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
119 inline ServiceDeployment& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
121
123
127 inline const Aws::Utils::DateTime& GetFinishedAt() const{ return m_finishedAt; }
128 inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; }
129 inline void SetFinishedAt(const Aws::Utils::DateTime& value) { m_finishedAtHasBeenSet = true; m_finishedAt = value; }
130 inline void SetFinishedAt(Aws::Utils::DateTime&& value) { m_finishedAtHasBeenSet = true; m_finishedAt = std::move(value); }
131 inline ServiceDeployment& WithFinishedAt(const Aws::Utils::DateTime& value) { SetFinishedAt(value); return *this;}
132 inline ServiceDeployment& WithFinishedAt(Aws::Utils::DateTime&& value) { SetFinishedAt(std::move(value)); return *this;}
134
136
143 inline const Aws::Utils::DateTime& GetStoppedAt() const{ return m_stoppedAt; }
144 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
145 inline void SetStoppedAt(const Aws::Utils::DateTime& value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
146 inline void SetStoppedAt(Aws::Utils::DateTime&& value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = std::move(value); }
147 inline ServiceDeployment& WithStoppedAt(const Aws::Utils::DateTime& value) { SetStoppedAt(value); return *this;}
148 inline ServiceDeployment& WithStoppedAt(Aws::Utils::DateTime&& value) { SetStoppedAt(std::move(value)); return *this;}
150
152
156 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
157 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
158 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
159 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
160 inline ServiceDeployment& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
161 inline ServiceDeployment& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
163
165
168 inline const Aws::Vector<ServiceRevisionSummary>& GetSourceServiceRevisions() const{ return m_sourceServiceRevisions; }
169 inline bool SourceServiceRevisionsHasBeenSet() const { return m_sourceServiceRevisionsHasBeenSet; }
170 inline void SetSourceServiceRevisions(const Aws::Vector<ServiceRevisionSummary>& value) { m_sourceServiceRevisionsHasBeenSet = true; m_sourceServiceRevisions = value; }
171 inline void SetSourceServiceRevisions(Aws::Vector<ServiceRevisionSummary>&& value) { m_sourceServiceRevisionsHasBeenSet = true; m_sourceServiceRevisions = std::move(value); }
174 inline ServiceDeployment& AddSourceServiceRevisions(const ServiceRevisionSummary& value) { m_sourceServiceRevisionsHasBeenSet = true; m_sourceServiceRevisions.push_back(value); return *this; }
175 inline ServiceDeployment& AddSourceServiceRevisions(ServiceRevisionSummary&& value) { m_sourceServiceRevisionsHasBeenSet = true; m_sourceServiceRevisions.push_back(std::move(value)); return *this; }
177
179
182 inline const ServiceRevisionSummary& GetTargetServiceRevision() const{ return m_targetServiceRevision; }
183 inline bool TargetServiceRevisionHasBeenSet() const { return m_targetServiceRevisionHasBeenSet; }
184 inline void SetTargetServiceRevision(const ServiceRevisionSummary& value) { m_targetServiceRevisionHasBeenSet = true; m_targetServiceRevision = value; }
185 inline void SetTargetServiceRevision(ServiceRevisionSummary&& value) { m_targetServiceRevisionHasBeenSet = true; m_targetServiceRevision = std::move(value); }
189
191
194 inline const ServiceDeploymentStatus& GetStatus() const{ return m_status; }
195 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
196 inline void SetStatus(const ServiceDeploymentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
197 inline void SetStatus(ServiceDeploymentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
198 inline ServiceDeployment& WithStatus(const ServiceDeploymentStatus& value) { SetStatus(value); return *this;}
199 inline ServiceDeployment& WithStatus(ServiceDeploymentStatus&& value) { SetStatus(std::move(value)); return *this;}
201
203
207 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
208 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
209 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
210 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
211 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
212 inline ServiceDeployment& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
213 inline ServiceDeployment& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
214 inline ServiceDeployment& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
216
218
219 inline const DeploymentConfiguration& GetDeploymentConfiguration() const{ return m_deploymentConfiguration; }
220 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
221 inline void SetDeploymentConfiguration(const DeploymentConfiguration& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = value; }
222 inline void SetDeploymentConfiguration(DeploymentConfiguration&& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = std::move(value); }
226
228
232 inline const Rollback& GetRollback() const{ return m_rollback; }
233 inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
234 inline void SetRollback(const Rollback& value) { m_rollbackHasBeenSet = true; m_rollback = value; }
235 inline void SetRollback(Rollback&& value) { m_rollbackHasBeenSet = true; m_rollback = std::move(value); }
236 inline ServiceDeployment& WithRollback(const Rollback& value) { SetRollback(value); return *this;}
237 inline ServiceDeployment& WithRollback(Rollback&& value) { SetRollback(std::move(value)); return *this;}
239
241
245 inline const ServiceDeploymentCircuitBreaker& GetDeploymentCircuitBreaker() const{ return m_deploymentCircuitBreaker; }
246 inline bool DeploymentCircuitBreakerHasBeenSet() const { return m_deploymentCircuitBreakerHasBeenSet; }
247 inline void SetDeploymentCircuitBreaker(const ServiceDeploymentCircuitBreaker& value) { m_deploymentCircuitBreakerHasBeenSet = true; m_deploymentCircuitBreaker = value; }
248 inline void SetDeploymentCircuitBreaker(ServiceDeploymentCircuitBreaker&& value) { m_deploymentCircuitBreakerHasBeenSet = true; m_deploymentCircuitBreaker = std::move(value); }
252
254
257 inline const ServiceDeploymentAlarms& GetAlarms() const{ return m_alarms; }
258 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
259 inline void SetAlarms(const ServiceDeploymentAlarms& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
260 inline void SetAlarms(ServiceDeploymentAlarms&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
261 inline ServiceDeployment& WithAlarms(const ServiceDeploymentAlarms& value) { SetAlarms(value); return *this;}
262 inline ServiceDeployment& WithAlarms(ServiceDeploymentAlarms&& value) { SetAlarms(std::move(value)); return *this;}
264 private:
265
266 Aws::String m_serviceDeploymentArn;
267 bool m_serviceDeploymentArnHasBeenSet = false;
268
269 Aws::String m_serviceArn;
270 bool m_serviceArnHasBeenSet = false;
271
272 Aws::String m_clusterArn;
273 bool m_clusterArnHasBeenSet = false;
274
275 Aws::Utils::DateTime m_createdAt;
276 bool m_createdAtHasBeenSet = false;
277
278 Aws::Utils::DateTime m_startedAt;
279 bool m_startedAtHasBeenSet = false;
280
281 Aws::Utils::DateTime m_finishedAt;
282 bool m_finishedAtHasBeenSet = false;
283
284 Aws::Utils::DateTime m_stoppedAt;
285 bool m_stoppedAtHasBeenSet = false;
286
287 Aws::Utils::DateTime m_updatedAt;
288 bool m_updatedAtHasBeenSet = false;
289
290 Aws::Vector<ServiceRevisionSummary> m_sourceServiceRevisions;
291 bool m_sourceServiceRevisionsHasBeenSet = false;
292
293 ServiceRevisionSummary m_targetServiceRevision;
294 bool m_targetServiceRevisionHasBeenSet = false;
295
297 bool m_statusHasBeenSet = false;
298
299 Aws::String m_statusReason;
300 bool m_statusReasonHasBeenSet = false;
301
302 DeploymentConfiguration m_deploymentConfiguration;
303 bool m_deploymentConfigurationHasBeenSet = false;
304
305 Rollback m_rollback;
306 bool m_rollbackHasBeenSet = false;
307
308 ServiceDeploymentCircuitBreaker m_deploymentCircuitBreaker;
309 bool m_deploymentCircuitBreakerHasBeenSet = false;
310
312 bool m_alarmsHasBeenSet = false;
313 };
314
315} // namespace Model
316} // namespace ECS
317} // namespace Aws
void SetStatusReason(Aws::String &&value)
void SetDeploymentConfiguration(const DeploymentConfiguration &value)
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceDeployment & WithAlarms(const ServiceDeploymentAlarms &value)
ServiceDeployment & WithFinishedAt(const Aws::Utils::DateTime &value)
void SetClusterArn(const Aws::String &value)
ServiceDeployment & WithStatusReason(Aws::String &&value)
ServiceDeployment & WithServiceArn(const char *value)
void SetStoppedAt(Aws::Utils::DateTime &&value)
void SetServiceDeploymentArn(const char *value)
ServiceDeployment & WithServiceDeploymentArn(const char *value)
ServiceDeployment & WithStatusReason(const Aws::String &value)
ServiceDeployment & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetServiceArn() const
ServiceDeployment & WithUpdatedAt(const Aws::Utils::DateTime &value)
const Rollback & GetRollback() const
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
ServiceDeployment & WithDeploymentCircuitBreaker(ServiceDeploymentCircuitBreaker &&value)
const Aws::Utils::DateTime & GetStartedAt() const
ServiceDeployment & WithSourceServiceRevisions(Aws::Vector< ServiceRevisionSummary > &&value)
const ServiceDeploymentAlarms & GetAlarms() const
const ServiceDeploymentCircuitBreaker & GetDeploymentCircuitBreaker() const
ServiceDeployment & WithSourceServiceRevisions(const Aws::Vector< ServiceRevisionSummary > &value)
ServiceDeployment & WithStartedAt(Aws::Utils::DateTime &&value)
ServiceDeployment & WithRollback(const Rollback &value)
void SetFinishedAt(const Aws::Utils::DateTime &value)
ServiceDeployment & WithStartedAt(const Aws::Utils::DateTime &value)
void SetClusterArn(Aws::String &&value)
ServiceDeployment & WithAlarms(ServiceDeploymentAlarms &&value)
ServiceDeployment & WithRollback(Rollback &&value)
void SetClusterArn(const char *value)
ServiceDeployment & WithStatus(const ServiceDeploymentStatus &value)
const ServiceRevisionSummary & GetTargetServiceRevision() const
ServiceDeployment & WithStatusReason(const char *value)
const Aws::Utils::DateTime & GetStoppedAt() const
ServiceDeployment & WithDeploymentCircuitBreaker(const ServiceDeploymentCircuitBreaker &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
ServiceDeployment & WithDeploymentConfiguration(const DeploymentConfiguration &value)
ServiceDeployment & WithClusterArn(const Aws::String &value)
ServiceDeployment & WithStatus(ServiceDeploymentStatus &&value)
ServiceDeployment & WithFinishedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetStatusReason() const
const Aws::Vector< ServiceRevisionSummary > & GetSourceServiceRevisions() const
ServiceDeployment & WithStoppedAt(Aws::Utils::DateTime &&value)
void SetServiceDeploymentArn(Aws::String &&value)
AWS_ECS_API ServiceDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDeployment & WithServiceArn(Aws::String &&value)
ServiceDeployment & WithTargetServiceRevision(ServiceRevisionSummary &&value)
void SetFinishedAt(Aws::Utils::DateTime &&value)
void SetAlarms(ServiceDeploymentAlarms &&value)
ServiceDeployment & WithCreatedAt(Aws::Utils::DateTime &&value)
ServiceDeployment & AddSourceServiceRevisions(ServiceRevisionSummary &&value)
void SetDeploymentConfiguration(DeploymentConfiguration &&value)
ServiceDeployment & WithClusterArn(Aws::String &&value)
void SetStatusReason(const char *value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ServiceDeployment & WithStoppedAt(const Aws::Utils::DateTime &value)
void SetStatus(ServiceDeploymentStatus &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartedAt(Aws::Utils::DateTime &&value)
void SetRollback(const Rollback &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetFinishedAt() const
void SetServiceArn(const Aws::String &value)
void SetAlarms(const ServiceDeploymentAlarms &value)
const Aws::String & GetServiceDeploymentArn() const
void SetServiceArn(Aws::String &&value)
ServiceDeployment & WithServiceDeploymentArn(Aws::String &&value)
void SetSourceServiceRevisions(const Aws::Vector< ServiceRevisionSummary > &value)
ServiceDeployment & WithUpdatedAt(Aws::Utils::DateTime &&value)
ServiceDeployment & AddSourceServiceRevisions(const ServiceRevisionSummary &value)
AWS_ECS_API ServiceDeployment(Aws::Utils::Json::JsonView jsonValue)
void SetTargetServiceRevision(ServiceRevisionSummary &&value)
const Aws::String & GetClusterArn() const
void SetDeploymentCircuitBreaker(ServiceDeploymentCircuitBreaker &&value)
void SetTargetServiceRevision(const ServiceRevisionSummary &value)
ServiceDeployment & WithServiceDeploymentArn(const Aws::String &value)
ServiceDeployment & WithDeploymentConfiguration(DeploymentConfiguration &&value)
const DeploymentConfiguration & GetDeploymentConfiguration() const
void SetDeploymentCircuitBreaker(const ServiceDeploymentCircuitBreaker &value)
ServiceDeployment & WithClusterArn(const char *value)
const ServiceDeploymentStatus & GetStatus() const
void SetStatus(const ServiceDeploymentStatus &value)
void SetServiceArn(const char *value)
ServiceDeployment & WithServiceArn(const Aws::String &value)
void SetStoppedAt(const Aws::Utils::DateTime &value)
void SetServiceDeploymentArn(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
ServiceDeployment & WithTargetServiceRevision(const ServiceRevisionSummary &value)
void SetStatusReason(const Aws::String &value)
void SetSourceServiceRevisions(Aws::Vector< ServiceRevisionSummary > &&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