AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
187 inline bool GetTermsAccepted() const { return m_termsAccepted; }
188 inline bool TermsAcceptedHasBeenSet() const { return m_termsAcceptedHasBeenSet; }
189 inline void SetTermsAccepted(bool value) { m_termsAcceptedHasBeenSet = true; m_termsAccepted = value; }
190 inline CreateEnvironmentRequest& WithTermsAccepted(bool value) { SetTermsAccepted(value); return *this;}
192
194
203 inline const Aws::Vector<LicenseInfo>& GetLicenseInfo() const { return m_licenseInfo; }
204 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
205 template<typename LicenseInfoT = Aws::Vector<LicenseInfo>>
206 void SetLicenseInfo(LicenseInfoT&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::forward<LicenseInfoT>(value); }
207 template<typename LicenseInfoT = Aws::Vector<LicenseInfo>>
208 CreateEnvironmentRequest& WithLicenseInfo(LicenseInfoT&& value) { SetLicenseInfo(std::forward<LicenseInfoT>(value)); return *this;}
209 template<typename LicenseInfoT = LicenseInfo>
210 CreateEnvironmentRequest& AddLicenseInfo(LicenseInfoT&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo.emplace_back(std::forward<LicenseInfoT>(value)); return *this; }
212
214
218 inline const InitialVlans& GetInitialVlans() const { return m_initialVlans; }
219 inline bool InitialVlansHasBeenSet() const { return m_initialVlansHasBeenSet; }
220 template<typename InitialVlansT = InitialVlans>
221 void SetInitialVlans(InitialVlansT&& value) { m_initialVlansHasBeenSet = true; m_initialVlans = std::forward<InitialVlansT>(value); }
222 template<typename InitialVlansT = InitialVlans>
223 CreateEnvironmentRequest& WithInitialVlans(InitialVlansT&& value) { SetInitialVlans(std::forward<InitialVlansT>(value)); return *this;}
225
227
234 inline const Aws::Vector<HostInfoForCreate>& GetHosts() const { return m_hosts; }
235 inline bool HostsHasBeenSet() const { return m_hostsHasBeenSet; }
236 template<typename HostsT = Aws::Vector<HostInfoForCreate>>
237 void SetHosts(HostsT&& value) { m_hostsHasBeenSet = true; m_hosts = std::forward<HostsT>(value); }
238 template<typename HostsT = Aws::Vector<HostInfoForCreate>>
239 CreateEnvironmentRequest& WithHosts(HostsT&& value) { SetHosts(std::forward<HostsT>(value)); return *this;}
240 template<typename HostsT = HostInfoForCreate>
241 CreateEnvironmentRequest& AddHosts(HostsT&& value) { m_hostsHasBeenSet = true; m_hosts.emplace_back(std::forward<HostsT>(value)); return *this; }
243
245
251 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
252 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
253 template<typename ConnectivityInfoT = ConnectivityInfo>
254 void SetConnectivityInfo(ConnectivityInfoT&& value) { m_connectivityInfoHasBeenSet = true; m_connectivityInfo = std::forward<ConnectivityInfoT>(value); }
255 template<typename ConnectivityInfoT = ConnectivityInfo>
256 CreateEnvironmentRequest& WithConnectivityInfo(ConnectivityInfoT&& value) { SetConnectivityInfo(std::forward<ConnectivityInfoT>(value)); return *this;}
258
260
265 inline const VcfHostnames& GetVcfHostnames() const { return m_vcfHostnames; }
266 inline bool VcfHostnamesHasBeenSet() const { return m_vcfHostnamesHasBeenSet; }
267 template<typename VcfHostnamesT = VcfHostnames>
268 void SetVcfHostnames(VcfHostnamesT&& value) { m_vcfHostnamesHasBeenSet = true; m_vcfHostnames = std::forward<VcfHostnamesT>(value); }
269 template<typename VcfHostnamesT = VcfHostnames>
270 CreateEnvironmentRequest& WithVcfHostnames(VcfHostnamesT&& value) { SetVcfHostnames(std::forward<VcfHostnamesT>(value)); return *this;}
272
274
281 inline const Aws::String& GetSiteId() const { return m_siteId; }
282 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
283 template<typename SiteIdT = Aws::String>
284 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
285 template<typename SiteIdT = Aws::String>
286 CreateEnvironmentRequest& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
288 private:
289
291 bool m_clientTokenHasBeenSet = true;
292
293 Aws::String m_environmentName;
294 bool m_environmentNameHasBeenSet = false;
295
296 Aws::String m_kmsKeyId;
297 bool m_kmsKeyIdHasBeenSet = false;
298
300 bool m_tagsHasBeenSet = false;
301
302 ServiceAccessSecurityGroups m_serviceAccessSecurityGroups;
303 bool m_serviceAccessSecurityGroupsHasBeenSet = false;
304
305 Aws::String m_vpcId;
306 bool m_vpcIdHasBeenSet = false;
307
308 Aws::String m_serviceAccessSubnetId;
309 bool m_serviceAccessSubnetIdHasBeenSet = false;
310
311 VcfVersion m_vcfVersion{VcfVersion::NOT_SET};
312 bool m_vcfVersionHasBeenSet = false;
313
314 bool m_termsAccepted{false};
315 bool m_termsAcceptedHasBeenSet = false;
316
317 Aws::Vector<LicenseInfo> m_licenseInfo;
318 bool m_licenseInfoHasBeenSet = false;
319
320 InitialVlans m_initialVlans;
321 bool m_initialVlansHasBeenSet = false;
322
324 bool m_hostsHasBeenSet = false;
325
326 ConnectivityInfo m_connectivityInfo;
327 bool m_connectivityInfoHasBeenSet = false;
328
329 VcfHostnames m_vcfHostnames;
330 bool m_vcfHostnamesHasBeenSet = false;
331
332 Aws::String m_siteId;
333 bool m_siteIdHasBeenSet = false;
334 };
335
336} // namespace Model
337} // namespace EVS
338} // 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