AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
EnvironmentSummary.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/Provisioning.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
32 public:
33 AWS_PROTON_API EnvironmentSummary() = default;
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 EnvironmentSummary& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
67 inline const Aws::String& GetComponentRoleArn() const { return m_componentRoleArn; }
68 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
69 template <typename ComponentRoleArnT = Aws::String>
70 void SetComponentRoleArn(ComponentRoleArnT&& value) {
71 m_componentRoleArnHasBeenSet = true;
72 m_componentRoleArn = std::forward<ComponentRoleArnT>(value);
73 }
74 template <typename ComponentRoleArnT = Aws::String>
75 EnvironmentSummary& WithComponentRoleArn(ComponentRoleArnT&& value) {
76 SetComponentRoleArn(std::forward<ComponentRoleArnT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
86 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
87 template <typename CreatedAtT = Aws::Utils::DateTime>
88 void SetCreatedAt(CreatedAtT&& value) {
89 m_createdAtHasBeenSet = true;
90 m_createdAt = std::forward<CreatedAtT>(value);
91 }
92 template <typename CreatedAtT = Aws::Utils::DateTime>
93 EnvironmentSummary& WithCreatedAt(CreatedAtT&& value) {
94 SetCreatedAt(std::forward<CreatedAtT>(value));
95 return *this;
96 }
98
100
103 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
104 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
106 m_deploymentStatusHasBeenSet = true;
107 m_deploymentStatus = value;
108 }
110 SetDeploymentStatus(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
120 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
121 template <typename DeploymentStatusMessageT = Aws::String>
122 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
123 m_deploymentStatusMessageHasBeenSet = true;
124 m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value);
125 }
126 template <typename DeploymentStatusMessageT = Aws::String>
127 EnvironmentSummary& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
128 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetDescription() const { return m_description; }
138 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
139 template <typename DescriptionT = Aws::String>
140 void SetDescription(DescriptionT&& value) {
141 m_descriptionHasBeenSet = true;
142 m_description = std::forward<DescriptionT>(value);
143 }
144 template <typename DescriptionT = Aws::String>
145 EnvironmentSummary& WithDescription(DescriptionT&& value) {
146 SetDescription(std::forward<DescriptionT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetEnvironmentAccountConnectionId() const { return m_environmentAccountConnectionId; }
157 inline bool EnvironmentAccountConnectionIdHasBeenSet() const { return m_environmentAccountConnectionIdHasBeenSet; }
158 template <typename EnvironmentAccountConnectionIdT = Aws::String>
159 void SetEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT&& value) {
160 m_environmentAccountConnectionIdHasBeenSet = true;
161 m_environmentAccountConnectionId = std::forward<EnvironmentAccountConnectionIdT>(value);
162 }
163 template <typename EnvironmentAccountConnectionIdT = Aws::String>
164 EnvironmentSummary& WithEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT&& value) {
165 SetEnvironmentAccountConnectionId(std::forward<EnvironmentAccountConnectionIdT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetEnvironmentAccountId() const { return m_environmentAccountId; }
176 inline bool EnvironmentAccountIdHasBeenSet() const { return m_environmentAccountIdHasBeenSet; }
177 template <typename EnvironmentAccountIdT = Aws::String>
178 void SetEnvironmentAccountId(EnvironmentAccountIdT&& value) {
179 m_environmentAccountIdHasBeenSet = true;
180 m_environmentAccountId = std::forward<EnvironmentAccountIdT>(value);
181 }
182 template <typename EnvironmentAccountIdT = Aws::String>
183 EnvironmentSummary& WithEnvironmentAccountId(EnvironmentAccountIdT&& value) {
184 SetEnvironmentAccountId(std::forward<EnvironmentAccountIdT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
194 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
195 template <typename LastAttemptedDeploymentIdT = Aws::String>
196 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
197 m_lastAttemptedDeploymentIdHasBeenSet = true;
198 m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value);
199 }
200 template <typename LastAttemptedDeploymentIdT = Aws::String>
201 EnvironmentSummary& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
202 SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
212 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
213 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
214 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
215 m_lastDeploymentAttemptedAtHasBeenSet = true;
216 m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value);
217 }
218 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
219 EnvironmentSummary& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
220 SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
230 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
231 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
232 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
233 m_lastDeploymentSucceededAtHasBeenSet = true;
234 m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value);
235 }
236 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
237 EnvironmentSummary& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
238 SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
248 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
249 template <typename LastSucceededDeploymentIdT = Aws::String>
250 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
251 m_lastSucceededDeploymentIdHasBeenSet = true;
252 m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value);
253 }
254 template <typename LastSucceededDeploymentIdT = Aws::String>
255 EnvironmentSummary& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
256 SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::String& GetName() const { return m_name; }
266 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
267 template <typename NameT = Aws::String>
268 void SetName(NameT&& value) {
269 m_nameHasBeenSet = true;
270 m_name = std::forward<NameT>(value);
271 }
272 template <typename NameT = Aws::String>
273 EnvironmentSummary& WithName(NameT&& value) {
274 SetName(std::forward<NameT>(value));
275 return *this;
276 }
278
280
284 inline const Aws::String& GetProtonServiceRoleArn() const { return m_protonServiceRoleArn; }
285 inline bool ProtonServiceRoleArnHasBeenSet() const { return m_protonServiceRoleArnHasBeenSet; }
286 template <typename ProtonServiceRoleArnT = Aws::String>
287 void SetProtonServiceRoleArn(ProtonServiceRoleArnT&& value) {
288 m_protonServiceRoleArnHasBeenSet = true;
289 m_protonServiceRoleArn = std::forward<ProtonServiceRoleArnT>(value);
290 }
291 template <typename ProtonServiceRoleArnT = Aws::String>
292 EnvironmentSummary& WithProtonServiceRoleArn(ProtonServiceRoleArnT&& value) {
293 SetProtonServiceRoleArn(std::forward<ProtonServiceRoleArnT>(value));
294 return *this;
295 }
297
299
303 inline Provisioning GetProvisioning() const { return m_provisioning; }
304 inline bool ProvisioningHasBeenSet() const { return m_provisioningHasBeenSet; }
305 inline void SetProvisioning(Provisioning value) {
306 m_provisioningHasBeenSet = true;
307 m_provisioning = value;
308 }
310 SetProvisioning(value);
311 return *this;
312 }
314
316
319 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
320 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
321 template <typename TemplateMajorVersionT = Aws::String>
322 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) {
323 m_templateMajorVersionHasBeenSet = true;
324 m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value);
325 }
326 template <typename TemplateMajorVersionT = Aws::String>
327 EnvironmentSummary& WithTemplateMajorVersion(TemplateMajorVersionT&& value) {
328 SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value));
329 return *this;
330 }
332
334
337 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
338 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
339 template <typename TemplateMinorVersionT = Aws::String>
340 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) {
341 m_templateMinorVersionHasBeenSet = true;
342 m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value);
343 }
344 template <typename TemplateMinorVersionT = Aws::String>
345 EnvironmentSummary& WithTemplateMinorVersion(TemplateMinorVersionT&& value) {
346 SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value));
347 return *this;
348 }
350
352
355 inline const Aws::String& GetTemplateName() const { return m_templateName; }
356 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
357 template <typename TemplateNameT = Aws::String>
358 void SetTemplateName(TemplateNameT&& value) {
359 m_templateNameHasBeenSet = true;
360 m_templateName = std::forward<TemplateNameT>(value);
361 }
362 template <typename TemplateNameT = Aws::String>
363 EnvironmentSummary& WithTemplateName(TemplateNameT&& value) {
364 SetTemplateName(std::forward<TemplateNameT>(value));
365 return *this;
366 }
368 private:
369 Aws::String m_arn;
370
371 Aws::String m_componentRoleArn;
372
373 Aws::Utils::DateTime m_createdAt{};
374
376
377 Aws::String m_deploymentStatusMessage;
378
379 Aws::String m_description;
380
381 Aws::String m_environmentAccountConnectionId;
382
383 Aws::String m_environmentAccountId;
384
385 Aws::String m_lastAttemptedDeploymentId;
386
387 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
388
389 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
390
391 Aws::String m_lastSucceededDeploymentId;
392
393 Aws::String m_name;
394
395 Aws::String m_protonServiceRoleArn;
396
397 Provisioning m_provisioning{Provisioning::NOT_SET};
398
399 Aws::String m_templateMajorVersion;
400
401 Aws::String m_templateMinorVersion;
402
403 Aws::String m_templateName;
404 bool m_arnHasBeenSet = false;
405 bool m_componentRoleArnHasBeenSet = false;
406 bool m_createdAtHasBeenSet = false;
407 bool m_deploymentStatusHasBeenSet = false;
408 bool m_deploymentStatusMessageHasBeenSet = false;
409 bool m_descriptionHasBeenSet = false;
410 bool m_environmentAccountConnectionIdHasBeenSet = false;
411 bool m_environmentAccountIdHasBeenSet = false;
412 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
413 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
414 bool m_lastDeploymentSucceededAtHasBeenSet = false;
415 bool m_lastSucceededDeploymentIdHasBeenSet = false;
416 bool m_nameHasBeenSet = false;
417 bool m_protonServiceRoleArnHasBeenSet = false;
418 bool m_provisioningHasBeenSet = false;
419 bool m_templateMajorVersionHasBeenSet = false;
420 bool m_templateMinorVersionHasBeenSet = false;
421 bool m_templateNameHasBeenSet = false;
422};
423
424} // namespace Model
425} // namespace Proton
426} // namespace Aws
EnvironmentSummary & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
EnvironmentSummary & WithArn(ArnT &&value)
EnvironmentSummary & WithCreatedAt(CreatedAtT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTemplateMajorVersion(TemplateMajorVersionT &&value)
const Aws::String & GetComponentRoleArn() const
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
const Aws::String & GetDeploymentStatusMessage() const
EnvironmentSummary & WithEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT &&value)
void SetTemplateName(TemplateNameT &&value)
const Aws::String & GetLastSucceededDeploymentId() const
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
const Aws::String & GetLastAttemptedDeploymentId() const
EnvironmentSummary & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
EnvironmentSummary & WithComponentRoleArn(ComponentRoleArnT &&value)
const Aws::String & GetTemplateMajorVersion() const
void SetEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT &&value)
EnvironmentSummary & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
const Aws::String & GetTemplateName() const
EnvironmentSummary & WithProtonServiceRoleArn(ProtonServiceRoleArnT &&value)
EnvironmentSummary & WithProvisioning(Provisioning value)
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
AWS_PROTON_API EnvironmentSummary()=default
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
EnvironmentSummary & WithDeploymentStatus(DeploymentStatus value)
void SetProtonServiceRoleArn(ProtonServiceRoleArnT &&value)
EnvironmentSummary & WithTemplateMinorVersion(TemplateMinorVersionT &&value)
void SetDeploymentStatus(DeploymentStatus value)
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
EnvironmentSummary & WithEnvironmentAccountId(EnvironmentAccountIdT &&value)
void SetEnvironmentAccountId(EnvironmentAccountIdT &&value)
EnvironmentSummary & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
const Aws::String & GetTemplateMinorVersion() const
void SetTemplateMinorVersion(TemplateMinorVersionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
EnvironmentSummary & WithTemplateMajorVersion(TemplateMajorVersionT &&value)
EnvironmentSummary & WithTemplateName(TemplateNameT &&value)
EnvironmentSummary & WithName(NameT &&value)
const Aws::String & GetEnvironmentAccountId() const
AWS_PROTON_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue)
void SetComponentRoleArn(ComponentRoleArnT &&value)
EnvironmentSummary & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
EnvironmentSummary & WithDescription(DescriptionT &&value)
AWS_PROTON_API EnvironmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
const Aws::String & GetEnvironmentAccountConnectionId() const
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetProtonServiceRoleArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue