AWS SDK for C++

AWS SDK for C++ Version 1.11.639

Loading...
Searching...
No Matches
CreateEnvironmentRequest.h
1
6#pragma once
7#include <aws/evs/EVS_EXPORTS.h>
8#include <aws/evs/EVSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/evs/model/ServiceAccessSecurityGroups.h>
12#include <aws/evs/model/VcfVersion.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/evs/model/InitialVlans.h>
15#include <aws/evs/model/ConnectivityInfo.h>
16#include <aws/evs/model/VcfHostnames.h>
17#include <aws/evs/model/LicenseInfo.h>
18#include <aws/evs/model/HostInfoForCreate.h>
19#include <utility>
20#include <aws/core/utils/UUID.h>
21
22namespace Aws
23{
24namespace EVS
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_EVS_API CreateEnvironmentRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; }
41
42 AWS_EVS_API Aws::String SerializePayload() const override;
43
45
46
48
55 inline const Aws::String& GetClientToken() const { return m_clientToken; }
56 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
57 template<typename ClientTokenT = Aws::String>
58 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
59 template<typename ClientTokenT = Aws::String>
60 CreateEnvironmentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
62
64
71 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
72 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
73 template<typename EnvironmentNameT = Aws::String>
74 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
75 template<typename EnvironmentNameT = Aws::String>
76 CreateEnvironmentRequest& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
78
80
85 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
86 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
87 template<typename KmsKeyIdT = Aws::String>
88 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
89 template<typename KmsKeyIdT = Aws::String>
90 CreateEnvironmentRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
92
94
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
103 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 CreateEnvironmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
105 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
108 }
110
112
124 inline const ServiceAccessSecurityGroups& GetServiceAccessSecurityGroups() const { return m_serviceAccessSecurityGroups; }
125 inline bool ServiceAccessSecurityGroupsHasBeenSet() const { return m_serviceAccessSecurityGroupsHasBeenSet; }
126 template<typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
127 void SetServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) { m_serviceAccessSecurityGroupsHasBeenSet = true; m_serviceAccessSecurityGroups = std::forward<ServiceAccessSecurityGroupsT>(value); }
128 template<typename ServiceAccessSecurityGroupsT = ServiceAccessSecurityGroups>
129 CreateEnvironmentRequest& WithServiceAccessSecurityGroups(ServiceAccessSecurityGroupsT&& value) { SetServiceAccessSecurityGroups(std::forward<ServiceAccessSecurityGroupsT>(value)); return *this;}
131
133
147 inline const Aws::String& GetVpcId() const { return m_vpcId; }
148 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
149 template<typename VpcIdT = Aws::String>
150 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
151 template<typename VpcIdT = Aws::String>
152 CreateEnvironmentRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
154
156
161 inline const Aws::String& GetServiceAccessSubnetId() const { return m_serviceAccessSubnetId; }
162 inline bool ServiceAccessSubnetIdHasBeenSet() const { return m_serviceAccessSubnetIdHasBeenSet; }
163 template<typename ServiceAccessSubnetIdT = Aws::String>
164 void SetServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) { m_serviceAccessSubnetIdHasBeenSet = true; m_serviceAccessSubnetId = std::forward<ServiceAccessSubnetIdT>(value); }
165 template<typename ServiceAccessSubnetIdT = Aws::String>
166 CreateEnvironmentRequest& WithServiceAccessSubnetId(ServiceAccessSubnetIdT&& value) { SetServiceAccessSubnetId(std::forward<ServiceAccessSubnetIdT>(value)); return *this;}
168
170
174 inline VcfVersion GetVcfVersion() const { return m_vcfVersion; }
175 inline bool VcfVersionHasBeenSet() const { return m_vcfVersionHasBeenSet; }
176 inline void SetVcfVersion(VcfVersion value) { m_vcfVersionHasBeenSet = true; m_vcfVersion = value; }
177 inline CreateEnvironmentRequest& WithVcfVersion(VcfVersion value) { SetVcfVersion(value); return *this;}
179
181
189 inline bool GetTermsAccepted() const { return m_termsAccepted; }
190 inline bool TermsAcceptedHasBeenSet() const { return m_termsAcceptedHasBeenSet; }
191 inline void SetTermsAccepted(bool value) { m_termsAcceptedHasBeenSet = true; m_termsAccepted = value; }
192 inline CreateEnvironmentRequest& WithTermsAccepted(bool value) { SetTermsAccepted(value); return *this;}
194
196
205 inline const Aws::Vector<LicenseInfo>& GetLicenseInfo() const { return m_licenseInfo; }
206 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
207 template<typename LicenseInfoT = Aws::Vector<LicenseInfo>>
208 void SetLicenseInfo(LicenseInfoT&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::forward<LicenseInfoT>(value); }
209 template<typename LicenseInfoT = Aws::Vector<LicenseInfo>>
210 CreateEnvironmentRequest& WithLicenseInfo(LicenseInfoT&& value) { SetLicenseInfo(std::forward<LicenseInfoT>(value)); return *this;}
211 template<typename LicenseInfoT = LicenseInfo>
212 CreateEnvironmentRequest& AddLicenseInfo(LicenseInfoT&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo.emplace_back(std::forward<LicenseInfoT>(value)); return *this; }
214
216
222 inline const InitialVlans& GetInitialVlans() const { return m_initialVlans; }
223 inline bool InitialVlansHasBeenSet() const { return m_initialVlansHasBeenSet; }
224 template<typename InitialVlansT = InitialVlans>
225 void SetInitialVlans(InitialVlansT&& value) { m_initialVlansHasBeenSet = true; m_initialVlans = std::forward<InitialVlansT>(value); }
226 template<typename InitialVlansT = InitialVlans>
227 CreateEnvironmentRequest& WithInitialVlans(InitialVlansT&& value) { SetInitialVlans(std::forward<InitialVlansT>(value)); return *this;}
229
231
238 inline const Aws::Vector<HostInfoForCreate>& GetHosts() const { return m_hosts; }
239 inline bool HostsHasBeenSet() const { return m_hostsHasBeenSet; }
240 template<typename HostsT = Aws::Vector<HostInfoForCreate>>
241 void SetHosts(HostsT&& value) { m_hostsHasBeenSet = true; m_hosts = std::forward<HostsT>(value); }
242 template<typename HostsT = Aws::Vector<HostInfoForCreate>>
243 CreateEnvironmentRequest& WithHosts(HostsT&& value) { SetHosts(std::forward<HostsT>(value)); return *this;}
244 template<typename HostsT = HostInfoForCreate>
245 CreateEnvironmentRequest& AddHosts(HostsT&& value) { m_hostsHasBeenSet = true; m_hosts.emplace_back(std::forward<HostsT>(value)); return *this; }
247
249
255 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
256 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
257 template<typename ConnectivityInfoT = ConnectivityInfo>
258 void SetConnectivityInfo(ConnectivityInfoT&& value) { m_connectivityInfoHasBeenSet = true; m_connectivityInfo = std::forward<ConnectivityInfoT>(value); }
259 template<typename ConnectivityInfoT = ConnectivityInfo>
260 CreateEnvironmentRequest& WithConnectivityInfo(ConnectivityInfoT&& value) { SetConnectivityInfo(std::forward<ConnectivityInfoT>(value)); return *this;}
262
264
269 inline const VcfHostnames& GetVcfHostnames() const { return m_vcfHostnames; }
270 inline bool VcfHostnamesHasBeenSet() const { return m_vcfHostnamesHasBeenSet; }
271 template<typename VcfHostnamesT = VcfHostnames>
272 void SetVcfHostnames(VcfHostnamesT&& value) { m_vcfHostnamesHasBeenSet = true; m_vcfHostnames = std::forward<VcfHostnamesT>(value); }
273 template<typename VcfHostnamesT = VcfHostnames>
274 CreateEnvironmentRequest& WithVcfHostnames(VcfHostnamesT&& value) { SetVcfHostnames(std::forward<VcfHostnamesT>(value)); return *this;}
276
278
285 inline const Aws::String& GetSiteId() const { return m_siteId; }
286 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
287 template<typename SiteIdT = Aws::String>
288 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
289 template<typename SiteIdT = Aws::String>
290 CreateEnvironmentRequest& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
292 private:
293
295 bool m_clientTokenHasBeenSet = true;
296
297 Aws::String m_environmentName;
298 bool m_environmentNameHasBeenSet = false;
299
300 Aws::String m_kmsKeyId;
301 bool m_kmsKeyIdHasBeenSet = false;
302
304 bool m_tagsHasBeenSet = false;
305
306 ServiceAccessSecurityGroups m_serviceAccessSecurityGroups;
307 bool m_serviceAccessSecurityGroupsHasBeenSet = false;
308
309 Aws::String m_vpcId;
310 bool m_vpcIdHasBeenSet = false;
311
312 Aws::String m_serviceAccessSubnetId;
313 bool m_serviceAccessSubnetIdHasBeenSet = false;
314
315 VcfVersion m_vcfVersion{VcfVersion::NOT_SET};
316 bool m_vcfVersionHasBeenSet = false;
317
318 bool m_termsAccepted{false};
319 bool m_termsAcceptedHasBeenSet = false;
320
321 Aws::Vector<LicenseInfo> m_licenseInfo;
322 bool m_licenseInfoHasBeenSet = false;
323
324 InitialVlans m_initialVlans;
325 bool m_initialVlansHasBeenSet = false;
326
328 bool m_hostsHasBeenSet = false;
329
330 ConnectivityInfo m_connectivityInfo;
331 bool m_connectivityInfoHasBeenSet = false;
332
333 VcfHostnames m_vcfHostnames;
334 bool m_vcfHostnamesHasBeenSet = false;
335
336 Aws::String m_siteId;
337 bool m_siteIdHasBeenSet = false;
338 };
339
340} // namespace Model
341} // namespace EVS
342} // 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