AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
252 inline const Aws::Vector<LicenseInfo>& GetLicenseInfo() const { return m_licenseInfo; }
253 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
254 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
255 void SetLicenseInfo(LicenseInfoT&& value) {
256 m_licenseInfoHasBeenSet = true;
257 m_licenseInfo = std::forward<LicenseInfoT>(value);
258 }
259 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
260 Environment& WithLicenseInfo(LicenseInfoT&& value) {
261 SetLicenseInfo(std::forward<LicenseInfoT>(value));
262 return *this;
263 }
264 template <typename LicenseInfoT = LicenseInfo>
265 Environment& AddLicenseInfo(LicenseInfoT&& value) {
266 m_licenseInfoHasBeenSet = true;
267 m_licenseInfo.emplace_back(std::forward<LicenseInfoT>(value));
268 return *this;
269 }
271
273
278 inline const Aws::String& GetSiteId() const { return m_siteId; }
279 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
280 template <typename SiteIdT = Aws::String>
281 void SetSiteId(SiteIdT&& value) {
282 m_siteIdHasBeenSet = true;
283 m_siteId = std::forward<SiteIdT>(value);
284 }
285 template <typename SiteIdT = Aws::String>
286 Environment& WithSiteId(SiteIdT&& value) {
287 SetSiteId(std::forward<SiteIdT>(value));
288 return *this;
289 }
291
293
297 inline CheckResult GetEnvironmentStatus() const { return m_environmentStatus; }
298 inline bool EnvironmentStatusHasBeenSet() const { return m_environmentStatusHasBeenSet; }
300 m_environmentStatusHasBeenSet = true;
301 m_environmentStatus = value;
302 }
305 return *this;
306 }
308
310
314 inline const Aws::Vector<Check>& GetChecks() const { return m_checks; }
315 inline bool ChecksHasBeenSet() const { return m_checksHasBeenSet; }
316 template <typename ChecksT = Aws::Vector<Check>>
317 void SetChecks(ChecksT&& value) {
318 m_checksHasBeenSet = true;
319 m_checks = std::forward<ChecksT>(value);
320 }
321 template <typename ChecksT = Aws::Vector<Check>>
322 Environment& WithChecks(ChecksT&& value) {
323 SetChecks(std::forward<ChecksT>(value));
324 return *this;
325 }
326 template <typename ChecksT = Check>
327 Environment& AddChecks(ChecksT&& value) {
328 m_checksHasBeenSet = true;
329 m_checks.emplace_back(std::forward<ChecksT>(value));
330 return *this;
331 }
333
335
341 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
342 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
343 template <typename ConnectivityInfoT = ConnectivityInfo>
344 void SetConnectivityInfo(ConnectivityInfoT&& value) {
345 m_connectivityInfoHasBeenSet = true;
346 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
347 }
348 template <typename ConnectivityInfoT = ConnectivityInfo>
349 Environment& WithConnectivityInfo(ConnectivityInfoT&& value) {
350 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
351 return *this;
352 }
354
356
363 inline const VcfHostnames& GetVcfHostnames() const { return m_vcfHostnames; }
364 inline bool VcfHostnamesHasBeenSet() const { return m_vcfHostnamesHasBeenSet; }
365 template <typename VcfHostnamesT = VcfHostnames>
366 void SetVcfHostnames(VcfHostnamesT&& value) {
367 m_vcfHostnamesHasBeenSet = true;
368 m_vcfHostnames = std::forward<VcfHostnamesT>(value);
369 }
370 template <typename VcfHostnamesT = VcfHostnames>
371 Environment& WithVcfHostnames(VcfHostnamesT&& value) {
372 SetVcfHostnames(std::forward<VcfHostnamesT>(value));
373 return *this;
374 }
376
378
386 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
387 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
388 template <typename KmsKeyIdT = Aws::String>
389 void SetKmsKeyId(KmsKeyIdT&& value) {
390 m_kmsKeyIdHasBeenSet = true;
391 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
392 }
393 template <typename KmsKeyIdT = Aws::String>
394 Environment& WithKmsKeyId(KmsKeyIdT&& value) {
395 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
396 return *this;
397 }
399
401
406 inline const ServiceAccessSecurityGroups& GetServiceAccessSecurityGroups() const { return m_serviceAccessSecurityGroups; }
407 inline bool ServiceAccessSecurityGroupsHasBeenSet() const { return m_serviceAccessSecurityGroupsHasBeenSet; }
408 template <typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
409 void SetServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) {
410 m_serviceAccessSecurityGroupsHasBeenSet = true;
411 m_serviceAccessSecurityGroups = std::forward<ServiceAccessSecurityGroupsT>(value);
412 }
413 template <typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
414 Environment& WithServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) {
415 SetServiceAccessSecurityGroups(std::forward<ServiceAccessSecurityGroupsT>(value));
416 return *this;
417 }
419
421
426 inline const Aws::Vector<Secret>& GetCredentials() const { return m_credentials; }
427 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
428 template <typename CredentialsT = Aws::Vector<Secret>>
429 void SetCredentials(CredentialsT&& value) {
430 m_credentialsHasBeenSet = true;
431 m_credentials = std::forward<CredentialsT>(value);
432 }
433 template <typename CredentialsT = Aws::Vector<Secret>>
434 Environment& WithCredentials(CredentialsT&& value) {
435 SetCredentials(std::forward<CredentialsT>(value));
436 return *this;
437 }
438 template <typename CredentialsT = Secret>
439 Environment& AddCredentials(CredentialsT&& value) {
440 m_credentialsHasBeenSet = true;
441 m_credentials.emplace_back(std::forward<CredentialsT>(value));
442 return *this;
443 }
445 private:
446 Aws::String m_environmentId;
447
449
450 Aws::String m_stateDetails;
451
452 Aws::Utils::DateTime m_createdAt{};
453
454 Aws::Utils::DateTime m_modifiedAt{};
455
456 Aws::String m_environmentArn;
457
458 Aws::String m_environmentName;
459
460 Aws::String m_vpcId;
461
462 Aws::String m_serviceAccessSubnetId;
463
464 VcfVersion m_vcfVersion{VcfVersion::NOT_SET};
465
466 bool m_termsAccepted{false};
467
468 Aws::Vector<LicenseInfo> m_licenseInfo;
469
470 Aws::String m_siteId;
471
472 CheckResult m_environmentStatus{CheckResult::NOT_SET};
473
474 Aws::Vector<Check> m_checks;
475
476 ConnectivityInfo m_connectivityInfo;
477
478 VcfHostnames m_vcfHostnames;
479
480 Aws::String m_kmsKeyId;
481
482 ServiceAccessSecurityGroups m_serviceAccessSecurityGroups;
483
484 Aws::Vector<Secret> m_credentials;
485 bool m_environmentIdHasBeenSet = false;
486 bool m_environmentStateHasBeenSet = false;
487 bool m_stateDetailsHasBeenSet = false;
488 bool m_createdAtHasBeenSet = false;
489 bool m_modifiedAtHasBeenSet = false;
490 bool m_environmentArnHasBeenSet = false;
491 bool m_environmentNameHasBeenSet = false;
492 bool m_vpcIdHasBeenSet = false;
493 bool m_serviceAccessSubnetIdHasBeenSet = false;
494 bool m_vcfVersionHasBeenSet = false;
495 bool m_termsAcceptedHasBeenSet = false;
496 bool m_licenseInfoHasBeenSet = false;
497 bool m_siteIdHasBeenSet = false;
498 bool m_environmentStatusHasBeenSet = false;
499 bool m_checksHasBeenSet = false;
500 bool m_connectivityInfoHasBeenSet = false;
501 bool m_vcfHostnamesHasBeenSet = false;
502 bool m_kmsKeyIdHasBeenSet = false;
503 bool m_serviceAccessSecurityGroupsHasBeenSet = false;
504 bool m_credentialsHasBeenSet = false;
505};
506
507} // namespace Model
508} // namespace EVS
509} // 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