AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetEnvironmentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/ConfigurableEnvironmentAction.h>
13#include <aws/datazone/model/CustomParameter.h>
14#include <aws/datazone/model/Deployment.h>
15#include <aws/datazone/model/DeploymentProperties.h>
16#include <aws/datazone/model/EnvironmentStatus.h>
17#include <aws/datazone/model/ProvisioningProperties.h>
18#include <aws/datazone/model/Resource.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace DataZone {
32namespace Model {
34 public:
35 AWS_DATAZONE_API GetEnvironmentResult() = default;
38
40
44 inline const Aws::String& GetProjectId() const { return m_projectId; }
45 template <typename ProjectIdT = Aws::String>
46 void SetProjectId(ProjectIdT&& value) {
47 m_projectIdHasBeenSet = true;
48 m_projectId = std::forward<ProjectIdT>(value);
49 }
50 template <typename ProjectIdT = Aws::String>
51 GetEnvironmentResult& WithProjectId(ProjectIdT&& value) {
52 SetProjectId(std::forward<ProjectIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDomainId() const { return m_domainId; }
79 template <typename DomainIdT = Aws::String>
80 void SetDomainId(DomainIdT&& value) {
81 m_domainIdHasBeenSet = true;
82 m_domainId = std::forward<DomainIdT>(value);
83 }
84 template <typename DomainIdT = Aws::String>
85 GetEnvironmentResult& WithDomainId(DomainIdT&& value) {
86 SetDomainId(std::forward<DomainIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
96 template <typename CreatedByT = Aws::String>
97 void SetCreatedBy(CreatedByT&& value) {
98 m_createdByHasBeenSet = true;
99 m_createdBy = std::forward<CreatedByT>(value);
100 }
101 template <typename CreatedByT = Aws::String>
102 GetEnvironmentResult& WithCreatedBy(CreatedByT&& value) {
103 SetCreatedBy(std::forward<CreatedByT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
113 template <typename CreatedAtT = Aws::Utils::DateTime>
114 void SetCreatedAt(CreatedAtT&& value) {
115 m_createdAtHasBeenSet = true;
116 m_createdAt = std::forward<CreatedAtT>(value);
117 }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 GetEnvironmentResult& WithCreatedAt(CreatedAtT&& value) {
120 SetCreatedAt(std::forward<CreatedAtT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
130 template <typename UpdatedAtT = Aws::Utils::DateTime>
131 void SetUpdatedAt(UpdatedAtT&& value) {
132 m_updatedAtHasBeenSet = true;
133 m_updatedAt = std::forward<UpdatedAtT>(value);
134 }
135 template <typename UpdatedAtT = Aws::Utils::DateTime>
136 GetEnvironmentResult& WithUpdatedAt(UpdatedAtT&& value) {
137 SetUpdatedAt(std::forward<UpdatedAtT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetName() const { return m_name; }
147 template <typename NameT = Aws::String>
148 void SetName(NameT&& value) {
149 m_nameHasBeenSet = true;
150 m_name = std::forward<NameT>(value);
151 }
152 template <typename NameT = Aws::String>
154 SetName(std::forward<NameT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetDescription() const { return m_description; }
164 template <typename DescriptionT = Aws::String>
165 void SetDescription(DescriptionT&& value) {
166 m_descriptionHasBeenSet = true;
167 m_description = std::forward<DescriptionT>(value);
168 }
169 template <typename DescriptionT = Aws::String>
170 GetEnvironmentResult& WithDescription(DescriptionT&& value) {
171 SetDescription(std::forward<DescriptionT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetEnvironmentProfileId() const { return m_environmentProfileId; }
181 template <typename EnvironmentProfileIdT = Aws::String>
182 void SetEnvironmentProfileId(EnvironmentProfileIdT&& value) {
183 m_environmentProfileIdHasBeenSet = true;
184 m_environmentProfileId = std::forward<EnvironmentProfileIdT>(value);
185 }
186 template <typename EnvironmentProfileIdT = Aws::String>
187 GetEnvironmentResult& WithEnvironmentProfileId(EnvironmentProfileIdT&& value) {
188 SetEnvironmentProfileId(std::forward<EnvironmentProfileIdT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
198 template <typename AwsAccountIdT = Aws::String>
199 void SetAwsAccountId(AwsAccountIdT&& value) {
200 m_awsAccountIdHasBeenSet = true;
201 m_awsAccountId = std::forward<AwsAccountIdT>(value);
202 }
203 template <typename AwsAccountIdT = Aws::String>
204 GetEnvironmentResult& WithAwsAccountId(AwsAccountIdT&& value) {
205 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetAwsAccountRegion() const { return m_awsAccountRegion; }
215 template <typename AwsAccountRegionT = Aws::String>
216 void SetAwsAccountRegion(AwsAccountRegionT&& value) {
217 m_awsAccountRegionHasBeenSet = true;
218 m_awsAccountRegion = std::forward<AwsAccountRegionT>(value);
219 }
220 template <typename AwsAccountRegionT = Aws::String>
221 GetEnvironmentResult& WithAwsAccountRegion(AwsAccountRegionT&& value) {
222 SetAwsAccountRegion(std::forward<AwsAccountRegionT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::String& GetProvider() const { return m_provider; }
232 template <typename ProviderT = Aws::String>
233 void SetProvider(ProviderT&& value) {
234 m_providerHasBeenSet = true;
235 m_provider = std::forward<ProviderT>(value);
236 }
237 template <typename ProviderT = Aws::String>
238 GetEnvironmentResult& WithProvider(ProviderT&& value) {
239 SetProvider(std::forward<ProviderT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Vector<Resource>& GetProvisionedResources() const { return m_provisionedResources; }
249 template <typename ProvisionedResourcesT = Aws::Vector<Resource>>
250 void SetProvisionedResources(ProvisionedResourcesT&& value) {
251 m_provisionedResourcesHasBeenSet = true;
252 m_provisionedResources = std::forward<ProvisionedResourcesT>(value);
253 }
254 template <typename ProvisionedResourcesT = Aws::Vector<Resource>>
255 GetEnvironmentResult& WithProvisionedResources(ProvisionedResourcesT&& value) {
256 SetProvisionedResources(std::forward<ProvisionedResourcesT>(value));
257 return *this;
258 }
259 template <typename ProvisionedResourcesT = Resource>
260 GetEnvironmentResult& AddProvisionedResources(ProvisionedResourcesT&& value) {
261 m_provisionedResourcesHasBeenSet = true;
262 m_provisionedResources.emplace_back(std::forward<ProvisionedResourcesT>(value));
263 return *this;
264 }
266
268
271 inline EnvironmentStatus GetStatus() const { return m_status; }
272 inline void SetStatus(EnvironmentStatus value) {
273 m_statusHasBeenSet = true;
274 m_status = value;
275 }
277 SetStatus(value);
278 return *this;
279 }
281
283
286 inline const Aws::Vector<ConfigurableEnvironmentAction>& GetEnvironmentActions() const { return m_environmentActions; }
287 template <typename EnvironmentActionsT = Aws::Vector<ConfigurableEnvironmentAction>>
288 void SetEnvironmentActions(EnvironmentActionsT&& value) {
289 m_environmentActionsHasBeenSet = true;
290 m_environmentActions = std::forward<EnvironmentActionsT>(value);
291 }
292 template <typename EnvironmentActionsT = Aws::Vector<ConfigurableEnvironmentAction>>
293 GetEnvironmentResult& WithEnvironmentActions(EnvironmentActionsT&& value) {
294 SetEnvironmentActions(std::forward<EnvironmentActionsT>(value));
295 return *this;
296 }
297 template <typename EnvironmentActionsT = ConfigurableEnvironmentAction>
298 GetEnvironmentResult& AddEnvironmentActions(EnvironmentActionsT&& value) {
299 m_environmentActionsHasBeenSet = true;
300 m_environmentActions.emplace_back(std::forward<EnvironmentActionsT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
310 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
311 void SetGlossaryTerms(GlossaryTermsT&& value) {
312 m_glossaryTermsHasBeenSet = true;
313 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
314 }
315 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
316 GetEnvironmentResult& WithGlossaryTerms(GlossaryTermsT&& value) {
317 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
318 return *this;
319 }
320 template <typename GlossaryTermsT = Aws::String>
321 GetEnvironmentResult& AddGlossaryTerms(GlossaryTermsT&& value) {
322 m_glossaryTermsHasBeenSet = true;
323 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::Vector<CustomParameter>& GetUserParameters() const { return m_userParameters; }
333 template <typename UserParametersT = Aws::Vector<CustomParameter>>
334 void SetUserParameters(UserParametersT&& value) {
335 m_userParametersHasBeenSet = true;
336 m_userParameters = std::forward<UserParametersT>(value);
337 }
338 template <typename UserParametersT = Aws::Vector<CustomParameter>>
339 GetEnvironmentResult& WithUserParameters(UserParametersT&& value) {
340 SetUserParameters(std::forward<UserParametersT>(value));
341 return *this;
342 }
343 template <typename UserParametersT = CustomParameter>
344 GetEnvironmentResult& AddUserParameters(UserParametersT&& value) {
345 m_userParametersHasBeenSet = true;
346 m_userParameters.emplace_back(std::forward<UserParametersT>(value));
347 return *this;
348 }
350
352
355 inline const Deployment& GetLastDeployment() const { return m_lastDeployment; }
356 template <typename LastDeploymentT = Deployment>
357 void SetLastDeployment(LastDeploymentT&& value) {
358 m_lastDeploymentHasBeenSet = true;
359 m_lastDeployment = std::forward<LastDeploymentT>(value);
360 }
361 template <typename LastDeploymentT = Deployment>
362 GetEnvironmentResult& WithLastDeployment(LastDeploymentT&& value) {
363 SetLastDeployment(std::forward<LastDeploymentT>(value));
364 return *this;
365 }
367
369
372 inline const ProvisioningProperties& GetProvisioningProperties() const { return m_provisioningProperties; }
373 template <typename ProvisioningPropertiesT = ProvisioningProperties>
374 void SetProvisioningProperties(ProvisioningPropertiesT&& value) {
375 m_provisioningPropertiesHasBeenSet = true;
376 m_provisioningProperties = std::forward<ProvisioningPropertiesT>(value);
377 }
378 template <typename ProvisioningPropertiesT = ProvisioningProperties>
379 GetEnvironmentResult& WithProvisioningProperties(ProvisioningPropertiesT&& value) {
380 SetProvisioningProperties(std::forward<ProvisioningPropertiesT>(value));
381 return *this;
382 }
384
386
389 inline const DeploymentProperties& GetDeploymentProperties() const { return m_deploymentProperties; }
390 template <typename DeploymentPropertiesT = DeploymentProperties>
391 void SetDeploymentProperties(DeploymentPropertiesT&& value) {
392 m_deploymentPropertiesHasBeenSet = true;
393 m_deploymentProperties = std::forward<DeploymentPropertiesT>(value);
394 }
395 template <typename DeploymentPropertiesT = DeploymentProperties>
396 GetEnvironmentResult& WithDeploymentProperties(DeploymentPropertiesT&& value) {
397 SetDeploymentProperties(std::forward<DeploymentPropertiesT>(value));
398 return *this;
399 }
401
403
406 inline const Aws::String& GetEnvironmentBlueprintId() const { return m_environmentBlueprintId; }
407 template <typename EnvironmentBlueprintIdT = Aws::String>
408 void SetEnvironmentBlueprintId(EnvironmentBlueprintIdT&& value) {
409 m_environmentBlueprintIdHasBeenSet = true;
410 m_environmentBlueprintId = std::forward<EnvironmentBlueprintIdT>(value);
411 }
412 template <typename EnvironmentBlueprintIdT = Aws::String>
413 GetEnvironmentResult& WithEnvironmentBlueprintId(EnvironmentBlueprintIdT&& value) {
414 SetEnvironmentBlueprintId(std::forward<EnvironmentBlueprintIdT>(value));
415 return *this;
416 }
418
420
423 inline const Aws::String& GetEnvironmentConfigurationId() const { return m_environmentConfigurationId; }
424 template <typename EnvironmentConfigurationIdT = Aws::String>
425 void SetEnvironmentConfigurationId(EnvironmentConfigurationIdT&& value) {
426 m_environmentConfigurationIdHasBeenSet = true;
427 m_environmentConfigurationId = std::forward<EnvironmentConfigurationIdT>(value);
428 }
429 template <typename EnvironmentConfigurationIdT = Aws::String>
430 GetEnvironmentResult& WithEnvironmentConfigurationId(EnvironmentConfigurationIdT&& value) {
431 SetEnvironmentConfigurationId(std::forward<EnvironmentConfigurationIdT>(value));
432 return *this;
433 }
435
437
440 inline const Aws::String& GetEnvironmentConfigurationName() const { return m_environmentConfigurationName; }
441 template <typename EnvironmentConfigurationNameT = Aws::String>
442 void SetEnvironmentConfigurationName(EnvironmentConfigurationNameT&& value) {
443 m_environmentConfigurationNameHasBeenSet = true;
444 m_environmentConfigurationName = std::forward<EnvironmentConfigurationNameT>(value);
445 }
446 template <typename EnvironmentConfigurationNameT = Aws::String>
447 GetEnvironmentResult& WithEnvironmentConfigurationName(EnvironmentConfigurationNameT&& value) {
448 SetEnvironmentConfigurationName(std::forward<EnvironmentConfigurationNameT>(value));
449 return *this;
450 }
452
454
455 inline const Aws::String& GetRequestId() const { return m_requestId; }
456 template <typename RequestIdT = Aws::String>
457 void SetRequestId(RequestIdT&& value) {
458 m_requestIdHasBeenSet = true;
459 m_requestId = std::forward<RequestIdT>(value);
460 }
461 template <typename RequestIdT = Aws::String>
462 GetEnvironmentResult& WithRequestId(RequestIdT&& value) {
463 SetRequestId(std::forward<RequestIdT>(value));
464 return *this;
465 }
467 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
468
469 private:
470 Aws::String m_projectId;
471
472 Aws::String m_id;
473
474 Aws::String m_domainId;
475
476 Aws::String m_createdBy;
477
478 Aws::Utils::DateTime m_createdAt{};
479
480 Aws::Utils::DateTime m_updatedAt{};
481
482 Aws::String m_name;
483
484 Aws::String m_description;
485
486 Aws::String m_environmentProfileId;
487
488 Aws::String m_awsAccountId;
489
490 Aws::String m_awsAccountRegion;
491
492 Aws::String m_provider;
493
494 Aws::Vector<Resource> m_provisionedResources;
495
497
499
500 Aws::Vector<Aws::String> m_glossaryTerms;
501
502 Aws::Vector<CustomParameter> m_userParameters;
503
504 Deployment m_lastDeployment;
505
506 ProvisioningProperties m_provisioningProperties;
507
508 DeploymentProperties m_deploymentProperties;
509
510 Aws::String m_environmentBlueprintId;
511
512 Aws::String m_environmentConfigurationId;
513
514 Aws::String m_environmentConfigurationName;
515
516 Aws::String m_requestId;
517 Aws::Http::HttpResponseCode m_HttpResponseCode;
518 bool m_projectIdHasBeenSet = false;
519 bool m_idHasBeenSet = false;
520 bool m_domainIdHasBeenSet = false;
521 bool m_createdByHasBeenSet = false;
522 bool m_createdAtHasBeenSet = false;
523 bool m_updatedAtHasBeenSet = false;
524 bool m_nameHasBeenSet = false;
525 bool m_descriptionHasBeenSet = false;
526 bool m_environmentProfileIdHasBeenSet = false;
527 bool m_awsAccountIdHasBeenSet = false;
528 bool m_awsAccountRegionHasBeenSet = false;
529 bool m_providerHasBeenSet = false;
530 bool m_provisionedResourcesHasBeenSet = false;
531 bool m_statusHasBeenSet = false;
532 bool m_environmentActionsHasBeenSet = false;
533 bool m_glossaryTermsHasBeenSet = false;
534 bool m_userParametersHasBeenSet = false;
535 bool m_lastDeploymentHasBeenSet = false;
536 bool m_provisioningPropertiesHasBeenSet = false;
537 bool m_deploymentPropertiesHasBeenSet = false;
538 bool m_environmentBlueprintIdHasBeenSet = false;
539 bool m_environmentConfigurationIdHasBeenSet = false;
540 bool m_environmentConfigurationNameHasBeenSet = false;
541 bool m_requestIdHasBeenSet = false;
542};
543
544} // namespace Model
545} // namespace DataZone
546} // namespace Aws
GetEnvironmentResult & AddGlossaryTerms(GlossaryTermsT &&value)
void SetEnvironmentProfileId(EnvironmentProfileIdT &&value)
GetEnvironmentResult & WithCreatedBy(CreatedByT &&value)
GetEnvironmentResult & WithAwsAccountId(AwsAccountIdT &&value)
GetEnvironmentResult & AddUserParameters(UserParametersT &&value)
void SetEnvironmentConfigurationName(EnvironmentConfigurationNameT &&value)
GetEnvironmentResult & WithEnvironmentBlueprintId(EnvironmentBlueprintIdT &&value)
const Aws::String & GetEnvironmentBlueprintId() const
GetEnvironmentResult & WithProvisioningProperties(ProvisioningPropertiesT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetEnvironmentResult & WithDomainId(DomainIdT &&value)
GetEnvironmentResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetEnvironmentConfigurationId() const
GetEnvironmentResult & WithAwsAccountRegion(AwsAccountRegionT &&value)
void SetEnvironmentBlueprintId(EnvironmentBlueprintIdT &&value)
const Aws::String & GetEnvironmentProfileId() const
GetEnvironmentResult & WithId(IdT &&value)
GetEnvironmentResult & WithEnvironmentConfigurationName(EnvironmentConfigurationNameT &&value)
GetEnvironmentResult & WithProvisionedResources(ProvisionedResourcesT &&value)
GetEnvironmentResult & AddEnvironmentActions(EnvironmentActionsT &&value)
const ProvisioningProperties & GetProvisioningProperties() const
GetEnvironmentResult & WithEnvironmentConfigurationId(EnvironmentConfigurationIdT &&value)
GetEnvironmentResult & WithUserParameters(UserParametersT &&value)
const Aws::Vector< ConfigurableEnvironmentAction > & GetEnvironmentActions() const
void SetDeploymentProperties(DeploymentPropertiesT &&value)
GetEnvironmentResult & AddProvisionedResources(ProvisionedResourcesT &&value)
const Aws::Vector< CustomParameter > & GetUserParameters() const
void SetEnvironmentActions(EnvironmentActionsT &&value)
GetEnvironmentResult & WithCreatedAt(CreatedAtT &&value)
GetEnvironmentResult & WithDescription(DescriptionT &&value)
void SetEnvironmentConfigurationId(EnvironmentConfigurationIdT &&value)
const Aws::Vector< Resource > & GetProvisionedResources() const
const DeploymentProperties & GetDeploymentProperties() const
void SetLastDeployment(LastDeploymentT &&value)
GetEnvironmentResult & WithProjectId(ProjectIdT &&value)
GetEnvironmentResult & WithGlossaryTerms(GlossaryTermsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetAwsAccountRegion(AwsAccountRegionT &&value)
GetEnvironmentResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API GetEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetProvisioningProperties(ProvisioningPropertiesT &&value)
GetEnvironmentResult & WithLastDeployment(LastDeploymentT &&value)
GetEnvironmentResult & WithStatus(EnvironmentStatus value)
void SetUserParameters(UserParametersT &&value)
GetEnvironmentResult & WithProvider(ProviderT &&value)
GetEnvironmentResult & WithEnvironmentProfileId(EnvironmentProfileIdT &&value)
AWS_DATAZONE_API GetEnvironmentResult()=default
GetEnvironmentResult & WithDeploymentProperties(DeploymentPropertiesT &&value)
GetEnvironmentResult & WithName(NameT &&value)
GetEnvironmentResult & WithEnvironmentActions(EnvironmentActionsT &&value)
const Aws::String & GetEnvironmentConfigurationName() const
AWS_DATAZONE_API GetEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetProvisionedResources(ProvisionedResourcesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue