AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVpcEndpointRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/VpcEndpointType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/IpAddressType.h>
13#include <aws/ec2/model/DnsOptionsSpecification.h>
14#include <aws/ec2/model/TagSpecification.h>
15#include <aws/ec2/model/SubnetConfiguration.h>
16#include <utility>
17
18namespace Aws
19{
20namespace EC2
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcEndpoint"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
52 inline bool GetDryRun() const{ return m_dryRun; }
53 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
55 inline CreateVpcEndpointRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
57
59
62 inline const VpcEndpointType& GetVpcEndpointType() const{ return m_vpcEndpointType; }
63 inline bool VpcEndpointTypeHasBeenSet() const { return m_vpcEndpointTypeHasBeenSet; }
64 inline void SetVpcEndpointType(const VpcEndpointType& value) { m_vpcEndpointTypeHasBeenSet = true; m_vpcEndpointType = value; }
65 inline void SetVpcEndpointType(VpcEndpointType&& value) { m_vpcEndpointTypeHasBeenSet = true; m_vpcEndpointType = std::move(value); }
67 inline CreateVpcEndpointRequest& WithVpcEndpointType(VpcEndpointType&& value) { SetVpcEndpointType(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
75 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
76 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
77 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
78 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
79 inline CreateVpcEndpointRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
80 inline CreateVpcEndpointRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
81 inline CreateVpcEndpointRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
83
85
88 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
89 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
90 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
91 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
92 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
93 inline CreateVpcEndpointRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
94 inline CreateVpcEndpointRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
95 inline CreateVpcEndpointRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
97
99
105 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
106 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
107 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
108 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
109 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
110 inline CreateVpcEndpointRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
111 inline CreateVpcEndpointRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
112 inline CreateVpcEndpointRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
114
116
119 inline const Aws::Vector<Aws::String>& GetRouteTableIds() const{ return m_routeTableIds; }
120 inline bool RouteTableIdsHasBeenSet() const { return m_routeTableIdsHasBeenSet; }
121 inline void SetRouteTableIds(const Aws::Vector<Aws::String>& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds = value; }
122 inline void SetRouteTableIds(Aws::Vector<Aws::String>&& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds = std::move(value); }
124 inline CreateVpcEndpointRequest& WithRouteTableIds(Aws::Vector<Aws::String>&& value) { SetRouteTableIds(std::move(value)); return *this;}
125 inline CreateVpcEndpointRequest& AddRouteTableIds(const Aws::String& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
126 inline CreateVpcEndpointRequest& AddRouteTableIds(Aws::String&& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(std::move(value)); return *this; }
127 inline CreateVpcEndpointRequest& AddRouteTableIds(const char* value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
129
131
136 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
137 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
138 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
139 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
141 inline CreateVpcEndpointRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
142 inline CreateVpcEndpointRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
143 inline CreateVpcEndpointRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
144 inline CreateVpcEndpointRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
146
148
153 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
154 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
155 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
156 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
159 inline CreateVpcEndpointRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
160 inline CreateVpcEndpointRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
161 inline CreateVpcEndpointRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
163
165
168 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
169 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
170 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
171 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
172 inline CreateVpcEndpointRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
173 inline CreateVpcEndpointRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
175
177
180 inline const DnsOptionsSpecification& GetDnsOptions() const{ return m_dnsOptions; }
181 inline bool DnsOptionsHasBeenSet() const { return m_dnsOptionsHasBeenSet; }
182 inline void SetDnsOptions(const DnsOptionsSpecification& value) { m_dnsOptionsHasBeenSet = true; m_dnsOptions = value; }
183 inline void SetDnsOptions(DnsOptionsSpecification&& value) { m_dnsOptionsHasBeenSet = true; m_dnsOptions = std::move(value); }
185 inline CreateVpcEndpointRequest& WithDnsOptions(DnsOptionsSpecification&& value) { SetDnsOptions(std::move(value)); return *this;}
187
189
195 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
196 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
197 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
198 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
199 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
200 inline CreateVpcEndpointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
201 inline CreateVpcEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
202 inline CreateVpcEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
204
206
219 inline bool GetPrivateDnsEnabled() const{ return m_privateDnsEnabled; }
220 inline bool PrivateDnsEnabledHasBeenSet() const { return m_privateDnsEnabledHasBeenSet; }
221 inline void SetPrivateDnsEnabled(bool value) { m_privateDnsEnabledHasBeenSet = true; m_privateDnsEnabled = value; }
222 inline CreateVpcEndpointRequest& WithPrivateDnsEnabled(bool value) { SetPrivateDnsEnabled(value); return *this;}
224
226
229 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
230 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
231 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
232 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
235 inline CreateVpcEndpointRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
236 inline CreateVpcEndpointRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
238
240
243 inline const Aws::Vector<SubnetConfiguration>& GetSubnetConfigurations() const{ return m_subnetConfigurations; }
244 inline bool SubnetConfigurationsHasBeenSet() const { return m_subnetConfigurationsHasBeenSet; }
245 inline void SetSubnetConfigurations(const Aws::Vector<SubnetConfiguration>& value) { m_subnetConfigurationsHasBeenSet = true; m_subnetConfigurations = value; }
246 inline void SetSubnetConfigurations(Aws::Vector<SubnetConfiguration>&& value) { m_subnetConfigurationsHasBeenSet = true; m_subnetConfigurations = std::move(value); }
249 inline CreateVpcEndpointRequest& AddSubnetConfigurations(const SubnetConfiguration& value) { m_subnetConfigurationsHasBeenSet = true; m_subnetConfigurations.push_back(value); return *this; }
250 inline CreateVpcEndpointRequest& AddSubnetConfigurations(SubnetConfiguration&& value) { m_subnetConfigurationsHasBeenSet = true; m_subnetConfigurations.push_back(std::move(value)); return *this; }
252 private:
253
254 bool m_dryRun;
255 bool m_dryRunHasBeenSet = false;
256
257 VpcEndpointType m_vpcEndpointType;
258 bool m_vpcEndpointTypeHasBeenSet = false;
259
260 Aws::String m_vpcId;
261 bool m_vpcIdHasBeenSet = false;
262
263 Aws::String m_serviceName;
264 bool m_serviceNameHasBeenSet = false;
265
266 Aws::String m_policyDocument;
267 bool m_policyDocumentHasBeenSet = false;
268
269 Aws::Vector<Aws::String> m_routeTableIds;
270 bool m_routeTableIdsHasBeenSet = false;
271
272 Aws::Vector<Aws::String> m_subnetIds;
273 bool m_subnetIdsHasBeenSet = false;
274
275 Aws::Vector<Aws::String> m_securityGroupIds;
276 bool m_securityGroupIdsHasBeenSet = false;
277
278 IpAddressType m_ipAddressType;
279 bool m_ipAddressTypeHasBeenSet = false;
280
281 DnsOptionsSpecification m_dnsOptions;
282 bool m_dnsOptionsHasBeenSet = false;
283
284 Aws::String m_clientToken;
285 bool m_clientTokenHasBeenSet = false;
286
287 bool m_privateDnsEnabled;
288 bool m_privateDnsEnabledHasBeenSet = false;
289
290 Aws::Vector<TagSpecification> m_tagSpecifications;
291 bool m_tagSpecificationsHasBeenSet = false;
292
293 Aws::Vector<SubnetConfiguration> m_subnetConfigurations;
294 bool m_subnetConfigurationsHasBeenSet = false;
295 };
296
297} // namespace Model
298} // namespace EC2
299} // namespace Aws
CreateVpcEndpointRequest & WithVpcId(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateVpcEndpointRequest & AddTagSpecifications(TagSpecification &&value)
CreateVpcEndpointRequest & WithVpcId(const char *value)
void SetRouteTableIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateVpcEndpointRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateVpcEndpointRequest & WithSubnetConfigurations(Aws::Vector< SubnetConfiguration > &&value)
CreateVpcEndpointRequest & WithDryRun(bool value)
CreateVpcEndpointRequest & WithVpcEndpointType(const VpcEndpointType &value)
void SetSubnetConfigurations(Aws::Vector< SubnetConfiguration > &&value)
const DnsOptionsSpecification & GetDnsOptions() const
CreateVpcEndpointRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
CreateVpcEndpointRequest & AddRouteTableIds(const char *value)
CreateVpcEndpointRequest & AddSubnetIds(Aws::String &&value)
CreateVpcEndpointRequest & AddSecurityGroupIds(const Aws::String &value)
CreateVpcEndpointRequest & WithDnsOptions(const DnsOptionsSpecification &value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateVpcEndpointRequest & WithPrivateDnsEnabled(bool value)
CreateVpcEndpointRequest & WithPolicyDocument(const Aws::String &value)
CreateVpcEndpointRequest & AddSubnetConfigurations(const SubnetConfiguration &value)
void SetSubnetConfigurations(const Aws::Vector< SubnetConfiguration > &value)
CreateVpcEndpointRequest & WithSubnetConfigurations(const Aws::Vector< SubnetConfiguration > &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateVpcEndpointRequest & AddSubnetIds(const Aws::String &value)
CreateVpcEndpointRequest & WithRouteTableIds(const Aws::Vector< Aws::String > &value)
CreateVpcEndpointRequest & WithVpcEndpointType(VpcEndpointType &&value)
void SetDnsOptions(const DnsOptionsSpecification &value)
CreateVpcEndpointRequest & AddTagSpecifications(const TagSpecification &value)
CreateVpcEndpointRequest & AddSecurityGroupIds(Aws::String &&value)
CreateVpcEndpointRequest & WithServiceName(const Aws::String &value)
const Aws::Vector< SubnetConfiguration > & GetSubnetConfigurations() const
CreateVpcEndpointRequest & WithClientToken(const char *value)
CreateVpcEndpointRequest & WithIpAddressType(const IpAddressType &value)
CreateVpcEndpointRequest & AddSecurityGroupIds(const char *value)
const VpcEndpointType & GetVpcEndpointType() const
CreateVpcEndpointRequest & WithClientToken(const Aws::String &value)
CreateVpcEndpointRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateVpcEndpointRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateVpcEndpointRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateVpcEndpointRequest & WithPolicyDocument(Aws::String &&value)
CreateVpcEndpointRequest & WithServiceName(const char *value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetRouteTableIds(Aws::Vector< Aws::String > &&value)
CreateVpcEndpointRequest & AddSubnetIds(const char *value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_EC2_API Aws::String SerializePayload() const override
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateVpcEndpointRequest & AddSubnetConfigurations(SubnetConfiguration &&value)
const Aws::Vector< Aws::String > & GetRouteTableIds() const
CreateVpcEndpointRequest & WithPolicyDocument(const char *value)
CreateVpcEndpointRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateVpcEndpointRequest & WithRouteTableIds(Aws::Vector< Aws::String > &&value)
CreateVpcEndpointRequest & AddRouteTableIds(const Aws::String &value)
CreateVpcEndpointRequest & WithServiceName(Aws::String &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateVpcEndpointRequest & AddRouteTableIds(Aws::String &&value)
CreateVpcEndpointRequest & WithDnsOptions(DnsOptionsSpecification &&value)
void SetDnsOptions(DnsOptionsSpecification &&value)
void SetVpcEndpointType(const VpcEndpointType &value)
CreateVpcEndpointRequest & WithClientToken(Aws::String &&value)
CreateVpcEndpointRequest & WithIpAddressType(IpAddressType &&value)
void SetIpAddressType(const IpAddressType &value)
CreateVpcEndpointRequest & WithVpcId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector