AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
CreateEnvironmentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/evs/EVSRequest.h>
12#include <aws/evs/EVS_EXPORTS.h>
13#include <aws/evs/model/ConnectivityInfo.h>
14#include <aws/evs/model/HostInfoForCreate.h>
15#include <aws/evs/model/InitialVlans.h>
16#include <aws/evs/model/LicenseInfo.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 EVS {
25namespace Model {
26
30 public:
31 AWS_EVS_API CreateEnvironmentRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; }
38
39 AWS_EVS_API Aws::String SerializePayload() const override;
40
42
44
51 inline const Aws::String& GetClientToken() const { return m_clientToken; }
52 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
53 template <typename ClientTokenT = Aws::String>
54 void SetClientToken(ClientTokenT&& value) {
55 m_clientTokenHasBeenSet = true;
56 m_clientToken = std::forward<ClientTokenT>(value);
57 }
58 template <typename ClientTokenT = Aws::String>
60 SetClientToken(std::forward<ClientTokenT>(value));
61 return *this;
62 }
64
66
73 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
74 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
75 template <typename EnvironmentNameT = Aws::String>
76 void SetEnvironmentName(EnvironmentNameT&& value) {
77 m_environmentNameHasBeenSet = true;
78 m_environmentName = std::forward<EnvironmentNameT>(value);
79 }
80 template <typename EnvironmentNameT = Aws::String>
81 CreateEnvironmentRequest& WithEnvironmentName(EnvironmentNameT&& value) {
82 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
83 return *this;
84 }
86
88
93 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
94 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
95 template <typename KmsKeyIdT = Aws::String>
96 void SetKmsKeyId(KmsKeyIdT&& value) {
97 m_kmsKeyIdHasBeenSet = true;
98 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
99 }
100 template <typename KmsKeyIdT = Aws::String>
102 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
103 return *this;
104 }
106
108
113 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 void SetTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags = std::forward<TagsT>(value);
119 }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 SetTags(std::forward<TagsT>(value));
123 return *this;
124 }
125 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
126 CreateEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
129 return *this;
130 }
132
134
146 inline const ServiceAccessSecurityGroups& GetServiceAccessSecurityGroups() const { return m_serviceAccessSecurityGroups; }
147 inline bool ServiceAccessSecurityGroupsHasBeenSet() const { return m_serviceAccessSecurityGroupsHasBeenSet; }
148 template <typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
149 void SetServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) {
150 m_serviceAccessSecurityGroupsHasBeenSet = true;
151 m_serviceAccessSecurityGroups = std::forward<ServiceAccessSecurityGroupsT>(value);
152 }
153 template <typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
154 CreateEnvironmentRequest& WithServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) {
155 SetServiceAccessSecurityGroups(std::forward<ServiceAccessSecurityGroupsT>(value));
156 return *this;
157 }
159
161
175 inline const Aws::String& GetVpcId() const { return m_vpcId; }
176 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
177 template <typename VpcIdT = Aws::String>
178 void SetVpcId(VpcIdT&& value) {
179 m_vpcIdHasBeenSet = true;
180 m_vpcId = std::forward<VpcIdT>(value);
181 }
182 template <typename VpcIdT = Aws::String>
184 SetVpcId(std::forward<VpcIdT>(value));
185 return *this;
186 }
188
190
196 inline const Aws::String& GetServiceAccessSubnetId() const { return m_serviceAccessSubnetId; }
197 inline bool ServiceAccessSubnetIdHasBeenSet() const { return m_serviceAccessSubnetIdHasBeenSet; }
198 template <typename ServiceAccessSubnetIdT = Aws::String>
199 void SetServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) {
200 m_serviceAccessSubnetIdHasBeenSet = true;
201 m_serviceAccessSubnetId = std::forward<ServiceAccessSubnetIdT>(value);
202 }
203 template <typename ServiceAccessSubnetIdT = Aws::String>
204 CreateEnvironmentRequest& WithServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) {
205 SetServiceAccessSubnetId(std::forward<ServiceAccessSubnetIdT>(value));
206 return *this;
207 }
209
211
219 inline VcfVersion GetVcfVersion() const { return m_vcfVersion; }
220 inline bool VcfVersionHasBeenSet() const { return m_vcfVersionHasBeenSet; }
221 inline void SetVcfVersion(VcfVersion value) {
222 m_vcfVersionHasBeenSet = true;
223 m_vcfVersion = value;
224 }
226 SetVcfVersion(value);
227 return *this;
228 }
230
232
240 inline bool GetTermsAccepted() const { return m_termsAccepted; }
241 inline bool TermsAcceptedHasBeenSet() const { return m_termsAcceptedHasBeenSet; }
242 inline void SetTermsAccepted(bool value) {
243 m_termsAcceptedHasBeenSet = true;
244 m_termsAccepted = value;
245 }
247 SetTermsAccepted(value);
248 return *this;
249 }
251
253
259 inline const InitialVlans& GetInitialVlans() const { return m_initialVlans; }
260 inline bool InitialVlansHasBeenSet() const { return m_initialVlansHasBeenSet; }
261 template <typename InitialVlansT = InitialVlans>
262 void SetInitialVlans(InitialVlansT&& value) {
263 m_initialVlansHasBeenSet = true;
264 m_initialVlans = std::forward<InitialVlansT>(value);
265 }
266 template <typename InitialVlansT = InitialVlans>
268 SetInitialVlans(std::forward<InitialVlansT>(value));
269 return *this;
270 }
272
274
281 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
282 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
283 template <typename ConnectivityInfoT = ConnectivityInfo>
284 void SetConnectivityInfo(ConnectivityInfoT&& value) {
285 m_connectivityInfoHasBeenSet = true;
286 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
287 }
288 template <typename ConnectivityInfoT = ConnectivityInfo>
289 CreateEnvironmentRequest& WithConnectivityInfo(ConnectivityInfoT&& value) {
290 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
291 return *this;
292 }
294
296
310 inline const Aws::Vector<LicenseInfo>& GetLicenseInfo() const { return m_licenseInfo; }
311 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
312 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
313 void SetLicenseInfo(LicenseInfoT&& value) {
314 m_licenseInfoHasBeenSet = true;
315 m_licenseInfo = std::forward<LicenseInfoT>(value);
316 }
317 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
319 SetLicenseInfo(std::forward<LicenseInfoT>(value));
320 return *this;
321 }
322 template <typename LicenseInfoT = LicenseInfo>
324 m_licenseInfoHasBeenSet = true;
325 m_licenseInfo.emplace_back(std::forward<LicenseInfoT>(value));
326 return *this;
327 }
329
331
339 inline const Aws::Vector<HostInfoForCreate>& GetHosts() const { return m_hosts; }
340 inline bool HostsHasBeenSet() const { return m_hostsHasBeenSet; }
341 template <typename HostsT = Aws::Vector<HostInfoForCreate>>
342 void SetHosts(HostsT&& value) {
343 m_hostsHasBeenSet = true;
344 m_hosts = std::forward<HostsT>(value);
345 }
346 template <typename HostsT = Aws::Vector<HostInfoForCreate>>
348 SetHosts(std::forward<HostsT>(value));
349 return *this;
350 }
351 template <typename HostsT = HostInfoForCreate>
353 m_hostsHasBeenSet = true;
354 m_hosts.emplace_back(std::forward<HostsT>(value));
355 return *this;
356 }
358
360
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>
375 SetVcfHostnames(std::forward<VcfHostnamesT>(value));
376 return *this;
377 }
379
381
390 inline const Aws::String& GetSiteId() const { return m_siteId; }
391 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
392 template <typename SiteIdT = Aws::String>
393 void SetSiteId(SiteIdT&& value) {
394 m_siteIdHasBeenSet = true;
395 m_siteId = std::forward<SiteIdT>(value);
396 }
397 template <typename SiteIdT = Aws::String>
399 SetSiteId(std::forward<SiteIdT>(value));
400 return *this;
401 }
403 private:
405
406 Aws::String m_environmentName;
407
408 Aws::String m_kmsKeyId;
409
411
412 ServiceAccessSecurityGroups m_serviceAccessSecurityGroups;
413
414 Aws::String m_vpcId;
415
416 Aws::String m_serviceAccessSubnetId;
417
418 VcfVersion m_vcfVersion{VcfVersion::NOT_SET};
419
420 bool m_termsAccepted{false};
421
422 InitialVlans m_initialVlans;
423
424 ConnectivityInfo m_connectivityInfo;
425
426 Aws::Vector<LicenseInfo> m_licenseInfo;
427
429
430 VcfHostnames m_vcfHostnames;
431
432 Aws::String m_siteId;
433 bool m_clientTokenHasBeenSet = true;
434 bool m_environmentNameHasBeenSet = false;
435 bool m_kmsKeyIdHasBeenSet = false;
436 bool m_tagsHasBeenSet = false;
437 bool m_serviceAccessSecurityGroupsHasBeenSet = false;
438 bool m_vpcIdHasBeenSet = false;
439 bool m_serviceAccessSubnetIdHasBeenSet = false;
440 bool m_vcfVersionHasBeenSet = false;
441 bool m_termsAcceptedHasBeenSet = false;
442 bool m_initialVlansHasBeenSet = false;
443 bool m_connectivityInfoHasBeenSet = false;
444 bool m_licenseInfoHasBeenSet = false;
445 bool m_hostsHasBeenSet = false;
446 bool m_vcfHostnamesHasBeenSet = false;
447 bool m_siteIdHasBeenSet = false;
448};
449
450} // namespace Model
451} // namespace EVS
452} // namespace Aws
CreateEnvironmentRequest & WithHosts(HostsT &&value)
AWS_EVS_API CreateEnvironmentRequest()=default
const ConnectivityInfo & GetConnectivityInfo() const
CreateEnvironmentRequest & WithTermsAccepted(bool value)
AWS_EVS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEnvironmentRequest & WithServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetEnvironmentName(EnvironmentNameT &&value)
CreateEnvironmentRequest & WithEnvironmentName(EnvironmentNameT &&value)
CreateEnvironmentRequest & WithVcfVersion(VcfVersion value)
CreateEnvironmentRequest & WithServiceAccessSubnetId(ServiceAccessSubnetIdT &&value)
CreateEnvironmentRequest & WithSiteId(SiteIdT &&value)
CreateEnvironmentRequest & WithClientToken(ClientTokenT &&value)
CreateEnvironmentRequest & WithConnectivityInfo(ConnectivityInfoT &&value)
void SetServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT &&value)
virtual const char * GetServiceRequestName() const override
CreateEnvironmentRequest & WithInitialVlans(InitialVlansT &&value)
CreateEnvironmentRequest & AddHosts(HostsT &&value)
void SetConnectivityInfo(ConnectivityInfoT &&value)
AWS_EVS_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateEnvironmentRequest & WithTags(TagsT &&value)
CreateEnvironmentRequest & AddLicenseInfo(LicenseInfoT &&value)
const Aws::Vector< LicenseInfo > & GetLicenseInfo() const
CreateEnvironmentRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateEnvironmentRequest & WithLicenseInfo(LicenseInfoT &&value)
CreateEnvironmentRequest & WithVcfHostnames(VcfHostnamesT &&value)
const ServiceAccessSecurityGroups & GetServiceAccessSecurityGroups() const
CreateEnvironmentRequest & WithVpcId(VpcIdT &&value)
void SetServiceAccessSubnetId(ServiceAccessSubnetIdT &&value)
const Aws::Vector< HostInfoForCreate > & GetHosts() const
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector