AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/Proton_EXPORTS.h>
10#include <aws/proton/model/DeploymentState.h>
11#include <aws/proton/model/DeploymentStatus.h>
12#include <aws/proton/model/DeploymentTargetResourceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Proton {
24namespace Model {
25
32 public:
33 AWS_PROTON_API Deployment() = default;
34 AWS_PROTON_API Deployment(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 Deployment& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
61 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
62 template <typename CompletedAtT = Aws::Utils::DateTime>
63 void SetCompletedAt(CompletedAtT&& value) {
64 m_completedAtHasBeenSet = true;
65 m_completedAt = std::forward<CompletedAtT>(value);
66 }
67 template <typename CompletedAtT = Aws::Utils::DateTime>
68 Deployment& WithCompletedAt(CompletedAtT&& value) {
69 SetCompletedAt(std::forward<CompletedAtT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetComponentName() const { return m_componentName; }
79 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
80 template <typename ComponentNameT = Aws::String>
81 void SetComponentName(ComponentNameT&& value) {
82 m_componentNameHasBeenSet = true;
83 m_componentName = std::forward<ComponentNameT>(value);
84 }
85 template <typename ComponentNameT = Aws::String>
86 Deployment& WithComponentName(ComponentNameT&& value) {
87 SetComponentName(std::forward<ComponentNameT>(value));
88 return *this;
89 }
91
93
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) {
100 m_createdAtHasBeenSet = true;
101 m_createdAt = std::forward<CreatedAtT>(value);
102 }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 Deployment& WithCreatedAt(CreatedAtT&& value) {
105 SetCreatedAt(std::forward<CreatedAtT>(value));
106 return *this;
107 }
109
111
114 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
115 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
117 m_deploymentStatusHasBeenSet = true;
118 m_deploymentStatus = value;
119 }
121 SetDeploymentStatus(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
131 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
132 template <typename DeploymentStatusMessageT = Aws::String>
133 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
134 m_deploymentStatusMessageHasBeenSet = true;
135 m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value);
136 }
137 template <typename DeploymentStatusMessageT = Aws::String>
138 Deployment& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
139 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
149 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
150 template <typename EnvironmentNameT = Aws::String>
151 void SetEnvironmentName(EnvironmentNameT&& value) {
152 m_environmentNameHasBeenSet = true;
153 m_environmentName = std::forward<EnvironmentNameT>(value);
154 }
155 template <typename EnvironmentNameT = Aws::String>
156 Deployment& WithEnvironmentName(EnvironmentNameT&& value) {
157 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetId() const { return m_id; }
167 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
168 template <typename IdT = Aws::String>
169 void SetId(IdT&& value) {
170 m_idHasBeenSet = true;
171 m_id = std::forward<IdT>(value);
172 }
173 template <typename IdT = Aws::String>
174 Deployment& WithId(IdT&& value) {
175 SetId(std::forward<IdT>(value));
176 return *this;
177 }
179
181
184 inline const DeploymentState& GetInitialState() const { return m_initialState; }
185 inline bool InitialStateHasBeenSet() const { return m_initialStateHasBeenSet; }
186 template <typename InitialStateT = DeploymentState>
187 void SetInitialState(InitialStateT&& value) {
188 m_initialStateHasBeenSet = true;
189 m_initialState = std::forward<InitialStateT>(value);
190 }
191 template <typename InitialStateT = DeploymentState>
192 Deployment& WithInitialState(InitialStateT&& value) {
193 SetInitialState(std::forward<InitialStateT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
203 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
204 template <typename LastAttemptedDeploymentIdT = Aws::String>
205 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
206 m_lastAttemptedDeploymentIdHasBeenSet = true;
207 m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value);
208 }
209 template <typename LastAttemptedDeploymentIdT = Aws::String>
210 Deployment& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
211 SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
221 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
222 template <typename LastModifiedAtT = Aws::Utils::DateTime>
223 void SetLastModifiedAt(LastModifiedAtT&& value) {
224 m_lastModifiedAtHasBeenSet = true;
225 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
226 }
227 template <typename LastModifiedAtT = Aws::Utils::DateTime>
228 Deployment& WithLastModifiedAt(LastModifiedAtT&& value) {
229 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
239 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
240 template <typename LastSucceededDeploymentIdT = Aws::String>
241 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
242 m_lastSucceededDeploymentIdHasBeenSet = true;
243 m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value);
244 }
245 template <typename LastSucceededDeploymentIdT = Aws::String>
246 Deployment& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
247 SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
257 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
258 template <typename ServiceInstanceNameT = Aws::String>
259 void SetServiceInstanceName(ServiceInstanceNameT&& value) {
260 m_serviceInstanceNameHasBeenSet = true;
261 m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value);
262 }
263 template <typename ServiceInstanceNameT = Aws::String>
264 Deployment& WithServiceInstanceName(ServiceInstanceNameT&& value) {
265 SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetServiceName() const { return m_serviceName; }
275 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
276 template <typename ServiceNameT = Aws::String>
277 void SetServiceName(ServiceNameT&& value) {
278 m_serviceNameHasBeenSet = true;
279 m_serviceName = std::forward<ServiceNameT>(value);
280 }
281 template <typename ServiceNameT = Aws::String>
282 Deployment& WithServiceName(ServiceNameT&& value) {
283 SetServiceName(std::forward<ServiceNameT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
293 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
294 template <typename TargetArnT = Aws::String>
295 void SetTargetArn(TargetArnT&& value) {
296 m_targetArnHasBeenSet = true;
297 m_targetArn = std::forward<TargetArnT>(value);
298 }
299 template <typename TargetArnT = Aws::String>
300 Deployment& WithTargetArn(TargetArnT&& value) {
301 SetTargetArn(std::forward<TargetArnT>(value));
302 return *this;
303 }
305
307
310 inline const Aws::Utils::DateTime& GetTargetResourceCreatedAt() const { return m_targetResourceCreatedAt; }
311 inline bool TargetResourceCreatedAtHasBeenSet() const { return m_targetResourceCreatedAtHasBeenSet; }
312 template <typename TargetResourceCreatedAtT = Aws::Utils::DateTime>
313 void SetTargetResourceCreatedAt(TargetResourceCreatedAtT&& value) {
314 m_targetResourceCreatedAtHasBeenSet = true;
315 m_targetResourceCreatedAt = std::forward<TargetResourceCreatedAtT>(value);
316 }
317 template <typename TargetResourceCreatedAtT = Aws::Utils::DateTime>
318 Deployment& WithTargetResourceCreatedAt(TargetResourceCreatedAtT&& value) {
319 SetTargetResourceCreatedAt(std::forward<TargetResourceCreatedAtT>(value));
320 return *this;
321 }
323
325
329 inline DeploymentTargetResourceType GetTargetResourceType() const { return m_targetResourceType; }
330 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
332 m_targetResourceTypeHasBeenSet = true;
333 m_targetResourceType = value;
334 }
337 return *this;
338 }
340
342
345 inline const DeploymentState& GetTargetState() const { return m_targetState; }
346 inline bool TargetStateHasBeenSet() const { return m_targetStateHasBeenSet; }
347 template <typename TargetStateT = DeploymentState>
348 void SetTargetState(TargetStateT&& value) {
349 m_targetStateHasBeenSet = true;
350 m_targetState = std::forward<TargetStateT>(value);
351 }
352 template <typename TargetStateT = DeploymentState>
353 Deployment& WithTargetState(TargetStateT&& value) {
354 SetTargetState(std::forward<TargetStateT>(value));
355 return *this;
356 }
358 private:
359 Aws::String m_arn;
360
361 Aws::Utils::DateTime m_completedAt{};
362
363 Aws::String m_componentName;
364
365 Aws::Utils::DateTime m_createdAt{};
366
368
369 Aws::String m_deploymentStatusMessage;
370
371 Aws::String m_environmentName;
372
373 Aws::String m_id;
374
375 DeploymentState m_initialState;
376
377 Aws::String m_lastAttemptedDeploymentId;
378
379 Aws::Utils::DateTime m_lastModifiedAt{};
380
381 Aws::String m_lastSucceededDeploymentId;
382
383 Aws::String m_serviceInstanceName;
384
385 Aws::String m_serviceName;
386
387 Aws::String m_targetArn;
388
389 Aws::Utils::DateTime m_targetResourceCreatedAt{};
390
392
393 DeploymentState m_targetState;
394 bool m_arnHasBeenSet = false;
395 bool m_completedAtHasBeenSet = false;
396 bool m_componentNameHasBeenSet = false;
397 bool m_createdAtHasBeenSet = false;
398 bool m_deploymentStatusHasBeenSet = false;
399 bool m_deploymentStatusMessageHasBeenSet = false;
400 bool m_environmentNameHasBeenSet = false;
401 bool m_idHasBeenSet = false;
402 bool m_initialStateHasBeenSet = false;
403 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
404 bool m_lastModifiedAtHasBeenSet = false;
405 bool m_lastSucceededDeploymentIdHasBeenSet = false;
406 bool m_serviceInstanceNameHasBeenSet = false;
407 bool m_serviceNameHasBeenSet = false;
408 bool m_targetArnHasBeenSet = false;
409 bool m_targetResourceCreatedAtHasBeenSet = false;
410 bool m_targetResourceTypeHasBeenSet = false;
411 bool m_targetStateHasBeenSet = false;
412};
413
414} // namespace Model
415} // namespace Proton
416} // namespace Aws
Deployment & WithEnvironmentName(EnvironmentNameT &&value)
Definition Deployment.h:156
const Aws::String & GetId() const
Definition Deployment.h:166
bool LastModifiedAtHasBeenSet() const
Definition Deployment.h:221
AWS_PROTON_API Deployment()=default
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Deployment.h:96
void SetDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:116
void SetComponentName(ComponentNameT &&value)
Definition Deployment.h:81
const Aws::String & GetServiceName() const
Definition Deployment.h:274
Deployment & WithServiceInstanceName(ServiceInstanceNameT &&value)
Definition Deployment.h:264
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Definition Deployment.h:205
const Aws::String & GetComponentName() const
Definition Deployment.h:78
bool DeploymentStatusHasBeenSet() const
Definition Deployment.h:115
Deployment & WithDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:120
bool LastAttemptedDeploymentIdHasBeenSet() const
Definition Deployment.h:203
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Deployment.h:133
bool DeploymentStatusMessageHasBeenSet() const
Definition Deployment.h:131
bool LastSucceededDeploymentIdHasBeenSet() const
Definition Deployment.h:239
const Aws::Utils::DateTime & GetLastModifiedAt() const
Definition Deployment.h:220
const DeploymentState & GetTargetState() const
Definition Deployment.h:345
bool EnvironmentNameHasBeenSet() const
Definition Deployment.h:149
void SetTargetArn(TargetArnT &&value)
Definition Deployment.h:295
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetArn() const
Definition Deployment.h:42
void SetInitialState(InitialStateT &&value)
Definition Deployment.h:187
Deployment & WithTargetArn(TargetArnT &&value)
Definition Deployment.h:300
Deployment & WithId(IdT &&value)
Definition Deployment.h:174
const DeploymentState & GetInitialState() const
Definition Deployment.h:184
bool ServiceInstanceNameHasBeenSet() const
Definition Deployment.h:257
const Aws::String & GetLastAttemptedDeploymentId() const
Definition Deployment.h:202
bool ComponentNameHasBeenSet() const
Definition Deployment.h:79
Deployment & WithTargetResourceCreatedAt(TargetResourceCreatedAtT &&value)
Definition Deployment.h:318
Deployment & WithComponentName(ComponentNameT &&value)
Definition Deployment.h:86
const Aws::Utils::DateTime & GetTargetResourceCreatedAt() const
Definition Deployment.h:310
void SetArn(ArnT &&value)
Definition Deployment.h:45
AWS_PROTON_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCompletedAt() const
Definition Deployment.h:60
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
Definition Deployment.h:241
const Aws::String & GetDeploymentStatusMessage() const
Definition Deployment.h:130
void SetCompletedAt(CompletedAtT &&value)
Definition Deployment.h:63
Deployment & WithCompletedAt(CompletedAtT &&value)
Definition Deployment.h:68
bool TargetResourceCreatedAtHasBeenSet() const
Definition Deployment.h:311
Deployment & WithInitialState(InitialStateT &&value)
Definition Deployment.h:192
void SetTargetState(TargetStateT &&value)
Definition Deployment.h:348
void SetLastModifiedAt(LastModifiedAtT &&value)
Definition Deployment.h:223
Deployment & WithArn(ArnT &&value)
Definition Deployment.h:50
AWS_PROTON_API Deployment(Aws::Utils::Json::JsonView jsonValue)
DeploymentStatus GetDeploymentStatus() const
Definition Deployment.h:114
void SetServiceInstanceName(ServiceInstanceNameT &&value)
Definition Deployment.h:259
bool TargetResourceTypeHasBeenSet() const
Definition Deployment.h:330
Deployment & WithTargetState(TargetStateT &&value)
Definition Deployment.h:353
const Aws::String & GetServiceInstanceName() const
Definition Deployment.h:256
void SetCreatedAt(CreatedAtT &&value)
Definition Deployment.h:99
const Aws::String & GetTargetArn() const
Definition Deployment.h:292
const Aws::String & GetLastSucceededDeploymentId() const
Definition Deployment.h:238
DeploymentTargetResourceType GetTargetResourceType() const
Definition Deployment.h:329
Deployment & WithTargetResourceType(DeploymentTargetResourceType value)
Definition Deployment.h:335
Deployment & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
Definition Deployment.h:246
void SetTargetResourceCreatedAt(TargetResourceCreatedAtT &&value)
Definition Deployment.h:313
void SetServiceName(ServiceNameT &&value)
Definition Deployment.h:277
const Aws::String & GetEnvironmentName() const
Definition Deployment.h:148
Deployment & WithLastModifiedAt(LastModifiedAtT &&value)
Definition Deployment.h:228
void SetEnvironmentName(EnvironmentNameT &&value)
Definition Deployment.h:151
Deployment & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Definition Deployment.h:210
void SetTargetResourceType(DeploymentTargetResourceType value)
Definition Deployment.h:331
Deployment & WithCreatedAt(CreatedAtT &&value)
Definition Deployment.h:104
Deployment & WithServiceName(ServiceNameT &&value)
Definition Deployment.h:282
Deployment & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Deployment.h:138
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue