AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
195 inline const Aws::String& GetServiceAccessSubnetId() const { return m_serviceAccessSubnetId; }
196 inline bool ServiceAccessSubnetIdHasBeenSet() const { return m_serviceAccessSubnetIdHasBeenSet; }
197 template <typename ServiceAccessSubnetIdT = Aws::String>
198 void SetServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) {
199 m_serviceAccessSubnetIdHasBeenSet = true;
200 m_serviceAccessSubnetId = std::forward<ServiceAccessSubnetIdT>(value);
201 }
202 template <typename ServiceAccessSubnetIdT = Aws::String>
203 CreateEnvironmentRequest& WithServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) {
204 SetServiceAccessSubnetId(std::forward<ServiceAccessSubnetIdT>(value));
205 return *this;
206 }
208
210
213 inline VcfVersion GetVcfVersion() const { return m_vcfVersion; }
214 inline bool VcfVersionHasBeenSet() const { return m_vcfVersionHasBeenSet; }
215 inline void SetVcfVersion(VcfVersion value) {
216 m_vcfVersionHasBeenSet = true;
217 m_vcfVersion = value;
218 }
220 SetVcfVersion(value);
221 return *this;
222 }
224
226
234 inline bool GetTermsAccepted() const { return m_termsAccepted; }
235 inline bool TermsAcceptedHasBeenSet() const { return m_termsAcceptedHasBeenSet; }
236 inline void SetTermsAccepted(bool value) {
237 m_termsAcceptedHasBeenSet = true;
238 m_termsAccepted = value;
239 }
241 SetTermsAccepted(value);
242 return *this;
243 }
245
247
256 inline const Aws::Vector<LicenseInfo>& GetLicenseInfo() const { return m_licenseInfo; }
257 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
258 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
259 void SetLicenseInfo(LicenseInfoT&& value) {
260 m_licenseInfoHasBeenSet = true;
261 m_licenseInfo = std::forward<LicenseInfoT>(value);
262 }
263 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
265 SetLicenseInfo(std::forward<LicenseInfoT>(value));
266 return *this;
267 }
268 template <typename LicenseInfoT = LicenseInfo>
270 m_licenseInfoHasBeenSet = true;
271 m_licenseInfo.emplace_back(std::forward<LicenseInfoT>(value));
272 return *this;
273 }
275
277
283 inline const InitialVlans& GetInitialVlans() const { return m_initialVlans; }
284 inline bool InitialVlansHasBeenSet() const { return m_initialVlansHasBeenSet; }
285 template <typename InitialVlansT = InitialVlans>
286 void SetInitialVlans(InitialVlansT&& value) {
287 m_initialVlansHasBeenSet = true;
288 m_initialVlans = std::forward<InitialVlansT>(value);
289 }
290 template <typename InitialVlansT = InitialVlans>
292 SetInitialVlans(std::forward<InitialVlansT>(value));
293 return *this;
294 }
296
298
305 inline const Aws::Vector<HostInfoForCreate>& GetHosts() const { return m_hosts; }
306 inline bool HostsHasBeenSet() const { return m_hostsHasBeenSet; }
307 template <typename HostsT = Aws::Vector<HostInfoForCreate>>
308 void SetHosts(HostsT&& value) {
309 m_hostsHasBeenSet = true;
310 m_hosts = std::forward<HostsT>(value);
311 }
312 template <typename HostsT = Aws::Vector<HostInfoForCreate>>
314 SetHosts(std::forward<HostsT>(value));
315 return *this;
316 }
317 template <typename HostsT = HostInfoForCreate>
319 m_hostsHasBeenSet = true;
320 m_hosts.emplace_back(std::forward<HostsT>(value));
321 return *this;
322 }
324
326
332 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
333 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
334 template <typename ConnectivityInfoT = ConnectivityInfo>
335 void SetConnectivityInfo(ConnectivityInfoT&& value) {
336 m_connectivityInfoHasBeenSet = true;
337 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
338 }
339 template <typename ConnectivityInfoT = ConnectivityInfo>
340 CreateEnvironmentRequest& WithConnectivityInfo(ConnectivityInfoT&& value) {
341 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
342 return *this;
343 }
345
347
352 inline const VcfHostnames& GetVcfHostnames() const { return m_vcfHostnames; }
353 inline bool VcfHostnamesHasBeenSet() const { return m_vcfHostnamesHasBeenSet; }
354 template <typename VcfHostnamesT = VcfHostnames>
355 void SetVcfHostnames(VcfHostnamesT&& value) {
356 m_vcfHostnamesHasBeenSet = true;
357 m_vcfHostnames = std::forward<VcfHostnamesT>(value);
358 }
359 template <typename VcfHostnamesT = VcfHostnames>
361 SetVcfHostnames(std::forward<VcfHostnamesT>(value));
362 return *this;
363 }
365
367
374 inline const Aws::String& GetSiteId() const { return m_siteId; }
375 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
376 template <typename SiteIdT = Aws::String>
377 void SetSiteId(SiteIdT&& value) {
378 m_siteIdHasBeenSet = true;
379 m_siteId = std::forward<SiteIdT>(value);
380 }
381 template <typename SiteIdT = Aws::String>
383 SetSiteId(std::forward<SiteIdT>(value));
384 return *this;
385 }
387 private:
389
390 Aws::String m_environmentName;
391
392 Aws::String m_kmsKeyId;
393
395
396 ServiceAccessSecurityGroups m_serviceAccessSecurityGroups;
397
398 Aws::String m_vpcId;
399
400 Aws::String m_serviceAccessSubnetId;
401
402 VcfVersion m_vcfVersion{VcfVersion::NOT_SET};
403
404 bool m_termsAccepted{false};
405
406 Aws::Vector<LicenseInfo> m_licenseInfo;
407
408 InitialVlans m_initialVlans;
409
411
412 ConnectivityInfo m_connectivityInfo;
413
414 VcfHostnames m_vcfHostnames;
415
416 Aws::String m_siteId;
417 bool m_clientTokenHasBeenSet = true;
418 bool m_environmentNameHasBeenSet = false;
419 bool m_kmsKeyIdHasBeenSet = false;
420 bool m_tagsHasBeenSet = false;
421 bool m_serviceAccessSecurityGroupsHasBeenSet = false;
422 bool m_vpcIdHasBeenSet = false;
423 bool m_serviceAccessSubnetIdHasBeenSet = false;
424 bool m_vcfVersionHasBeenSet = false;
425 bool m_termsAcceptedHasBeenSet = false;
426 bool m_licenseInfoHasBeenSet = false;
427 bool m_initialVlansHasBeenSet = false;
428 bool m_hostsHasBeenSet = false;
429 bool m_connectivityInfoHasBeenSet = false;
430 bool m_vcfHostnamesHasBeenSet = false;
431 bool m_siteIdHasBeenSet = false;
432};
433
434} // namespace Model
435} // namespace EVS
436} // 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