AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/proton/model/DeploymentStatus.h>
11#include <aws/proton/model/DeploymentState.h>
12#include <aws/proton/model/DeploymentTargetResourceType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Proton
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_PROTON_API Deployment() = default;
39 AWS_PROTON_API Deployment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 Deployment& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_completedAtHasBeenSet = true; m_completedAt = std::forward<CompletedAtT>(value); }
64 template<typename CompletedAtT = Aws::Utils::DateTime>
65 Deployment& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
67
69
72 inline const Aws::String& GetComponentName() const { return m_componentName; }
73 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
74 template<typename ComponentNameT = Aws::String>
75 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
76 template<typename ComponentNameT = Aws::String>
77 Deployment& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
85 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
86 template<typename CreatedAtT = Aws::Utils::DateTime>
87 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
88 template<typename CreatedAtT = Aws::Utils::DateTime>
89 Deployment& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
91
93
96 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
97 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
98 inline void SetDeploymentStatus(DeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
101
103
106 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
107 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
108 template<typename DeploymentStatusMessageT = Aws::String>
109 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value); }
110 template<typename DeploymentStatusMessageT = Aws::String>
111 Deployment& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) { SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value)); return *this;}
113
115
118 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
119 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
120 template<typename EnvironmentNameT = Aws::String>
121 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
122 template<typename EnvironmentNameT = Aws::String>
123 Deployment& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
125
127
130 inline const Aws::String& GetId() const { return m_id; }
131 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
132 template<typename IdT = Aws::String>
133 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
134 template<typename IdT = Aws::String>
135 Deployment& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
137
139
142 inline const DeploymentState& GetInitialState() const { return m_initialState; }
143 inline bool InitialStateHasBeenSet() const { return m_initialStateHasBeenSet; }
144 template<typename InitialStateT = DeploymentState>
145 void SetInitialState(InitialStateT&& value) { m_initialStateHasBeenSet = true; m_initialState = std::forward<InitialStateT>(value); }
146 template<typename InitialStateT = DeploymentState>
147 Deployment& WithInitialState(InitialStateT&& value) { SetInitialState(std::forward<InitialStateT>(value)); return *this;}
149
151
154 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
155 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
156 template<typename LastAttemptedDeploymentIdT = Aws::String>
157 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value); }
158 template<typename LastAttemptedDeploymentIdT = Aws::String>
159 Deployment& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value)); return *this;}
161
163
166 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
167 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
168 template<typename LastModifiedAtT = Aws::Utils::DateTime>
169 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
170 template<typename LastModifiedAtT = Aws::Utils::DateTime>
171 Deployment& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
173
175
178 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
179 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
180 template<typename LastSucceededDeploymentIdT = Aws::String>
181 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value); }
182 template<typename LastSucceededDeploymentIdT = Aws::String>
183 Deployment& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value)); return *this;}
185
187
190 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
191 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
192 template<typename ServiceInstanceNameT = Aws::String>
193 void SetServiceInstanceName(ServiceInstanceNameT&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value); }
194 template<typename ServiceInstanceNameT = Aws::String>
195 Deployment& WithServiceInstanceName(ServiceInstanceNameT&& value) { SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value)); return *this;}
197
199
202 inline const Aws::String& GetServiceName() const { return m_serviceName; }
203 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
204 template<typename ServiceNameT = Aws::String>
205 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
206 template<typename ServiceNameT = Aws::String>
207 Deployment& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
209
211
214 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
215 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
216 template<typename TargetArnT = Aws::String>
217 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
218 template<typename TargetArnT = Aws::String>
219 Deployment& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
221
223
226 inline const Aws::Utils::DateTime& GetTargetResourceCreatedAt() const { return m_targetResourceCreatedAt; }
227 inline bool TargetResourceCreatedAtHasBeenSet() const { return m_targetResourceCreatedAtHasBeenSet; }
228 template<typename TargetResourceCreatedAtT = Aws::Utils::DateTime>
229 void SetTargetResourceCreatedAt(TargetResourceCreatedAtT&& value) { m_targetResourceCreatedAtHasBeenSet = true; m_targetResourceCreatedAt = std::forward<TargetResourceCreatedAtT>(value); }
230 template<typename TargetResourceCreatedAtT = Aws::Utils::DateTime>
231 Deployment& WithTargetResourceCreatedAt(TargetResourceCreatedAtT&& value) { SetTargetResourceCreatedAt(std::forward<TargetResourceCreatedAtT>(value)); return *this;}
233
235
239 inline DeploymentTargetResourceType GetTargetResourceType() const { return m_targetResourceType; }
240 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
241 inline void SetTargetResourceType(DeploymentTargetResourceType value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; }
244
246
249 inline const DeploymentState& GetTargetState() const { return m_targetState; }
250 inline bool TargetStateHasBeenSet() const { return m_targetStateHasBeenSet; }
251 template<typename TargetStateT = DeploymentState>
252 void SetTargetState(TargetStateT&& value) { m_targetStateHasBeenSet = true; m_targetState = std::forward<TargetStateT>(value); }
253 template<typename TargetStateT = DeploymentState>
254 Deployment& WithTargetState(TargetStateT&& value) { SetTargetState(std::forward<TargetStateT>(value)); return *this;}
256 private:
257
258 Aws::String m_arn;
259 bool m_arnHasBeenSet = false;
260
261 Aws::Utils::DateTime m_completedAt{};
262 bool m_completedAtHasBeenSet = false;
263
264 Aws::String m_componentName;
265 bool m_componentNameHasBeenSet = false;
266
267 Aws::Utils::DateTime m_createdAt{};
268 bool m_createdAtHasBeenSet = false;
269
271 bool m_deploymentStatusHasBeenSet = false;
272
273 Aws::String m_deploymentStatusMessage;
274 bool m_deploymentStatusMessageHasBeenSet = false;
275
276 Aws::String m_environmentName;
277 bool m_environmentNameHasBeenSet = false;
278
279 Aws::String m_id;
280 bool m_idHasBeenSet = false;
281
282 DeploymentState m_initialState;
283 bool m_initialStateHasBeenSet = false;
284
285 Aws::String m_lastAttemptedDeploymentId;
286 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
287
288 Aws::Utils::DateTime m_lastModifiedAt{};
289 bool m_lastModifiedAtHasBeenSet = false;
290
291 Aws::String m_lastSucceededDeploymentId;
292 bool m_lastSucceededDeploymentIdHasBeenSet = false;
293
294 Aws::String m_serviceInstanceName;
295 bool m_serviceInstanceNameHasBeenSet = false;
296
297 Aws::String m_serviceName;
298 bool m_serviceNameHasBeenSet = false;
299
300 Aws::String m_targetArn;
301 bool m_targetArnHasBeenSet = false;
302
303 Aws::Utils::DateTime m_targetResourceCreatedAt{};
304 bool m_targetResourceCreatedAtHasBeenSet = false;
305
307 bool m_targetResourceTypeHasBeenSet = false;
308
309 DeploymentState m_targetState;
310 bool m_targetStateHasBeenSet = false;
311 };
312
313} // namespace Model
314} // namespace Proton
315} // namespace Aws
Deployment & WithEnvironmentName(EnvironmentNameT &&value)
Definition Deployment.h:123
const Aws::String & GetId() const
Definition Deployment.h:130
bool LastModifiedAtHasBeenSet() const
Definition Deployment.h:167
AWS_PROTON_API Deployment()=default
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Deployment.h:84
void SetDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:98
void SetComponentName(ComponentNameT &&value)
Definition Deployment.h:75
const Aws::String & GetServiceName() const
Definition Deployment.h:202
Deployment & WithServiceInstanceName(ServiceInstanceNameT &&value)
Definition Deployment.h:195
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Definition Deployment.h:157
const Aws::String & GetComponentName() const
Definition Deployment.h:72
bool DeploymentStatusHasBeenSet() const
Definition Deployment.h:97
Deployment & WithDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:99
bool LastAttemptedDeploymentIdHasBeenSet() const
Definition Deployment.h:155
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Deployment.h:109
bool DeploymentStatusMessageHasBeenSet() const
Definition Deployment.h:107
bool LastSucceededDeploymentIdHasBeenSet() const
Definition Deployment.h:179
const Aws::Utils::DateTime & GetLastModifiedAt() const
Definition Deployment.h:166
const DeploymentState & GetTargetState() const
Definition Deployment.h:249
bool EnvironmentNameHasBeenSet() const
Definition Deployment.h:119
void SetTargetArn(TargetArnT &&value)
Definition Deployment.h:217
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetArn() const
Definition Deployment.h:48
void SetInitialState(InitialStateT &&value)
Definition Deployment.h:145
Deployment & WithTargetArn(TargetArnT &&value)
Definition Deployment.h:219
Deployment & WithId(IdT &&value)
Definition Deployment.h:135
const DeploymentState & GetInitialState() const
Definition Deployment.h:142
bool ServiceInstanceNameHasBeenSet() const
Definition Deployment.h:191
const Aws::String & GetLastAttemptedDeploymentId() const
Definition Deployment.h:154
bool ComponentNameHasBeenSet() const
Definition Deployment.h:73
Deployment & WithTargetResourceCreatedAt(TargetResourceCreatedAtT &&value)
Definition Deployment.h:231
Deployment & WithComponentName(ComponentNameT &&value)
Definition Deployment.h:77
const Aws::Utils::DateTime & GetTargetResourceCreatedAt() const
Definition Deployment.h:226
void SetArn(ArnT &&value)
Definition Deployment.h:51
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:181
const Aws::String & GetDeploymentStatusMessage() const
Definition Deployment.h:106
void SetCompletedAt(CompletedAtT &&value)
Definition Deployment.h:63
Deployment & WithCompletedAt(CompletedAtT &&value)
Definition Deployment.h:65
bool TargetResourceCreatedAtHasBeenSet() const
Definition Deployment.h:227
Deployment & WithInitialState(InitialStateT &&value)
Definition Deployment.h:147
void SetTargetState(TargetStateT &&value)
Definition Deployment.h:252
void SetLastModifiedAt(LastModifiedAtT &&value)
Definition Deployment.h:169
Deployment & WithArn(ArnT &&value)
Definition Deployment.h:53
AWS_PROTON_API Deployment(Aws::Utils::Json::JsonView jsonValue)
DeploymentStatus GetDeploymentStatus() const
Definition Deployment.h:96
void SetServiceInstanceName(ServiceInstanceNameT &&value)
Definition Deployment.h:193
bool TargetResourceTypeHasBeenSet() const
Definition Deployment.h:240
Deployment & WithTargetState(TargetStateT &&value)
Definition Deployment.h:254
const Aws::String & GetServiceInstanceName() const
Definition Deployment.h:190
void SetCreatedAt(CreatedAtT &&value)
Definition Deployment.h:87
const Aws::String & GetTargetArn() const
Definition Deployment.h:214
const Aws::String & GetLastSucceededDeploymentId() const
Definition Deployment.h:178
DeploymentTargetResourceType GetTargetResourceType() const
Definition Deployment.h:239
Deployment & WithTargetResourceType(DeploymentTargetResourceType value)
Definition Deployment.h:242
Deployment & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
Definition Deployment.h:183
void SetTargetResourceCreatedAt(TargetResourceCreatedAtT &&value)
Definition Deployment.h:229
void SetServiceName(ServiceNameT &&value)
Definition Deployment.h:205
const Aws::String & GetEnvironmentName() const
Definition Deployment.h:118
Deployment & WithLastModifiedAt(LastModifiedAtT &&value)
Definition Deployment.h:171
void SetEnvironmentName(EnvironmentNameT &&value)
Definition Deployment.h:121
Deployment & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Definition Deployment.h:159
void SetTargetResourceType(DeploymentTargetResourceType value)
Definition Deployment.h:241
Deployment & WithCreatedAt(CreatedAtT &&value)
Definition Deployment.h:89
Deployment & WithServiceName(ServiceNameT &&value)
Definition Deployment.h:207
Deployment & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Deployment.h:111
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue