AWS SDK for C++

AWS SDK for C++ Version 1.11.796

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/core/utils/memory/stl/AWSVector.h>
10#include <aws/evs/EVS_EXPORTS.h>
11#include <aws/evs/model/Check.h>
12#include <aws/evs/model/CheckResult.h>
13#include <aws/evs/model/ConnectivityInfo.h>
14#include <aws/evs/model/EnvironmentState.h>
15#include <aws/evs/model/LicenseInfo.h>
16#include <aws/evs/model/Secret.h>
17#include <aws/evs/model/ServiceAccessSecurityGroups.h>
18#include <aws/evs/model/VcfHostnames.h>
19#include <aws/evs/model/VcfVersion.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace EVS {
31namespace Model {
32
39 public:
40 AWS_EVS_API Environment() = default;
44
46
49 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
50 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
51 template <typename EnvironmentIdT = Aws::String>
52 void SetEnvironmentId(EnvironmentIdT&& value) {
53 m_environmentIdHasBeenSet = true;
54 m_environmentId = std::forward<EnvironmentIdT>(value);
55 }
56 template <typename EnvironmentIdT = Aws::String>
57 Environment& WithEnvironmentId(EnvironmentIdT&& value) {
58 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
59 return *this;
60 }
62
64
67 inline EnvironmentState GetEnvironmentState() const { return m_environmentState; }
68 inline bool EnvironmentStateHasBeenSet() const { return m_environmentStateHasBeenSet; }
70 m_environmentStateHasBeenSet = true;
71 m_environmentState = value;
72 }
75 return *this;
76 }
78
80
84 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
85 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
86 template <typename StateDetailsT = Aws::String>
87 void SetStateDetails(StateDetailsT&& value) {
88 m_stateDetailsHasBeenSet = true;
89 m_stateDetails = std::forward<StateDetailsT>(value);
90 }
91 template <typename StateDetailsT = Aws::String>
92 Environment& WithStateDetails(StateDetailsT&& value) {
93 SetStateDetails(std::forward<StateDetailsT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
103 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
104 template <typename CreatedAtT = Aws::Utils::DateTime>
105 void SetCreatedAt(CreatedAtT&& value) {
106 m_createdAtHasBeenSet = true;
107 m_createdAt = std::forward<CreatedAtT>(value);
108 }
109 template <typename CreatedAtT = Aws::Utils::DateTime>
110 Environment& WithCreatedAt(CreatedAtT&& value) {
111 SetCreatedAt(std::forward<CreatedAtT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
121 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
122 template <typename ModifiedAtT = Aws::Utils::DateTime>
123 void SetModifiedAt(ModifiedAtT&& value) {
124 m_modifiedAtHasBeenSet = true;
125 m_modifiedAt = std::forward<ModifiedAtT>(value);
126 }
127 template <typename ModifiedAtT = Aws::Utils::DateTime>
128 Environment& WithModifiedAt(ModifiedAtT&& value) {
129 SetModifiedAt(std::forward<ModifiedAtT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
139 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
140 template <typename EnvironmentArnT = Aws::String>
141 void SetEnvironmentArn(EnvironmentArnT&& value) {
142 m_environmentArnHasBeenSet = true;
143 m_environmentArn = std::forward<EnvironmentArnT>(value);
144 }
145 template <typename EnvironmentArnT = Aws::String>
146 Environment& WithEnvironmentArn(EnvironmentArnT&& value) {
147 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
157 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
158 template <typename EnvironmentNameT = Aws::String>
159 void SetEnvironmentName(EnvironmentNameT&& value) {
160 m_environmentNameHasBeenSet = true;
161 m_environmentName = std::forward<EnvironmentNameT>(value);
162 }
163 template <typename EnvironmentNameT = Aws::String>
164 Environment& WithEnvironmentName(EnvironmentNameT&& value) {
165 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetVpcId() const { return m_vpcId; }
175 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
176 template <typename VpcIdT = Aws::String>
177 void SetVpcId(VpcIdT&& value) {
178 m_vpcIdHasBeenSet = true;
179 m_vpcId = std::forward<VpcIdT>(value);
180 }
181 template <typename VpcIdT = Aws::String>
182 Environment& WithVpcId(VpcIdT&& value) {
183 SetVpcId(std::forward<VpcIdT>(value));
184 return *this;
185 }
187
189
194 inline const Aws::String& GetServiceAccessSubnetId() const { return m_serviceAccessSubnetId; }
195 inline bool ServiceAccessSubnetIdHasBeenSet() const { return m_serviceAccessSubnetIdHasBeenSet; }
196 template <typename ServiceAccessSubnetIdT = Aws::String>
197 void SetServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) {
198 m_serviceAccessSubnetIdHasBeenSet = true;
199 m_serviceAccessSubnetId = std::forward<ServiceAccessSubnetIdT>(value);
200 }
201 template <typename ServiceAccessSubnetIdT = Aws::String>
202 Environment& WithServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) {
203 SetServiceAccessSubnetId(std::forward<ServiceAccessSubnetIdT>(value));
204 return *this;
205 }
207
209
212 inline VcfVersion GetVcfVersion() const { return m_vcfVersion; }
213 inline bool VcfVersionHasBeenSet() const { return m_vcfVersionHasBeenSet; }
214 inline void SetVcfVersion(VcfVersion value) {
215 m_vcfVersionHasBeenSet = true;
216 m_vcfVersion = value;
217 }
219 SetVcfVersion(value);
220 return *this;
221 }
223
225
233 inline bool GetTermsAccepted() const { return m_termsAccepted; }
234 inline bool TermsAcceptedHasBeenSet() const { return m_termsAcceptedHasBeenSet; }
235 inline void SetTermsAccepted(bool value) {
236 m_termsAcceptedHasBeenSet = true;
237 m_termsAccepted = value;
238 }
239 inline Environment& WithTermsAccepted(bool value) {
240 SetTermsAccepted(value);
241 return *this;
242 }
244
246
255 inline const Aws::Vector<LicenseInfo>& GetLicenseInfo() const { return m_licenseInfo; }
256 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
257 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
258 void SetLicenseInfo(LicenseInfoT&& value) {
259 m_licenseInfoHasBeenSet = true;
260 m_licenseInfo = std::forward<LicenseInfoT>(value);
261 }
262 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
263 Environment& WithLicenseInfo(LicenseInfoT&& value) {
264 SetLicenseInfo(std::forward<LicenseInfoT>(value));
265 return *this;
266 }
267 template <typename LicenseInfoT = LicenseInfo>
268 Environment& AddLicenseInfo(LicenseInfoT&& value) {
269 m_licenseInfoHasBeenSet = true;
270 m_licenseInfo.emplace_back(std::forward<LicenseInfoT>(value));
271 return *this;
272 }
274
276
281 inline const Aws::String& GetSiteId() const { return m_siteId; }
282 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
283 template <typename SiteIdT = Aws::String>
284 void SetSiteId(SiteIdT&& value) {
285 m_siteIdHasBeenSet = true;
286 m_siteId = std::forward<SiteIdT>(value);
287 }
288 template <typename SiteIdT = Aws::String>
289 Environment& WithSiteId(SiteIdT&& value) {
290 SetSiteId(std::forward<SiteIdT>(value));
291 return *this;
292 }
294
296
300 inline CheckResult GetEnvironmentStatus() const { return m_environmentStatus; }
301 inline bool EnvironmentStatusHasBeenSet() const { return m_environmentStatusHasBeenSet; }
303 m_environmentStatusHasBeenSet = true;
304 m_environmentStatus = value;
305 }
308 return *this;
309 }
311
313
317 inline const Aws::Vector<Check>& GetChecks() const { return m_checks; }
318 inline bool ChecksHasBeenSet() const { return m_checksHasBeenSet; }
319 template <typename ChecksT = Aws::Vector<Check>>
320 void SetChecks(ChecksT&& value) {
321 m_checksHasBeenSet = true;
322 m_checks = std::forward<ChecksT>(value);
323 }
324 template <typename ChecksT = Aws::Vector<Check>>
325 Environment& WithChecks(ChecksT&& value) {
326 SetChecks(std::forward<ChecksT>(value));
327 return *this;
328 }
329 template <typename ChecksT = Check>
330 Environment& AddChecks(ChecksT&& value) {
331 m_checksHasBeenSet = true;
332 m_checks.emplace_back(std::forward<ChecksT>(value));
333 return *this;
334 }
336
338
344 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
345 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
346 template <typename ConnectivityInfoT = ConnectivityInfo>
347 void SetConnectivityInfo(ConnectivityInfoT&& value) {
348 m_connectivityInfoHasBeenSet = true;
349 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
350 }
351 template <typename ConnectivityInfoT = ConnectivityInfo>
352 Environment& WithConnectivityInfo(ConnectivityInfoT&& value) {
353 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
354 return *this;
355 }
357
359
366 inline const VcfHostnames& GetVcfHostnames() const { return m_vcfHostnames; }
367 inline bool VcfHostnamesHasBeenSet() const { return m_vcfHostnamesHasBeenSet; }
368 template <typename VcfHostnamesT = VcfHostnames>
369 void SetVcfHostnames(VcfHostnamesT&& value) {
370 m_vcfHostnamesHasBeenSet = true;
371 m_vcfHostnames = std::forward<VcfHostnamesT>(value);
372 }
373 template <typename VcfHostnamesT = VcfHostnames>
374 Environment& WithVcfHostnames(VcfHostnamesT&& value) {
375 SetVcfHostnames(std::forward<VcfHostnamesT>(value));
376 return *this;
377 }
379
381
389 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
390 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
391 template <typename KmsKeyIdT = Aws::String>
392 void SetKmsKeyId(KmsKeyIdT&& value) {
393 m_kmsKeyIdHasBeenSet = true;
394 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
395 }
396 template <typename KmsKeyIdT = Aws::String>
397 Environment& WithKmsKeyId(KmsKeyIdT&& value) {
398 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
399 return *this;
400 }
402
404
409 inline const ServiceAccessSecurityGroups& GetServiceAccessSecurityGroups() const { return m_serviceAccessSecurityGroups; }
410 inline bool ServiceAccessSecurityGroupsHasBeenSet() const { return m_serviceAccessSecurityGroupsHasBeenSet; }
411 template <typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
412 void SetServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) {
413 m_serviceAccessSecurityGroupsHasBeenSet = true;
414 m_serviceAccessSecurityGroups = std::forward<ServiceAccessSecurityGroupsT>(value);
415 }
416 template <typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
417 Environment& WithServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) {
418 SetServiceAccessSecurityGroups(std::forward<ServiceAccessSecurityGroupsT>(value));
419 return *this;
420 }
422
424
429 inline const Aws::Vector<Secret>& GetCredentials() const { return m_credentials; }
430 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
431 template <typename CredentialsT = Aws::Vector<Secret>>
432 void SetCredentials(CredentialsT&& value) {
433 m_credentialsHasBeenSet = true;
434 m_credentials = std::forward<CredentialsT>(value);
435 }
436 template <typename CredentialsT = Aws::Vector<Secret>>
437 Environment& WithCredentials(CredentialsT&& value) {
438 SetCredentials(std::forward<CredentialsT>(value));
439 return *this;
440 }
441 template <typename CredentialsT = Secret>
442 Environment& AddCredentials(CredentialsT&& value) {
443 m_credentialsHasBeenSet = true;
444 m_credentials.emplace_back(std::forward<CredentialsT>(value));
445 return *this;
446 }
448 private:
449 Aws::String m_environmentId;
450
452
453 Aws::String m_stateDetails;
454
455 Aws::Utils::DateTime m_createdAt{};
456
457 Aws::Utils::DateTime m_modifiedAt{};
458
459 Aws::String m_environmentArn;
460
461 Aws::String m_environmentName;
462
463 Aws::String m_vpcId;
464
465 Aws::String m_serviceAccessSubnetId;
466
467 VcfVersion m_vcfVersion{VcfVersion::NOT_SET};
468
469 bool m_termsAccepted{false};
470
471 Aws::Vector<LicenseInfo> m_licenseInfo;
472
473 Aws::String m_siteId;
474
475 CheckResult m_environmentStatus{CheckResult::NOT_SET};
476
477 Aws::Vector<Check> m_checks;
478
479 ConnectivityInfo m_connectivityInfo;
480
481 VcfHostnames m_vcfHostnames;
482
483 Aws::String m_kmsKeyId;
484
485 ServiceAccessSecurityGroups m_serviceAccessSecurityGroups;
486
487 Aws::Vector<Secret> m_credentials;
488 bool m_environmentIdHasBeenSet = false;
489 bool m_environmentStateHasBeenSet = false;
490 bool m_stateDetailsHasBeenSet = false;
491 bool m_createdAtHasBeenSet = false;
492 bool m_modifiedAtHasBeenSet = false;
493 bool m_environmentArnHasBeenSet = false;
494 bool m_environmentNameHasBeenSet = false;
495 bool m_vpcIdHasBeenSet = false;
496 bool m_serviceAccessSubnetIdHasBeenSet = false;
497 bool m_vcfVersionHasBeenSet = false;
498 bool m_termsAcceptedHasBeenSet = false;
499 bool m_licenseInfoHasBeenSet = false;
500 bool m_siteIdHasBeenSet = false;
501 bool m_environmentStatusHasBeenSet = false;
502 bool m_checksHasBeenSet = false;
503 bool m_connectivityInfoHasBeenSet = false;
504 bool m_vcfHostnamesHasBeenSet = false;
505 bool m_kmsKeyIdHasBeenSet = false;
506 bool m_serviceAccessSecurityGroupsHasBeenSet = false;
507 bool m_credentialsHasBeenSet = false;
508};
509
510} // namespace Model
511} // namespace EVS
512} // namespace Aws
bool ConnectivityInfoHasBeenSet() const
const Aws::Utils::DateTime & GetModifiedAt() const
bool TermsAcceptedHasBeenSet() const
Environment & WithCredentials(CredentialsT &&value)
const Aws::Vector< Secret > & GetCredentials() const
bool EnvironmentStatusHasBeenSet() const
const Aws::String & GetEnvironmentName() const
Environment & WithStateDetails(StateDetailsT &&value)
Definition Environment.h:92
void SetKmsKeyId(KmsKeyIdT &&value)
AWS_EVS_API Environment()=default
const Aws::String & GetEnvironmentId() const
Definition Environment.h:49
const Aws::String & GetVpcId() const
Environment & WithEnvironmentState(EnvironmentState value)
Definition Environment.h:73
const Aws::Vector< LicenseInfo > & GetLicenseInfo() const
Environment & WithEnvironmentArn(EnvironmentArnT &&value)
void SetTermsAccepted(bool value)
Environment & WithEnvironmentId(EnvironmentIdT &&value)
Definition Environment.h:57
Environment & WithSiteId(SiteIdT &&value)
void SetLicenseInfo(LicenseInfoT &&value)
AWS_EVS_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConnectivityInfo & GetConnectivityInfo() const
EnvironmentState GetEnvironmentState() const
Definition Environment.h:67
Environment & AddChecks(ChecksT &&value)
void SetStateDetails(StateDetailsT &&value)
Definition Environment.h:87
bool EnvironmentNameHasBeenSet() const
void SetServiceAccessSubnetId(ServiceAccessSubnetIdT &&value)
const Aws::String & GetSiteId() const
Environment & WithServiceAccessSubnetId(ServiceAccessSubnetIdT &&value)
CheckResult GetEnvironmentStatus() const
void SetVcfHostnames(VcfHostnamesT &&value)
bool ServiceAccessSecurityGroupsHasBeenSet() const
void SetCredentials(CredentialsT &&value)
Environment & WithServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT &&value)
const Aws::String & GetEnvironmentArn() const
void SetEnvironmentStatus(CheckResult value)
const Aws::String & GetKmsKeyId() const
Environment & WithVcfHostnames(VcfHostnamesT &&value)
void SetSiteId(SiteIdT &&value)
bool ServiceAccessSubnetIdHasBeenSet() const
void SetEnvironmentName(EnvironmentNameT &&value)
AWS_EVS_API Environment(Aws::Utils::Json::JsonView jsonValue)
Environment & WithEnvironmentStatus(CheckResult value)
Environment & WithConnectivityInfo(ConnectivityInfoT &&value)
const Aws::String & GetServiceAccessSubnetId() const
void SetEnvironmentArn(EnvironmentArnT &&value)
bool StateDetailsHasBeenSet() const
Definition Environment.h:85
const VcfHostnames & GetVcfHostnames() const
VcfVersion GetVcfVersion() const
Environment & AddCredentials(CredentialsT &&value)
Environment & WithChecks(ChecksT &&value)
void SetServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT &&value)
bool EnvironmentIdHasBeenSet() const
Definition Environment.h:50
bool EnvironmentStateHasBeenSet() const
Definition Environment.h:68
Environment & WithVpcId(VpcIdT &&value)
Environment & WithCreatedAt(CreatedAtT &&value)
const ServiceAccessSecurityGroups & GetServiceAccessSecurityGroups() const
Environment & WithLicenseInfo(LicenseInfoT &&value)
Environment & WithKmsKeyId(KmsKeyIdT &&value)
void SetModifiedAt(ModifiedAtT &&value)
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVcfVersion(VcfVersion value)
void SetEnvironmentId(EnvironmentIdT &&value)
Definition Environment.h:52
bool VcfHostnamesHasBeenSet() const
Environment & WithModifiedAt(ModifiedAtT &&value)
void SetEnvironmentState(EnvironmentState value)
Definition Environment.h:69
const Aws::String & GetStateDetails() const
Definition Environment.h:84
void SetCreatedAt(CreatedAtT &&value)
const Aws::Vector< Check > & GetChecks() const
Environment & WithVcfVersion(VcfVersion value)
const Aws::Utils::DateTime & GetCreatedAt() const
Environment & AddLicenseInfo(LicenseInfoT &&value)
bool EnvironmentArnHasBeenSet() const
void SetVpcId(VpcIdT &&value)
Environment & WithEnvironmentName(EnvironmentNameT &&value)
Environment & WithTermsAccepted(bool value)
void SetConnectivityInfo(ConnectivityInfoT &&value)
void SetChecks(ChecksT &&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