AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateEnvironmentResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/EnvironmentHealth.h>
12#include <aws/elasticbeanstalk/model/EnvironmentHealthStatus.h>
13#include <aws/elasticbeanstalk/model/EnvironmentLink.h>
14#include <aws/elasticbeanstalk/model/EnvironmentResourcesDescription.h>
15#include <aws/elasticbeanstalk/model/EnvironmentStatus.h>
16#include <aws/elasticbeanstalk/model/EnvironmentTier.h>
17#include <aws/elasticbeanstalk/model/ResponseMetadata.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Xml {
27class XmlDocument;
28} // namespace Xml
29} // namespace Utils
30namespace ElasticBeanstalk {
31namespace Model {
38 public:
39 AWS_ELASTICBEANSTALK_API CreateEnvironmentResult() = default;
42
44
47 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
48 template <typename EnvironmentNameT = Aws::String>
49 void SetEnvironmentName(EnvironmentNameT&& value) {
50 m_environmentNameHasBeenSet = true;
51 m_environmentName = std::forward<EnvironmentNameT>(value);
52 }
53 template <typename EnvironmentNameT = Aws::String>
54 CreateEnvironmentResult& WithEnvironmentName(EnvironmentNameT&& value) {
55 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
65 template <typename EnvironmentIdT = Aws::String>
66 void SetEnvironmentId(EnvironmentIdT&& value) {
67 m_environmentIdHasBeenSet = true;
68 m_environmentId = std::forward<EnvironmentIdT>(value);
69 }
70 template <typename EnvironmentIdT = Aws::String>
71 CreateEnvironmentResult& WithEnvironmentId(EnvironmentIdT&& value) {
72 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
82 template <typename ApplicationNameT = Aws::String>
83 void SetApplicationName(ApplicationNameT&& value) {
84 m_applicationNameHasBeenSet = true;
85 m_applicationName = std::forward<ApplicationNameT>(value);
86 }
87 template <typename ApplicationNameT = Aws::String>
88 CreateEnvironmentResult& WithApplicationName(ApplicationNameT&& value) {
89 SetApplicationName(std::forward<ApplicationNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
99 template <typename VersionLabelT = Aws::String>
100 void SetVersionLabel(VersionLabelT&& value) {
101 m_versionLabelHasBeenSet = true;
102 m_versionLabel = std::forward<VersionLabelT>(value);
103 }
104 template <typename VersionLabelT = Aws::String>
106 SetVersionLabel(std::forward<VersionLabelT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
117 template <typename SolutionStackNameT = Aws::String>
118 void SetSolutionStackName(SolutionStackNameT&& value) {
119 m_solutionStackNameHasBeenSet = true;
120 m_solutionStackName = std::forward<SolutionStackNameT>(value);
121 }
122 template <typename SolutionStackNameT = Aws::String>
123 CreateEnvironmentResult& WithSolutionStackName(SolutionStackNameT&& value) {
124 SetSolutionStackName(std::forward<SolutionStackNameT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
134 template <typename PlatformArnT = Aws::String>
135 void SetPlatformArn(PlatformArnT&& value) {
136 m_platformArnHasBeenSet = true;
137 m_platformArn = std::forward<PlatformArnT>(value);
138 }
139 template <typename PlatformArnT = Aws::String>
141 SetPlatformArn(std::forward<PlatformArnT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetTemplateName() const { return m_templateName; }
152 template <typename TemplateNameT = Aws::String>
153 void SetTemplateName(TemplateNameT&& value) {
154 m_templateNameHasBeenSet = true;
155 m_templateName = std::forward<TemplateNameT>(value);
156 }
157 template <typename TemplateNameT = Aws::String>
159 SetTemplateName(std::forward<TemplateNameT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetDescription() const { return m_description; }
169 template <typename DescriptionT = Aws::String>
170 void SetDescription(DescriptionT&& value) {
171 m_descriptionHasBeenSet = true;
172 m_description = std::forward<DescriptionT>(value);
173 }
174 template <typename DescriptionT = Aws::String>
176 SetDescription(std::forward<DescriptionT>(value));
177 return *this;
178 }
180
182
186 inline const Aws::String& GetEndpointURL() const { return m_endpointURL; }
187 template <typename EndpointURLT = Aws::String>
188 void SetEndpointURL(EndpointURLT&& value) {
189 m_endpointURLHasBeenSet = true;
190 m_endpointURL = std::forward<EndpointURLT>(value);
191 }
192 template <typename EndpointURLT = Aws::String>
194 SetEndpointURL(std::forward<EndpointURLT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetCNAME() const { return m_cNAME; }
204 template <typename CNAMET = Aws::String>
205 void SetCNAME(CNAMET&& value) {
206 m_cNAMEHasBeenSet = true;
207 m_cNAME = std::forward<CNAMET>(value);
208 }
209 template <typename CNAMET = Aws::String>
211 SetCNAME(std::forward<CNAMET>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
221 template <typename DateCreatedT = Aws::Utils::DateTime>
222 void SetDateCreated(DateCreatedT&& value) {
223 m_dateCreatedHasBeenSet = true;
224 m_dateCreated = std::forward<DateCreatedT>(value);
225 }
226 template <typename DateCreatedT = Aws::Utils::DateTime>
228 SetDateCreated(std::forward<DateCreatedT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Utils::DateTime& GetDateUpdated() const { return m_dateUpdated; }
238 template <typename DateUpdatedT = Aws::Utils::DateTime>
239 void SetDateUpdated(DateUpdatedT&& value) {
240 m_dateUpdatedHasBeenSet = true;
241 m_dateUpdated = std::forward<DateUpdatedT>(value);
242 }
243 template <typename DateUpdatedT = Aws::Utils::DateTime>
245 SetDateUpdated(std::forward<DateUpdatedT>(value));
246 return *this;
247 }
249
251
261 inline EnvironmentStatus GetStatus() const { return m_status; }
262 inline void SetStatus(EnvironmentStatus value) {
263 m_statusHasBeenSet = true;
264 m_status = value;
265 }
267 SetStatus(value);
268 return *this;
269 }
271
273
279 inline bool GetAbortableOperationInProgress() const { return m_abortableOperationInProgress; }
280 inline void SetAbortableOperationInProgress(bool value) {
281 m_abortableOperationInProgressHasBeenSet = true;
282 m_abortableOperationInProgress = value;
283 }
286 return *this;
287 }
289
291
305 inline EnvironmentHealth GetHealth() const { return m_health; }
306 inline void SetHealth(EnvironmentHealth value) {
307 m_healthHasBeenSet = true;
308 m_health = value;
309 }
311 SetHealth(value);
312 return *this;
313 }
315
317
323 inline EnvironmentHealthStatus GetHealthStatus() const { return m_healthStatus; }
325 m_healthStatusHasBeenSet = true;
326 m_healthStatus = value;
327 }
329 SetHealthStatus(value);
330 return *this;
331 }
333
335
338 inline const EnvironmentResourcesDescription& GetResources() const { return m_resources; }
339 template <typename ResourcesT = EnvironmentResourcesDescription>
340 void SetResources(ResourcesT&& value) {
341 m_resourcesHasBeenSet = true;
342 m_resources = std::forward<ResourcesT>(value);
343 }
344 template <typename ResourcesT = EnvironmentResourcesDescription>
346 SetResources(std::forward<ResourcesT>(value));
347 return *this;
348 }
350
352
355 inline const EnvironmentTier& GetTier() const { return m_tier; }
356 template <typename TierT = EnvironmentTier>
357 void SetTier(TierT&& value) {
358 m_tierHasBeenSet = true;
359 m_tier = std::forward<TierT>(value);
360 }
361 template <typename TierT = EnvironmentTier>
363 SetTier(std::forward<TierT>(value));
364 return *this;
365 }
367
369
372 inline const Aws::Vector<EnvironmentLink>& GetEnvironmentLinks() const { return m_environmentLinks; }
373 template <typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
374 void SetEnvironmentLinks(EnvironmentLinksT&& value) {
375 m_environmentLinksHasBeenSet = true;
376 m_environmentLinks = std::forward<EnvironmentLinksT>(value);
377 }
378 template <typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
379 CreateEnvironmentResult& WithEnvironmentLinks(EnvironmentLinksT&& value) {
380 SetEnvironmentLinks(std::forward<EnvironmentLinksT>(value));
381 return *this;
382 }
383 template <typename EnvironmentLinksT = EnvironmentLink>
384 CreateEnvironmentResult& AddEnvironmentLinks(EnvironmentLinksT&& value) {
385 m_environmentLinksHasBeenSet = true;
386 m_environmentLinks.emplace_back(std::forward<EnvironmentLinksT>(value));
387 return *this;
388 }
390
392
396 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
397 template <typename EnvironmentArnT = Aws::String>
398 void SetEnvironmentArn(EnvironmentArnT&& value) {
399 m_environmentArnHasBeenSet = true;
400 m_environmentArn = std::forward<EnvironmentArnT>(value);
401 }
402 template <typename EnvironmentArnT = Aws::String>
403 CreateEnvironmentResult& WithEnvironmentArn(EnvironmentArnT&& value) {
404 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
405 return *this;
406 }
408
410
416 inline const Aws::String& GetOperationsRole() const { return m_operationsRole; }
417 template <typename OperationsRoleT = Aws::String>
418 void SetOperationsRole(OperationsRoleT&& value) {
419 m_operationsRoleHasBeenSet = true;
420 m_operationsRole = std::forward<OperationsRoleT>(value);
421 }
422 template <typename OperationsRoleT = Aws::String>
423 CreateEnvironmentResult& WithOperationsRole(OperationsRoleT&& value) {
424 SetOperationsRole(std::forward<OperationsRoleT>(value));
425 return *this;
426 }
428
430
431 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
432 template <typename ResponseMetadataT = ResponseMetadata>
433 void SetResponseMetadata(ResponseMetadataT&& value) {
434 m_responseMetadataHasBeenSet = true;
435 m_responseMetadata = std::forward<ResponseMetadataT>(value);
436 }
437 template <typename ResponseMetadataT = ResponseMetadata>
438 CreateEnvironmentResult& WithResponseMetadata(ResponseMetadataT&& value) {
439 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
440 return *this;
441 }
443 private:
444 Aws::String m_environmentName;
445
446 Aws::String m_environmentId;
447
448 Aws::String m_applicationName;
449
450 Aws::String m_versionLabel;
451
452 Aws::String m_solutionStackName;
453
454 Aws::String m_platformArn;
455
456 Aws::String m_templateName;
457
458 Aws::String m_description;
459
460 Aws::String m_endpointURL;
461
462 Aws::String m_cNAME;
463
464 Aws::Utils::DateTime m_dateCreated{};
465
466 Aws::Utils::DateTime m_dateUpdated{};
467
469
470 bool m_abortableOperationInProgress{false};
471
473
475
476 EnvironmentResourcesDescription m_resources;
477
478 EnvironmentTier m_tier;
479
480 Aws::Vector<EnvironmentLink> m_environmentLinks;
481
482 Aws::String m_environmentArn;
483
484 Aws::String m_operationsRole;
485
486 ResponseMetadata m_responseMetadata;
487 bool m_environmentNameHasBeenSet = false;
488 bool m_environmentIdHasBeenSet = false;
489 bool m_applicationNameHasBeenSet = false;
490 bool m_versionLabelHasBeenSet = false;
491 bool m_solutionStackNameHasBeenSet = false;
492 bool m_platformArnHasBeenSet = false;
493 bool m_templateNameHasBeenSet = false;
494 bool m_descriptionHasBeenSet = false;
495 bool m_endpointURLHasBeenSet = false;
496 bool m_cNAMEHasBeenSet = false;
497 bool m_dateCreatedHasBeenSet = false;
498 bool m_dateUpdatedHasBeenSet = false;
499 bool m_statusHasBeenSet = false;
500 bool m_abortableOperationInProgressHasBeenSet = false;
501 bool m_healthHasBeenSet = false;
502 bool m_healthStatusHasBeenSet = false;
503 bool m_resourcesHasBeenSet = false;
504 bool m_tierHasBeenSet = false;
505 bool m_environmentLinksHasBeenSet = false;
506 bool m_environmentArnHasBeenSet = false;
507 bool m_operationsRoleHasBeenSet = false;
508 bool m_responseMetadataHasBeenSet = false;
509};
510
511} // namespace Model
512} // namespace ElasticBeanstalk
513} // namespace Aws
CreateEnvironmentResult & WithEnvironmentId(EnvironmentIdT &&value)
CreateEnvironmentResult & WithAbortableOperationInProgress(bool value)
CreateEnvironmentResult & WithStatus(EnvironmentStatus value)
const Aws::Vector< EnvironmentLink > & GetEnvironmentLinks() const
CreateEnvironmentResult & WithEnvironmentArn(EnvironmentArnT &&value)
CreateEnvironmentResult & WithApplicationName(ApplicationNameT &&value)
CreateEnvironmentResult & WithDateUpdated(DateUpdatedT &&value)
CreateEnvironmentResult & AddEnvironmentLinks(EnvironmentLinksT &&value)
CreateEnvironmentResult & WithEnvironmentLinks(EnvironmentLinksT &&value)
CreateEnvironmentResult & WithDateCreated(DateCreatedT &&value)
CreateEnvironmentResult & WithCNAME(CNAMET &&value)
CreateEnvironmentResult & WithPlatformArn(PlatformArnT &&value)
CreateEnvironmentResult & WithTemplateName(TemplateNameT &&value)
AWS_ELASTICBEANSTALK_API CreateEnvironmentResult()=default
CreateEnvironmentResult & WithHealth(EnvironmentHealth value)
CreateEnvironmentResult & WithEnvironmentName(EnvironmentNameT &&value)
AWS_ELASTICBEANSTALK_API CreateEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateEnvironmentResult & WithResponseMetadata(ResponseMetadataT &&value)
CreateEnvironmentResult & WithVersionLabel(VersionLabelT &&value)
CreateEnvironmentResult & WithHealthStatus(EnvironmentHealthStatus value)
CreateEnvironmentResult & WithSolutionStackName(SolutionStackNameT &&value)
CreateEnvironmentResult & WithDescription(DescriptionT &&value)
const EnvironmentResourcesDescription & GetResources() const
CreateEnvironmentResult & WithResources(ResourcesT &&value)
AWS_ELASTICBEANSTALK_API CreateEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateEnvironmentResult & WithOperationsRole(OperationsRoleT &&value)
CreateEnvironmentResult & WithEndpointURL(EndpointURLT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument