AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Environment.h
1
6#pragma once
7#include <aws/evs/EVS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/evs/model/EnvironmentState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/evs/model/VcfVersion.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/evs/model/CheckResult.h>
14#include <aws/evs/model/ConnectivityInfo.h>
15#include <aws/evs/model/VcfHostnames.h>
16#include <aws/evs/model/ServiceAccessSecurityGroups.h>
17#include <aws/evs/model/LicenseInfo.h>
18#include <aws/evs/model/Check.h>
19#include <aws/evs/model/Secret.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace EVS
33{
34namespace Model
35{
36
43 {
44 public:
45 AWS_EVS_API Environment() = default;
49
50
52
55 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
56 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
57 template<typename EnvironmentIdT = Aws::String>
58 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
59 template<typename EnvironmentIdT = Aws::String>
60 Environment& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
62
64
67 inline EnvironmentState GetEnvironmentState() const { return m_environmentState; }
68 inline bool EnvironmentStateHasBeenSet() const { return m_environmentStateHasBeenSet; }
69 inline void SetEnvironmentState(EnvironmentState value) { m_environmentStateHasBeenSet = true; m_environmentState = value; }
72
74
78 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
79 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
80 template<typename StateDetailsT = Aws::String>
81 void SetStateDetails(StateDetailsT&& value) { m_stateDetailsHasBeenSet = true; m_stateDetails = std::forward<StateDetailsT>(value); }
82 template<typename StateDetailsT = Aws::String>
83 Environment& WithStateDetails(StateDetailsT&& value) { SetStateDetails(std::forward<StateDetailsT>(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
91 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92 template<typename CreatedAtT = Aws::Utils::DateTime>
93 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
94 template<typename CreatedAtT = Aws::Utils::DateTime>
95 Environment& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
103 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
104 template<typename ModifiedAtT = Aws::Utils::DateTime>
105 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
106 template<typename ModifiedAtT = Aws::Utils::DateTime>
107 Environment& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
109
111
114 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
115 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
116 template<typename EnvironmentArnT = Aws::String>
117 void SetEnvironmentArn(EnvironmentArnT&& value) { m_environmentArnHasBeenSet = true; m_environmentArn = std::forward<EnvironmentArnT>(value); }
118 template<typename EnvironmentArnT = Aws::String>
119 Environment& WithEnvironmentArn(EnvironmentArnT&& value) { SetEnvironmentArn(std::forward<EnvironmentArnT>(value)); return *this;}
121
123
126 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
127 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
128 template<typename EnvironmentNameT = Aws::String>
129 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
130 template<typename EnvironmentNameT = Aws::String>
131 Environment& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
133
135
138 inline const Aws::String& GetVpcId() const { return m_vpcId; }
139 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
140 template<typename VpcIdT = Aws::String>
141 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
142 template<typename VpcIdT = Aws::String>
143 Environment& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
145
147
152 inline const Aws::String& GetServiceAccessSubnetId() const { return m_serviceAccessSubnetId; }
153 inline bool ServiceAccessSubnetIdHasBeenSet() const { return m_serviceAccessSubnetIdHasBeenSet; }
154 template<typename ServiceAccessSubnetIdT = Aws::String>
155 void SetServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) { m_serviceAccessSubnetIdHasBeenSet = true; m_serviceAccessSubnetId = std::forward<ServiceAccessSubnetIdT>(value); }
156 template<typename ServiceAccessSubnetIdT = Aws::String>
157 Environment& WithServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) { SetServiceAccessSubnetId(std::forward<ServiceAccessSubnetIdT>(value)); return *this;}
159
161
164 inline VcfVersion GetVcfVersion() const { return m_vcfVersion; }
165 inline bool VcfVersionHasBeenSet() const { return m_vcfVersionHasBeenSet; }
166 inline void SetVcfVersion(VcfVersion value) { m_vcfVersionHasBeenSet = true; m_vcfVersion = value; }
167 inline Environment& WithVcfVersion(VcfVersion value) { SetVcfVersion(value); return *this;}
169
171
177 inline bool GetTermsAccepted() const { return m_termsAccepted; }
178 inline bool TermsAcceptedHasBeenSet() const { return m_termsAcceptedHasBeenSet; }
179 inline void SetTermsAccepted(bool value) { m_termsAcceptedHasBeenSet = true; m_termsAccepted = value; }
180 inline Environment& WithTermsAccepted(bool value) { SetTermsAccepted(value); return *this;}
182
184
189 inline const Aws::Vector<LicenseInfo>& GetLicenseInfo() const { return m_licenseInfo; }
190 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
191 template<typename LicenseInfoT = Aws::Vector<LicenseInfo>>
192 void SetLicenseInfo(LicenseInfoT&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::forward<LicenseInfoT>(value); }
193 template<typename LicenseInfoT = Aws::Vector<LicenseInfo>>
194 Environment& WithLicenseInfo(LicenseInfoT&& value) { SetLicenseInfo(std::forward<LicenseInfoT>(value)); return *this;}
195 template<typename LicenseInfoT = LicenseInfo>
196 Environment& AddLicenseInfo(LicenseInfoT&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo.emplace_back(std::forward<LicenseInfoT>(value)); return *this; }
198
200
205 inline const Aws::String& GetSiteId() const { return m_siteId; }
206 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
207 template<typename SiteIdT = Aws::String>
208 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
209 template<typename SiteIdT = Aws::String>
210 Environment& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
212
214
218 inline CheckResult GetEnvironmentStatus() const { return m_environmentStatus; }
219 inline bool EnvironmentStatusHasBeenSet() const { return m_environmentStatusHasBeenSet; }
220 inline void SetEnvironmentStatus(CheckResult value) { m_environmentStatusHasBeenSet = true; m_environmentStatus = value; }
223
225
229 inline const Aws::Vector<Check>& GetChecks() const { return m_checks; }
230 inline bool ChecksHasBeenSet() const { return m_checksHasBeenSet; }
231 template<typename ChecksT = Aws::Vector<Check>>
232 void SetChecks(ChecksT&& value) { m_checksHasBeenSet = true; m_checks = std::forward<ChecksT>(value); }
233 template<typename ChecksT = Aws::Vector<Check>>
234 Environment& WithChecks(ChecksT&& value) { SetChecks(std::forward<ChecksT>(value)); return *this;}
235 template<typename ChecksT = Check>
236 Environment& AddChecks(ChecksT&& value) { m_checksHasBeenSet = true; m_checks.emplace_back(std::forward<ChecksT>(value)); return *this; }
238
240
246 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
247 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
248 template<typename ConnectivityInfoT = ConnectivityInfo>
249 void SetConnectivityInfo(ConnectivityInfoT&& value) { m_connectivityInfoHasBeenSet = true; m_connectivityInfo = std::forward<ConnectivityInfoT>(value); }
250 template<typename ConnectivityInfoT = ConnectivityInfo>
251 Environment& WithConnectivityInfo(ConnectivityInfoT&& value) { SetConnectivityInfo(std::forward<ConnectivityInfoT>(value)); return *this;}
253
255
262 inline const VcfHostnames& GetVcfHostnames() const { return m_vcfHostnames; }
263 inline bool VcfHostnamesHasBeenSet() const { return m_vcfHostnamesHasBeenSet; }
264 template<typename VcfHostnamesT = VcfHostnames>
265 void SetVcfHostnames(VcfHostnamesT&& value) { m_vcfHostnamesHasBeenSet = true; m_vcfHostnames = std::forward<VcfHostnamesT>(value); }
266 template<typename VcfHostnamesT = VcfHostnames>
267 Environment& WithVcfHostnames(VcfHostnamesT&& value) { SetVcfHostnames(std::forward<VcfHostnamesT>(value)); return *this;}
269
271
279 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
280 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
281 template<typename KmsKeyIdT = Aws::String>
282 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
283 template<typename KmsKeyIdT = Aws::String>
284 Environment& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
286
288
293 inline const ServiceAccessSecurityGroups& GetServiceAccessSecurityGroups() const { return m_serviceAccessSecurityGroups; }
294 inline bool ServiceAccessSecurityGroupsHasBeenSet() const { return m_serviceAccessSecurityGroupsHasBeenSet; }
295 template<typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
296 void SetServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) { m_serviceAccessSecurityGroupsHasBeenSet = true; m_serviceAccessSecurityGroups = std::forward<ServiceAccessSecurityGroupsT>(value); }
297 template<typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
298 Environment& WithServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) { SetServiceAccessSecurityGroups(std::forward<ServiceAccessSecurityGroupsT>(value)); return *this;}
300
302
307 inline const Aws::Vector<Secret>& GetCredentials() const { return m_credentials; }
308 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
309 template<typename CredentialsT = Aws::Vector<Secret>>
310 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
311 template<typename CredentialsT = Aws::Vector<Secret>>
312 Environment& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
313 template<typename CredentialsT = Secret>
314 Environment& AddCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials.emplace_back(std::forward<CredentialsT>(value)); return *this; }
316 private:
317
318 Aws::String m_environmentId;
319 bool m_environmentIdHasBeenSet = false;
320
322 bool m_environmentStateHasBeenSet = false;
323
324 Aws::String m_stateDetails;
325 bool m_stateDetailsHasBeenSet = false;
326
327 Aws::Utils::DateTime m_createdAt{};
328 bool m_createdAtHasBeenSet = false;
329
330 Aws::Utils::DateTime m_modifiedAt{};
331 bool m_modifiedAtHasBeenSet = false;
332
333 Aws::String m_environmentArn;
334 bool m_environmentArnHasBeenSet = false;
335
336 Aws::String m_environmentName;
337 bool m_environmentNameHasBeenSet = false;
338
339 Aws::String m_vpcId;
340 bool m_vpcIdHasBeenSet = false;
341
342 Aws::String m_serviceAccessSubnetId;
343 bool m_serviceAccessSubnetIdHasBeenSet = false;
344
345 VcfVersion m_vcfVersion{VcfVersion::NOT_SET};
346 bool m_vcfVersionHasBeenSet = false;
347
348 bool m_termsAccepted{false};
349 bool m_termsAcceptedHasBeenSet = false;
350
351 Aws::Vector<LicenseInfo> m_licenseInfo;
352 bool m_licenseInfoHasBeenSet = false;
353
354 Aws::String m_siteId;
355 bool m_siteIdHasBeenSet = false;
356
357 CheckResult m_environmentStatus{CheckResult::NOT_SET};
358 bool m_environmentStatusHasBeenSet = false;
359
360 Aws::Vector<Check> m_checks;
361 bool m_checksHasBeenSet = false;
362
363 ConnectivityInfo m_connectivityInfo;
364 bool m_connectivityInfoHasBeenSet = false;
365
366 VcfHostnames m_vcfHostnames;
367 bool m_vcfHostnamesHasBeenSet = false;
368
369 Aws::String m_kmsKeyId;
370 bool m_kmsKeyIdHasBeenSet = false;
371
372 ServiceAccessSecurityGroups m_serviceAccessSecurityGroups;
373 bool m_serviceAccessSecurityGroupsHasBeenSet = false;
374
375 Aws::Vector<Secret> m_credentials;
376 bool m_credentialsHasBeenSet = false;
377 };
378
379} // namespace Model
380} // namespace EVS
381} // 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:83
void SetKmsKeyId(KmsKeyIdT &&value)
AWS_EVS_API Environment()=default
const Aws::String & GetEnvironmentId() const
Definition Environment.h:55
const Aws::String & GetVpcId() const
Environment & WithEnvironmentState(EnvironmentState value)
Definition Environment.h:70
const Aws::Vector< LicenseInfo > & GetLicenseInfo() const
Environment & WithEnvironmentArn(EnvironmentArnT &&value)
void SetTermsAccepted(bool value)
Environment & WithEnvironmentId(EnvironmentIdT &&value)
Definition Environment.h:60
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:81
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:79
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:56
bool EnvironmentStateHasBeenSet() const
Definition Environment.h:68
Environment & WithVpcId(VpcIdT &&value)
Environment & WithCreatedAt(CreatedAtT &&value)
Definition Environment.h:95
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:58
bool VcfHostnamesHasBeenSet() const
Environment & WithModifiedAt(ModifiedAtT &&value)
void SetEnvironmentState(EnvironmentState value)
Definition Environment.h:69
const Aws::String & GetStateDetails() const
Definition Environment.h:78
void SetCreatedAt(CreatedAtT &&value)
Definition Environment.h:93
const Aws::Vector< Check > & GetChecks() const
Environment & WithVcfVersion(VcfVersion value)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Environment.h:90
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