AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DeploymentSummary.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/DeploymentStatus.h>
11#include <aws/proton/model/DeploymentTargetResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Proton {
23namespace Model {
24
31 public:
32 AWS_PROTON_API DeploymentSummary() = default;
35 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 DeploymentSummary& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
60 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
61 template <typename CompletedAtT = Aws::Utils::DateTime>
62 void SetCompletedAt(CompletedAtT&& value) {
63 m_completedAtHasBeenSet = true;
64 m_completedAt = std::forward<CompletedAtT>(value);
65 }
66 template <typename CompletedAtT = Aws::Utils::DateTime>
67 DeploymentSummary& WithCompletedAt(CompletedAtT&& value) {
68 SetCompletedAt(std::forward<CompletedAtT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetComponentName() const { return m_componentName; }
78 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
79 template <typename ComponentNameT = Aws::String>
80 void SetComponentName(ComponentNameT&& value) {
81 m_componentNameHasBeenSet = true;
82 m_componentName = std::forward<ComponentNameT>(value);
83 }
84 template <typename ComponentNameT = Aws::String>
85 DeploymentSummary& WithComponentName(ComponentNameT&& value) {
86 SetComponentName(std::forward<ComponentNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
96 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
97 template <typename CreatedAtT = Aws::Utils::DateTime>
98 void SetCreatedAt(CreatedAtT&& value) {
99 m_createdAtHasBeenSet = true;
100 m_createdAt = std::forward<CreatedAtT>(value);
101 }
102 template <typename CreatedAtT = Aws::Utils::DateTime>
103 DeploymentSummary& WithCreatedAt(CreatedAtT&& value) {
104 SetCreatedAt(std::forward<CreatedAtT>(value));
105 return *this;
106 }
108
110
113 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
114 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
116 m_deploymentStatusHasBeenSet = true;
117 m_deploymentStatus = value;
118 }
120 SetDeploymentStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
130 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
131 template <typename EnvironmentNameT = Aws::String>
132 void SetEnvironmentName(EnvironmentNameT&& value) {
133 m_environmentNameHasBeenSet = true;
134 m_environmentName = std::forward<EnvironmentNameT>(value);
135 }
136 template <typename EnvironmentNameT = Aws::String>
137 DeploymentSummary& WithEnvironmentName(EnvironmentNameT&& value) {
138 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetId() const { return m_id; }
148 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
149 template <typename IdT = Aws::String>
150 void SetId(IdT&& value) {
151 m_idHasBeenSet = true;
152 m_id = std::forward<IdT>(value);
153 }
154 template <typename IdT = Aws::String>
155 DeploymentSummary& WithId(IdT&& value) {
156 SetId(std::forward<IdT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
166 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
167 template <typename LastAttemptedDeploymentIdT = Aws::String>
168 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
169 m_lastAttemptedDeploymentIdHasBeenSet = true;
170 m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value);
171 }
172 template <typename LastAttemptedDeploymentIdT = Aws::String>
173 DeploymentSummary& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
174 SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
184 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
185 template <typename LastModifiedAtT = Aws::Utils::DateTime>
186 void SetLastModifiedAt(LastModifiedAtT&& value) {
187 m_lastModifiedAtHasBeenSet = true;
188 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
189 }
190 template <typename LastModifiedAtT = Aws::Utils::DateTime>
191 DeploymentSummary& WithLastModifiedAt(LastModifiedAtT&& value) {
192 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
202 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
203 template <typename LastSucceededDeploymentIdT = Aws::String>
204 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
205 m_lastSucceededDeploymentIdHasBeenSet = true;
206 m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value);
207 }
208 template <typename LastSucceededDeploymentIdT = Aws::String>
209 DeploymentSummary& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
210 SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
220 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
221 template <typename ServiceInstanceNameT = Aws::String>
222 void SetServiceInstanceName(ServiceInstanceNameT&& value) {
223 m_serviceInstanceNameHasBeenSet = true;
224 m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value);
225 }
226 template <typename ServiceInstanceNameT = Aws::String>
227 DeploymentSummary& WithServiceInstanceName(ServiceInstanceNameT&& value) {
228 SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::String& GetServiceName() const { return m_serviceName; }
238 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
239 template <typename ServiceNameT = Aws::String>
240 void SetServiceName(ServiceNameT&& value) {
241 m_serviceNameHasBeenSet = true;
242 m_serviceName = std::forward<ServiceNameT>(value);
243 }
244 template <typename ServiceNameT = Aws::String>
245 DeploymentSummary& WithServiceName(ServiceNameT&& value) {
246 SetServiceName(std::forward<ServiceNameT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
256 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
257 template <typename TargetArnT = Aws::String>
258 void SetTargetArn(TargetArnT&& value) {
259 m_targetArnHasBeenSet = true;
260 m_targetArn = std::forward<TargetArnT>(value);
261 }
262 template <typename TargetArnT = Aws::String>
263 DeploymentSummary& WithTargetArn(TargetArnT&& value) {
264 SetTargetArn(std::forward<TargetArnT>(value));
265 return *this;
266 }
268
270
273 inline const Aws::Utils::DateTime& GetTargetResourceCreatedAt() const { return m_targetResourceCreatedAt; }
274 inline bool TargetResourceCreatedAtHasBeenSet() const { return m_targetResourceCreatedAtHasBeenSet; }
275 template <typename TargetResourceCreatedAtT = Aws::Utils::DateTime>
276 void SetTargetResourceCreatedAt(TargetResourceCreatedAtT&& value) {
277 m_targetResourceCreatedAtHasBeenSet = true;
278 m_targetResourceCreatedAt = std::forward<TargetResourceCreatedAtT>(value);
279 }
280 template <typename TargetResourceCreatedAtT = Aws::Utils::DateTime>
281 DeploymentSummary& WithTargetResourceCreatedAt(TargetResourceCreatedAtT&& value) {
282 SetTargetResourceCreatedAt(std::forward<TargetResourceCreatedAtT>(value));
283 return *this;
284 }
286
288
292 inline DeploymentTargetResourceType GetTargetResourceType() const { return m_targetResourceType; }
293 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
295 m_targetResourceTypeHasBeenSet = true;
296 m_targetResourceType = value;
297 }
300 return *this;
301 }
303 private:
304 Aws::String m_arn;
305
306 Aws::Utils::DateTime m_completedAt{};
307
308 Aws::String m_componentName;
309
310 Aws::Utils::DateTime m_createdAt{};
311
313
314 Aws::String m_environmentName;
315
316 Aws::String m_id;
317
318 Aws::String m_lastAttemptedDeploymentId;
319
320 Aws::Utils::DateTime m_lastModifiedAt{};
321
322 Aws::String m_lastSucceededDeploymentId;
323
324 Aws::String m_serviceInstanceName;
325
326 Aws::String m_serviceName;
327
328 Aws::String m_targetArn;
329
330 Aws::Utils::DateTime m_targetResourceCreatedAt{};
331
333 bool m_arnHasBeenSet = false;
334 bool m_completedAtHasBeenSet = false;
335 bool m_componentNameHasBeenSet = false;
336 bool m_createdAtHasBeenSet = false;
337 bool m_deploymentStatusHasBeenSet = false;
338 bool m_environmentNameHasBeenSet = false;
339 bool m_idHasBeenSet = false;
340 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
341 bool m_lastModifiedAtHasBeenSet = false;
342 bool m_lastSucceededDeploymentIdHasBeenSet = false;
343 bool m_serviceInstanceNameHasBeenSet = false;
344 bool m_serviceNameHasBeenSet = false;
345 bool m_targetArnHasBeenSet = false;
346 bool m_targetResourceCreatedAtHasBeenSet = false;
347 bool m_targetResourceTypeHasBeenSet = false;
348};
349
350} // namespace Model
351} // namespace Proton
352} // namespace Aws
void SetServiceName(ServiceNameT &&value)
void SetEnvironmentName(EnvironmentNameT &&value)
const Aws::String & GetTargetArn() const
void SetTargetResourceType(DeploymentTargetResourceType value)
const Aws::String & GetLastAttemptedDeploymentId() const
DeploymentTargetResourceType GetTargetResourceType() const
const Aws::String & GetLastSucceededDeploymentId() const
DeploymentSummary & WithComponentName(ComponentNameT &&value)
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
void SetLastModifiedAt(LastModifiedAtT &&value)
const Aws::String & GetEnvironmentName() const
DeploymentSummary & WithTargetResourceCreatedAt(TargetResourceCreatedAtT &&value)
DeploymentSummary & WithEnvironmentName(EnvironmentNameT &&value)
const Aws::String & GetArn() const
const Aws::Utils::DateTime & GetLastModifiedAt() const
DeploymentSummary & WithTargetResourceType(DeploymentTargetResourceType value)
const Aws::Utils::DateTime & GetTargetResourceCreatedAt() const
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
DeploymentSummary & WithTargetArn(TargetArnT &&value)
DeploymentSummary & WithLastModifiedAt(LastModifiedAtT &&value)
DeploymentSummary & WithServiceInstanceName(ServiceInstanceNameT &&value)
DeploymentSummary & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
DeploymentSummary & WithId(IdT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
DeploymentSummary & WithServiceName(ServiceNameT &&value)
const Aws::String & GetServiceName() const
AWS_PROTON_API DeploymentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComponentName(ComponentNameT &&value)
DeploymentSummary & WithCompletedAt(CompletedAtT &&value)
void SetCompletedAt(CompletedAtT &&value)
DeploymentSummary & WithDeploymentStatus(DeploymentStatus value)
const Aws::String & GetComponentName() const
const Aws::String & GetServiceInstanceName() const
DeploymentSummary & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
DeploymentSummary & WithCreatedAt(CreatedAtT &&value)
void SetTargetResourceCreatedAt(TargetResourceCreatedAtT &&value)
DeploymentStatus GetDeploymentStatus() const
void SetDeploymentStatus(DeploymentStatus value)
DeploymentSummary & WithArn(ArnT &&value)
AWS_PROTON_API DeploymentSummary()=default
void SetServiceInstanceName(ServiceInstanceNameT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROTON_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue