AWS SDK for C++

AWS SDK for C++ Version 1.11.796

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
259 inline const Aws::Vector<LicenseInfo>& GetLicenseInfo() const { return m_licenseInfo; }
260 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
261 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
262 void SetLicenseInfo(LicenseInfoT&& value) {
263 m_licenseInfoHasBeenSet = true;
264 m_licenseInfo = std::forward<LicenseInfoT>(value);
265 }
266 template <typename LicenseInfoT = Aws::Vector<LicenseInfo>>
268 SetLicenseInfo(std::forward<LicenseInfoT>(value));
269 return *this;
270 }
271 template <typename LicenseInfoT = LicenseInfo>
273 m_licenseInfoHasBeenSet = true;
274 m_licenseInfo.emplace_back(std::forward<LicenseInfoT>(value));
275 return *this;
276 }
278
280
286 inline const InitialVlans& GetInitialVlans() const { return m_initialVlans; }
287 inline bool InitialVlansHasBeenSet() const { return m_initialVlansHasBeenSet; }
288 template <typename InitialVlansT = InitialVlans>
289 void SetInitialVlans(InitialVlansT&& value) {
290 m_initialVlansHasBeenSet = true;
291 m_initialVlans = std::forward<InitialVlansT>(value);
292 }
293 template <typename InitialVlansT = InitialVlans>
295 SetInitialVlans(std::forward<InitialVlansT>(value));
296 return *this;
297 }
299
301
308 inline const Aws::Vector<HostInfoForCreate>& GetHosts() const { return m_hosts; }
309 inline bool HostsHasBeenSet() const { return m_hostsHasBeenSet; }
310 template <typename HostsT = Aws::Vector<HostInfoForCreate>>
311 void SetHosts(HostsT&& value) {
312 m_hostsHasBeenSet = true;
313 m_hosts = std::forward<HostsT>(value);
314 }
315 template <typename HostsT = Aws::Vector<HostInfoForCreate>>
317 SetHosts(std::forward<HostsT>(value));
318 return *this;
319 }
320 template <typename HostsT = HostInfoForCreate>
322 m_hostsHasBeenSet = true;
323 m_hosts.emplace_back(std::forward<HostsT>(value));
324 return *this;
325 }
327
329
335 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
336 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
337 template <typename ConnectivityInfoT = ConnectivityInfo>
338 void SetConnectivityInfo(ConnectivityInfoT&& value) {
339 m_connectivityInfoHasBeenSet = true;
340 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
341 }
342 template <typename ConnectivityInfoT = ConnectivityInfo>
343 CreateEnvironmentRequest& WithConnectivityInfo(ConnectivityInfoT&& value) {
344 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
345 return *this;
346 }
348
350
355 inline const VcfHostnames& GetVcfHostnames() const { return m_vcfHostnames; }
356 inline bool VcfHostnamesHasBeenSet() const { return m_vcfHostnamesHasBeenSet; }
357 template <typename VcfHostnamesT = VcfHostnames>
358 void SetVcfHostnames(VcfHostnamesT&& value) {
359 m_vcfHostnamesHasBeenSet = true;
360 m_vcfHostnames = std::forward<VcfHostnamesT>(value);
361 }
362 template <typename VcfHostnamesT = VcfHostnames>
364 SetVcfHostnames(std::forward<VcfHostnamesT>(value));
365 return *this;
366 }
368
370
377 inline const Aws::String& GetSiteId() const { return m_siteId; }
378 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
379 template <typename SiteIdT = Aws::String>
380 void SetSiteId(SiteIdT&& value) {
381 m_siteIdHasBeenSet = true;
382 m_siteId = std::forward<SiteIdT>(value);
383 }
384 template <typename SiteIdT = Aws::String>
386 SetSiteId(std::forward<SiteIdT>(value));
387 return *this;
388 }
390 private:
392
393 Aws::String m_environmentName;
394
395 Aws::String m_kmsKeyId;
396
398
399 ServiceAccessSecurityGroups m_serviceAccessSecurityGroups;
400
401 Aws::String m_vpcId;
402
403 Aws::String m_serviceAccessSubnetId;
404
405 VcfVersion m_vcfVersion{VcfVersion::NOT_SET};
406
407 bool m_termsAccepted{false};
408
409 Aws::Vector<LicenseInfo> m_licenseInfo;
410
411 InitialVlans m_initialVlans;
412
414
415 ConnectivityInfo m_connectivityInfo;
416
417 VcfHostnames m_vcfHostnames;
418
419 Aws::String m_siteId;
420 bool m_clientTokenHasBeenSet = true;
421 bool m_environmentNameHasBeenSet = false;
422 bool m_kmsKeyIdHasBeenSet = false;
423 bool m_tagsHasBeenSet = false;
424 bool m_serviceAccessSecurityGroupsHasBeenSet = false;
425 bool m_vpcIdHasBeenSet = false;
426 bool m_serviceAccessSubnetIdHasBeenSet = false;
427 bool m_vcfVersionHasBeenSet = false;
428 bool m_termsAcceptedHasBeenSet = false;
429 bool m_licenseInfoHasBeenSet = false;
430 bool m_initialVlansHasBeenSet = false;
431 bool m_hostsHasBeenSet = false;
432 bool m_connectivityInfoHasBeenSet = false;
433 bool m_vcfHostnamesHasBeenSet = false;
434 bool m_siteIdHasBeenSet = false;
435};
436
437} // namespace Model
438} // namespace EVS
439} // 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