AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateEnvironmentResult.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/elasticbeanstalk/model/EnvironmentStatus.h>
11#include <aws/elasticbeanstalk/model/EnvironmentHealth.h>
12#include <aws/elasticbeanstalk/model/EnvironmentHealthStatus.h>
13#include <aws/elasticbeanstalk/model/EnvironmentResourcesDescription.h>
14#include <aws/elasticbeanstalk/model/EnvironmentTier.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/elasticbeanstalk/model/ResponseMetadata.h>
17#include <aws/elasticbeanstalk/model/EnvironmentLink.h>
18#include <utility>
19
20namespace Aws
21{
22template<typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils
26{
27namespace Xml
28{
29 class XmlDocument;
30} // namespace Xml
31} // namespace Utils
32namespace ElasticBeanstalk
33{
34namespace Model
35{
42 {
43 public:
44 AWS_ELASTICBEANSTALK_API CreateEnvironmentResult() = default;
47
48
50
53 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
54 template<typename EnvironmentNameT = Aws::String>
55 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
56 template<typename EnvironmentNameT = Aws::String>
57 CreateEnvironmentResult& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
65 template<typename EnvironmentIdT = Aws::String>
66 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
67 template<typename EnvironmentIdT = Aws::String>
68 CreateEnvironmentResult& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
76 template<typename ApplicationNameT = Aws::String>
77 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
78 template<typename ApplicationNameT = Aws::String>
79 CreateEnvironmentResult& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
81
83
86 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
87 template<typename VersionLabelT = Aws::String>
88 void SetVersionLabel(VersionLabelT&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::forward<VersionLabelT>(value); }
89 template<typename VersionLabelT = Aws::String>
90 CreateEnvironmentResult& WithVersionLabel(VersionLabelT&& value) { SetVersionLabel(std::forward<VersionLabelT>(value)); return *this;}
92
94
98 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
99 template<typename SolutionStackNameT = Aws::String>
100 void SetSolutionStackName(SolutionStackNameT&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = std::forward<SolutionStackNameT>(value); }
101 template<typename SolutionStackNameT = Aws::String>
102 CreateEnvironmentResult& WithSolutionStackName(SolutionStackNameT&& value) { SetSolutionStackName(std::forward<SolutionStackNameT>(value)); return *this;}
104
106
109 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
110 template<typename PlatformArnT = Aws::String>
111 void SetPlatformArn(PlatformArnT&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::forward<PlatformArnT>(value); }
112 template<typename PlatformArnT = Aws::String>
113 CreateEnvironmentResult& WithPlatformArn(PlatformArnT&& value) { SetPlatformArn(std::forward<PlatformArnT>(value)); return *this;}
115
117
121 inline const Aws::String& GetTemplateName() const { return m_templateName; }
122 template<typename TemplateNameT = Aws::String>
123 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
124 template<typename TemplateNameT = Aws::String>
125 CreateEnvironmentResult& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
127
129
132 inline const Aws::String& GetDescription() const { return m_description; }
133 template<typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
135 template<typename DescriptionT = Aws::String>
136 CreateEnvironmentResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
138
140
144 inline const Aws::String& GetEndpointURL() const { return m_endpointURL; }
145 template<typename EndpointURLT = Aws::String>
146 void SetEndpointURL(EndpointURLT&& value) { m_endpointURLHasBeenSet = true; m_endpointURL = std::forward<EndpointURLT>(value); }
147 template<typename EndpointURLT = Aws::String>
148 CreateEnvironmentResult& WithEndpointURL(EndpointURLT&& value) { SetEndpointURL(std::forward<EndpointURLT>(value)); return *this;}
150
152
155 inline const Aws::String& GetCNAME() const { return m_cNAME; }
156 template<typename CNAMET = Aws::String>
157 void SetCNAME(CNAMET&& value) { m_cNAMEHasBeenSet = true; m_cNAME = std::forward<CNAMET>(value); }
158 template<typename CNAMET = Aws::String>
159 CreateEnvironmentResult& WithCNAME(CNAMET&& value) { SetCNAME(std::forward<CNAMET>(value)); return *this;}
161
163
166 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
167 template<typename DateCreatedT = Aws::Utils::DateTime>
168 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
169 template<typename DateCreatedT = Aws::Utils::DateTime>
170 CreateEnvironmentResult& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
172
174
177 inline const Aws::Utils::DateTime& GetDateUpdated() const { return m_dateUpdated; }
178 template<typename DateUpdatedT = Aws::Utils::DateTime>
179 void SetDateUpdated(DateUpdatedT&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = std::forward<DateUpdatedT>(value); }
180 template<typename DateUpdatedT = Aws::Utils::DateTime>
181 CreateEnvironmentResult& WithDateUpdated(DateUpdatedT&& value) { SetDateUpdated(std::forward<DateUpdatedT>(value)); return *this;}
183
185
195 inline EnvironmentStatus GetStatus() const { return m_status; }
196 inline void SetStatus(EnvironmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
197 inline CreateEnvironmentResult& WithStatus(EnvironmentStatus value) { SetStatus(value); return *this;}
199
201
207 inline bool GetAbortableOperationInProgress() const { return m_abortableOperationInProgress; }
208 inline void SetAbortableOperationInProgress(bool value) { m_abortableOperationInProgressHasBeenSet = true; m_abortableOperationInProgress = value; }
211
213
227 inline EnvironmentHealth GetHealth() const { return m_health; }
228 inline void SetHealth(EnvironmentHealth value) { m_healthHasBeenSet = true; m_health = value; }
229 inline CreateEnvironmentResult& WithHealth(EnvironmentHealth value) { SetHealth(value); return *this;}
231
233
239 inline EnvironmentHealthStatus GetHealthStatus() const { return m_healthStatus; }
240 inline void SetHealthStatus(EnvironmentHealthStatus value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
243
245
248 inline const EnvironmentResourcesDescription& GetResources() const { return m_resources; }
249 template<typename ResourcesT = EnvironmentResourcesDescription>
250 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
251 template<typename ResourcesT = EnvironmentResourcesDescription>
252 CreateEnvironmentResult& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
254
256
259 inline const EnvironmentTier& GetTier() const { return m_tier; }
260 template<typename TierT = EnvironmentTier>
261 void SetTier(TierT&& value) { m_tierHasBeenSet = true; m_tier = std::forward<TierT>(value); }
262 template<typename TierT = EnvironmentTier>
263 CreateEnvironmentResult& WithTier(TierT&& value) { SetTier(std::forward<TierT>(value)); return *this;}
265
267
270 inline const Aws::Vector<EnvironmentLink>& GetEnvironmentLinks() const { return m_environmentLinks; }
271 template<typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
272 void SetEnvironmentLinks(EnvironmentLinksT&& value) { m_environmentLinksHasBeenSet = true; m_environmentLinks = std::forward<EnvironmentLinksT>(value); }
273 template<typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
274 CreateEnvironmentResult& WithEnvironmentLinks(EnvironmentLinksT&& value) { SetEnvironmentLinks(std::forward<EnvironmentLinksT>(value)); return *this;}
275 template<typename EnvironmentLinksT = EnvironmentLink>
276 CreateEnvironmentResult& AddEnvironmentLinks(EnvironmentLinksT&& value) { m_environmentLinksHasBeenSet = true; m_environmentLinks.emplace_back(std::forward<EnvironmentLinksT>(value)); return *this; }
278
280
284 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
285 template<typename EnvironmentArnT = Aws::String>
286 void SetEnvironmentArn(EnvironmentArnT&& value) { m_environmentArnHasBeenSet = true; m_environmentArn = std::forward<EnvironmentArnT>(value); }
287 template<typename EnvironmentArnT = Aws::String>
288 CreateEnvironmentResult& WithEnvironmentArn(EnvironmentArnT&& value) { SetEnvironmentArn(std::forward<EnvironmentArnT>(value)); return *this;}
290
292
298 inline const Aws::String& GetOperationsRole() const { return m_operationsRole; }
299 template<typename OperationsRoleT = Aws::String>
300 void SetOperationsRole(OperationsRoleT&& value) { m_operationsRoleHasBeenSet = true; m_operationsRole = std::forward<OperationsRoleT>(value); }
301 template<typename OperationsRoleT = Aws::String>
302 CreateEnvironmentResult& WithOperationsRole(OperationsRoleT&& value) { SetOperationsRole(std::forward<OperationsRoleT>(value)); return *this;}
304
306
307 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
308 template<typename ResponseMetadataT = ResponseMetadata>
309 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
310 template<typename ResponseMetadataT = ResponseMetadata>
311 CreateEnvironmentResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
313 private:
314
315 Aws::String m_environmentName;
316 bool m_environmentNameHasBeenSet = false;
317
318 Aws::String m_environmentId;
319 bool m_environmentIdHasBeenSet = false;
320
321 Aws::String m_applicationName;
322 bool m_applicationNameHasBeenSet = false;
323
324 Aws::String m_versionLabel;
325 bool m_versionLabelHasBeenSet = false;
326
327 Aws::String m_solutionStackName;
328 bool m_solutionStackNameHasBeenSet = false;
329
330 Aws::String m_platformArn;
331 bool m_platformArnHasBeenSet = false;
332
333 Aws::String m_templateName;
334 bool m_templateNameHasBeenSet = false;
335
336 Aws::String m_description;
337 bool m_descriptionHasBeenSet = false;
338
339 Aws::String m_endpointURL;
340 bool m_endpointURLHasBeenSet = false;
341
342 Aws::String m_cNAME;
343 bool m_cNAMEHasBeenSet = false;
344
345 Aws::Utils::DateTime m_dateCreated{};
346 bool m_dateCreatedHasBeenSet = false;
347
348 Aws::Utils::DateTime m_dateUpdated{};
349 bool m_dateUpdatedHasBeenSet = false;
350
352 bool m_statusHasBeenSet = false;
353
354 bool m_abortableOperationInProgress{false};
355 bool m_abortableOperationInProgressHasBeenSet = false;
356
358 bool m_healthHasBeenSet = false;
359
361 bool m_healthStatusHasBeenSet = false;
362
363 EnvironmentResourcesDescription m_resources;
364 bool m_resourcesHasBeenSet = false;
365
366 EnvironmentTier m_tier;
367 bool m_tierHasBeenSet = false;
368
369 Aws::Vector<EnvironmentLink> m_environmentLinks;
370 bool m_environmentLinksHasBeenSet = false;
371
372 Aws::String m_environmentArn;
373 bool m_environmentArnHasBeenSet = false;
374
375 Aws::String m_operationsRole;
376 bool m_operationsRoleHasBeenSet = false;
377
378 ResponseMetadata m_responseMetadata;
379 bool m_responseMetadataHasBeenSet = false;
380 };
381
382} // namespace Model
383} // namespace ElasticBeanstalk
384} // 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