AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Environment.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#include <aws/proton/model/RepositoryBranch.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
33 public:
34 AWS_PROTON_API Environment() = default;
35 AWS_PROTON_API Environment(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 Environment& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetCodebuildRoleArn() const { return m_codebuildRoleArn; }
63 inline bool CodebuildRoleArnHasBeenSet() const { return m_codebuildRoleArnHasBeenSet; }
64 template <typename CodebuildRoleArnT = Aws::String>
65 void SetCodebuildRoleArn(CodebuildRoleArnT&& value) {
66 m_codebuildRoleArnHasBeenSet = true;
67 m_codebuildRoleArn = std::forward<CodebuildRoleArnT>(value);
68 }
69 template <typename CodebuildRoleArnT = Aws::String>
70 Environment& WithCodebuildRoleArn(CodebuildRoleArnT&& value) {
71 SetCodebuildRoleArn(std::forward<CodebuildRoleArnT>(value));
72 return *this;
73 }
75
77
87 inline const Aws::String& GetComponentRoleArn() const { return m_componentRoleArn; }
88 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
89 template <typename ComponentRoleArnT = Aws::String>
90 void SetComponentRoleArn(ComponentRoleArnT&& value) {
91 m_componentRoleArnHasBeenSet = true;
92 m_componentRoleArn = std::forward<ComponentRoleArnT>(value);
93 }
94 template <typename ComponentRoleArnT = Aws::String>
95 Environment& WithComponentRoleArn(ComponentRoleArnT&& value) {
96 SetComponentRoleArn(std::forward<ComponentRoleArnT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
106 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
107 template <typename CreatedAtT = Aws::Utils::DateTime>
108 void SetCreatedAt(CreatedAtT&& value) {
109 m_createdAtHasBeenSet = true;
110 m_createdAt = std::forward<CreatedAtT>(value);
111 }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 Environment& WithCreatedAt(CreatedAtT&& value) {
114 SetCreatedAt(std::forward<CreatedAtT>(value));
115 return *this;
116 }
118
120
123 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
124 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
126 m_deploymentStatusHasBeenSet = true;
127 m_deploymentStatus = value;
128 }
130 SetDeploymentStatus(value);
131 return *this;
132 }
134
136
139 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
140 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
141 template <typename DeploymentStatusMessageT = Aws::String>
142 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
143 m_deploymentStatusMessageHasBeenSet = true;
144 m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value);
145 }
146 template <typename DeploymentStatusMessageT = Aws::String>
147 Environment& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
148 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetDescription() const { return m_description; }
158 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
159 template <typename DescriptionT = Aws::String>
160 void SetDescription(DescriptionT&& value) {
161 m_descriptionHasBeenSet = true;
162 m_description = std::forward<DescriptionT>(value);
163 }
164 template <typename DescriptionT = Aws::String>
165 Environment& WithDescription(DescriptionT&& value) {
166 SetDescription(std::forward<DescriptionT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::String& GetEnvironmentAccountConnectionId() const { return m_environmentAccountConnectionId; }
177 inline bool EnvironmentAccountConnectionIdHasBeenSet() const { return m_environmentAccountConnectionIdHasBeenSet; }
178 template <typename EnvironmentAccountConnectionIdT = Aws::String>
179 void SetEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT&& value) {
180 m_environmentAccountConnectionIdHasBeenSet = true;
181 m_environmentAccountConnectionId = std::forward<EnvironmentAccountConnectionIdT>(value);
182 }
183 template <typename EnvironmentAccountConnectionIdT = Aws::String>
184 Environment& WithEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT&& value) {
185 SetEnvironmentAccountConnectionId(std::forward<EnvironmentAccountConnectionIdT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetEnvironmentAccountId() const { return m_environmentAccountId; }
196 inline bool EnvironmentAccountIdHasBeenSet() const { return m_environmentAccountIdHasBeenSet; }
197 template <typename EnvironmentAccountIdT = Aws::String>
198 void SetEnvironmentAccountId(EnvironmentAccountIdT&& value) {
199 m_environmentAccountIdHasBeenSet = true;
200 m_environmentAccountId = std::forward<EnvironmentAccountIdT>(value);
201 }
202 template <typename EnvironmentAccountIdT = Aws::String>
203 Environment& WithEnvironmentAccountId(EnvironmentAccountIdT&& value) {
204 SetEnvironmentAccountId(std::forward<EnvironmentAccountIdT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
214 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
215 template <typename LastAttemptedDeploymentIdT = Aws::String>
216 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
217 m_lastAttemptedDeploymentIdHasBeenSet = true;
218 m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value);
219 }
220 template <typename LastAttemptedDeploymentIdT = Aws::String>
221 Environment& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
222 SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
232 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
233 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
234 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
235 m_lastDeploymentAttemptedAtHasBeenSet = true;
236 m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value);
237 }
238 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
239 Environment& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
240 SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
250 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
251 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
252 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
253 m_lastDeploymentSucceededAtHasBeenSet = true;
254 m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value);
255 }
256 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
257 Environment& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
258 SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
268 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
269 template <typename LastSucceededDeploymentIdT = Aws::String>
270 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
271 m_lastSucceededDeploymentIdHasBeenSet = true;
272 m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value);
273 }
274 template <typename LastSucceededDeploymentIdT = Aws::String>
275 Environment& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
276 SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::String& GetName() const { return m_name; }
286 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
287 template <typename NameT = Aws::String>
288 void SetName(NameT&& value) {
289 m_nameHasBeenSet = true;
290 m_name = std::forward<NameT>(value);
291 }
292 template <typename NameT = Aws::String>
293 Environment& WithName(NameT&& value) {
294 SetName(std::forward<NameT>(value));
295 return *this;
296 }
298
300
304 inline const Aws::String& GetProtonServiceRoleArn() const { return m_protonServiceRoleArn; }
305 inline bool ProtonServiceRoleArnHasBeenSet() const { return m_protonServiceRoleArnHasBeenSet; }
306 template <typename ProtonServiceRoleArnT = Aws::String>
307 void SetProtonServiceRoleArn(ProtonServiceRoleArnT&& value) {
308 m_protonServiceRoleArnHasBeenSet = true;
309 m_protonServiceRoleArn = std::forward<ProtonServiceRoleArnT>(value);
310 }
311 template <typename ProtonServiceRoleArnT = Aws::String>
312 Environment& WithProtonServiceRoleArn(ProtonServiceRoleArnT&& value) {
313 SetProtonServiceRoleArn(std::forward<ProtonServiceRoleArnT>(value));
314 return *this;
315 }
317
319
323 inline Provisioning GetProvisioning() const { return m_provisioning; }
324 inline bool ProvisioningHasBeenSet() const { return m_provisioningHasBeenSet; }
325 inline void SetProvisioning(Provisioning value) {
326 m_provisioningHasBeenSet = true;
327 m_provisioning = value;
328 }
330 SetProvisioning(value);
331 return *this;
332 }
334
336
342 inline const RepositoryBranch& GetProvisioningRepository() const { return m_provisioningRepository; }
343 inline bool ProvisioningRepositoryHasBeenSet() const { return m_provisioningRepositoryHasBeenSet; }
344 template <typename ProvisioningRepositoryT = RepositoryBranch>
345 void SetProvisioningRepository(ProvisioningRepositoryT&& value) {
346 m_provisioningRepositoryHasBeenSet = true;
347 m_provisioningRepository = std::forward<ProvisioningRepositoryT>(value);
348 }
349 template <typename ProvisioningRepositoryT = RepositoryBranch>
350 Environment& WithProvisioningRepository(ProvisioningRepositoryT&& value) {
351 SetProvisioningRepository(std::forward<ProvisioningRepositoryT>(value));
352 return *this;
353 }
355
357
360 inline const Aws::String& GetSpec() const { return m_spec; }
361 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
362 template <typename SpecT = Aws::String>
363 void SetSpec(SpecT&& value) {
364 m_specHasBeenSet = true;
365 m_spec = std::forward<SpecT>(value);
366 }
367 template <typename SpecT = Aws::String>
368 Environment& WithSpec(SpecT&& value) {
369 SetSpec(std::forward<SpecT>(value));
370 return *this;
371 }
373
375
378 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
379 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
380 template <typename TemplateMajorVersionT = Aws::String>
381 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) {
382 m_templateMajorVersionHasBeenSet = true;
383 m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value);
384 }
385 template <typename TemplateMajorVersionT = Aws::String>
386 Environment& WithTemplateMajorVersion(TemplateMajorVersionT&& value) {
387 SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value));
388 return *this;
389 }
391
393
396 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
397 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
398 template <typename TemplateMinorVersionT = Aws::String>
399 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) {
400 m_templateMinorVersionHasBeenSet = true;
401 m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value);
402 }
403 template <typename TemplateMinorVersionT = Aws::String>
404 Environment& WithTemplateMinorVersion(TemplateMinorVersionT&& value) {
405 SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value));
406 return *this;
407 }
409
411
414 inline const Aws::String& GetTemplateName() const { return m_templateName; }
415 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
416 template <typename TemplateNameT = Aws::String>
417 void SetTemplateName(TemplateNameT&& value) {
418 m_templateNameHasBeenSet = true;
419 m_templateName = std::forward<TemplateNameT>(value);
420 }
421 template <typename TemplateNameT = Aws::String>
422 Environment& WithTemplateName(TemplateNameT&& value) {
423 SetTemplateName(std::forward<TemplateNameT>(value));
424 return *this;
425 }
427 private:
428 Aws::String m_arn;
429
430 Aws::String m_codebuildRoleArn;
431
432 Aws::String m_componentRoleArn;
433
434 Aws::Utils::DateTime m_createdAt{};
435
437
438 Aws::String m_deploymentStatusMessage;
439
440 Aws::String m_description;
441
442 Aws::String m_environmentAccountConnectionId;
443
444 Aws::String m_environmentAccountId;
445
446 Aws::String m_lastAttemptedDeploymentId;
447
448 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
449
450 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
451
452 Aws::String m_lastSucceededDeploymentId;
453
454 Aws::String m_name;
455
456 Aws::String m_protonServiceRoleArn;
457
458 Provisioning m_provisioning{Provisioning::NOT_SET};
459
460 RepositoryBranch m_provisioningRepository;
461
462 Aws::String m_spec;
463
464 Aws::String m_templateMajorVersion;
465
466 Aws::String m_templateMinorVersion;
467
468 Aws::String m_templateName;
469 bool m_arnHasBeenSet = false;
470 bool m_codebuildRoleArnHasBeenSet = false;
471 bool m_componentRoleArnHasBeenSet = false;
472 bool m_createdAtHasBeenSet = false;
473 bool m_deploymentStatusHasBeenSet = false;
474 bool m_deploymentStatusMessageHasBeenSet = false;
475 bool m_descriptionHasBeenSet = false;
476 bool m_environmentAccountConnectionIdHasBeenSet = false;
477 bool m_environmentAccountIdHasBeenSet = false;
478 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
479 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
480 bool m_lastDeploymentSucceededAtHasBeenSet = false;
481 bool m_lastSucceededDeploymentIdHasBeenSet = false;
482 bool m_nameHasBeenSet = false;
483 bool m_protonServiceRoleArnHasBeenSet = false;
484 bool m_provisioningHasBeenSet = false;
485 bool m_provisioningRepositoryHasBeenSet = false;
486 bool m_specHasBeenSet = false;
487 bool m_templateMajorVersionHasBeenSet = false;
488 bool m_templateMinorVersionHasBeenSet = false;
489 bool m_templateNameHasBeenSet = false;
490};
491
492} // namespace Model
493} // namespace Proton
494} // namespace Aws
Environment & WithDeploymentStatus(DeploymentStatus value)
bool CodebuildRoleArnHasBeenSet() const
Definition Environment.h:63
const Aws::String & GetSpec() const
Environment & WithTemplateMinorVersion(TemplateMinorVersionT &&value)
const Aws::String & GetDescription() const
Environment & WithEnvironmentAccountId(EnvironmentAccountIdT &&value)
bool TemplateMajorVersionHasBeenSet() const
const Aws::String & GetTemplateName() const
void SetProtonServiceRoleArn(ProtonServiceRoleArnT &&value)
const Aws::String & GetEnvironmentAccountConnectionId() const
void SetEnvironmentAccountId(EnvironmentAccountIdT &&value)
void SetComponentRoleArn(ComponentRoleArnT &&value)
Definition Environment.h:90
Environment & WithProvisioningRepository(ProvisioningRepositoryT &&value)
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
void SetName(NameT &&value)
Provisioning GetProvisioning() const
Environment & WithTemplateName(TemplateNameT &&value)
void SetProvisioningRepository(ProvisioningRepositoryT &&value)
Environment & WithSpec(SpecT &&value)
bool ComponentRoleArnHasBeenSet() const
Definition Environment.h:88
bool EnvironmentAccountConnectionIdHasBeenSet() const
Environment & WithArn(ArnT &&value)
Definition Environment.h:51
void SetEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT &&value)
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Environment & WithDescription(DescriptionT &&value)
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
const Aws::String & GetLastAttemptedDeploymentId() const
Environment & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
bool DeploymentStatusMessageHasBeenSet() const
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
Environment & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Environment & WithCodebuildRoleArn(CodebuildRoleArnT &&value)
Definition Environment.h:70
const Aws::String & GetTemplateMajorVersion() const
bool LastDeploymentSucceededAtHasBeenSet() const
bool LastDeploymentAttemptedAtHasBeenSet() const
const Aws::String & GetEnvironmentAccountId() const
bool ProvisioningRepositoryHasBeenSet() const
const Aws::String & GetLastSucceededDeploymentId() const
const Aws::String & GetName() const
Environment & WithCreatedAt(CreatedAtT &&value)
Environment & WithProtonServiceRoleArn(ProtonServiceRoleArnT &&value)
bool TemplateMinorVersionHasBeenSet() const
void SetTemplateMinorVersion(TemplateMinorVersionT &&value)
bool EnvironmentAccountIdHasBeenSet() const
const Aws::String & GetCodebuildRoleArn() const
Definition Environment.h:62
const RepositoryBranch & GetProvisioningRepository() const
Environment & WithName(NameT &&value)
void SetSpec(SpecT &&value)
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Environment & WithProvisioning(Provisioning value)
Environment & WithEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT &&value)
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
const Aws::String & GetProtonServiceRoleArn() const
bool ProtonServiceRoleArnHasBeenSet() const
void SetTemplateMajorVersion(TemplateMajorVersionT &&value)
DeploymentStatus GetDeploymentStatus() const
bool LastSucceededDeploymentIdHasBeenSet() const
Environment & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
Environment & WithComponentRoleArn(ComponentRoleArnT &&value)
Definition Environment.h:95
void SetDescription(DescriptionT &&value)
bool LastAttemptedDeploymentIdHasBeenSet() const
Environment & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
Environment & WithTemplateMajorVersion(TemplateMajorVersionT &&value)
void SetCodebuildRoleArn(CodebuildRoleArnT &&value)
Definition Environment.h:65
void SetTemplateName(TemplateNameT &&value)
void SetDeploymentStatus(DeploymentStatus value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetTemplateMinorVersion() const
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
const Aws::String & GetComponentRoleArn() const
Definition Environment.h:87
const Aws::String & GetArn() const
Definition Environment.h:43
AWS_PROTON_API Environment()=default
Environment & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
const Aws::String & GetDeploymentStatusMessage() const
void SetProvisioning(Provisioning value)
AWS_PROTON_API Environment(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue