AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyVpcEndpointRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/IpAddressType.h>
12#include <aws/ec2/model/DnsOptionsSpecification.h>
13#include <aws/ec2/model/SubnetConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyVpcEndpoint"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const{ return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline ModifyVpcEndpointRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
60 inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
61 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
62 inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
63 inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); }
64 inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
65 inline ModifyVpcEndpointRequest& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
66 inline ModifyVpcEndpointRequest& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;}
67 inline ModifyVpcEndpointRequest& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
69
71
75 inline bool GetResetPolicy() const{ return m_resetPolicy; }
76 inline bool ResetPolicyHasBeenSet() const { return m_resetPolicyHasBeenSet; }
77 inline void SetResetPolicy(bool value) { m_resetPolicyHasBeenSet = true; m_resetPolicy = value; }
78 inline ModifyVpcEndpointRequest& WithResetPolicy(bool value) { SetResetPolicy(value); return *this;}
80
82
86 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
87 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
88 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
89 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
90 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
91 inline ModifyVpcEndpointRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
92 inline ModifyVpcEndpointRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
93 inline ModifyVpcEndpointRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
95
97
101 inline const Aws::Vector<Aws::String>& GetAddRouteTableIds() const{ return m_addRouteTableIds; }
102 inline bool AddRouteTableIdsHasBeenSet() const { return m_addRouteTableIdsHasBeenSet; }
103 inline void SetAddRouteTableIds(const Aws::Vector<Aws::String>& value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds = value; }
104 inline void SetAddRouteTableIds(Aws::Vector<Aws::String>&& value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds = std::move(value); }
107 inline ModifyVpcEndpointRequest& AddAddRouteTableIds(const Aws::String& value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds.push_back(value); return *this; }
108 inline ModifyVpcEndpointRequest& AddAddRouteTableIds(Aws::String&& value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds.push_back(std::move(value)); return *this; }
109 inline ModifyVpcEndpointRequest& AddAddRouteTableIds(const char* value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds.push_back(value); return *this; }
111
113
117 inline const Aws::Vector<Aws::String>& GetRemoveRouteTableIds() const{ return m_removeRouteTableIds; }
118 inline bool RemoveRouteTableIdsHasBeenSet() const { return m_removeRouteTableIdsHasBeenSet; }
119 inline void SetRemoveRouteTableIds(const Aws::Vector<Aws::String>& value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds = value; }
120 inline void SetRemoveRouteTableIds(Aws::Vector<Aws::String>&& value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds = std::move(value); }
123 inline ModifyVpcEndpointRequest& AddRemoveRouteTableIds(const Aws::String& value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds.push_back(value); return *this; }
124 inline ModifyVpcEndpointRequest& AddRemoveRouteTableIds(Aws::String&& value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds.push_back(std::move(value)); return *this; }
125 inline ModifyVpcEndpointRequest& AddRemoveRouteTableIds(const char* value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds.push_back(value); return *this; }
127
129
134 inline const Aws::Vector<Aws::String>& GetAddSubnetIds() const{ return m_addSubnetIds; }
135 inline bool AddSubnetIdsHasBeenSet() const { return m_addSubnetIdsHasBeenSet; }
136 inline void SetAddSubnetIds(const Aws::Vector<Aws::String>& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = value; }
137 inline void SetAddSubnetIds(Aws::Vector<Aws::String>&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = std::move(value); }
139 inline ModifyVpcEndpointRequest& WithAddSubnetIds(Aws::Vector<Aws::String>&& value) { SetAddSubnetIds(std::move(value)); return *this;}
140 inline ModifyVpcEndpointRequest& AddAddSubnetIds(const Aws::String& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; }
141 inline ModifyVpcEndpointRequest& AddAddSubnetIds(Aws::String&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(std::move(value)); return *this; }
142 inline ModifyVpcEndpointRequest& AddAddSubnetIds(const char* value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; }
144
146
150 inline const Aws::Vector<Aws::String>& GetRemoveSubnetIds() const{ return m_removeSubnetIds; }
151 inline bool RemoveSubnetIdsHasBeenSet() const { return m_removeSubnetIdsHasBeenSet; }
152 inline void SetRemoveSubnetIds(const Aws::Vector<Aws::String>& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = value; }
153 inline void SetRemoveSubnetIds(Aws::Vector<Aws::String>&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = std::move(value); }
156 inline ModifyVpcEndpointRequest& AddRemoveSubnetIds(const Aws::String& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; }
157 inline ModifyVpcEndpointRequest& AddRemoveSubnetIds(Aws::String&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(std::move(value)); return *this; }
158 inline ModifyVpcEndpointRequest& AddRemoveSubnetIds(const char* value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; }
160
162
166 inline const Aws::Vector<Aws::String>& GetAddSecurityGroupIds() const{ return m_addSecurityGroupIds; }
167 inline bool AddSecurityGroupIdsHasBeenSet() const { return m_addSecurityGroupIdsHasBeenSet; }
168 inline void SetAddSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds = value; }
169 inline void SetAddSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds = std::move(value); }
172 inline ModifyVpcEndpointRequest& AddAddSecurityGroupIds(const Aws::String& value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds.push_back(value); return *this; }
173 inline ModifyVpcEndpointRequest& AddAddSecurityGroupIds(Aws::String&& value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds.push_back(std::move(value)); return *this; }
174 inline ModifyVpcEndpointRequest& AddAddSecurityGroupIds(const char* value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds.push_back(value); return *this; }
176
178
182 inline const Aws::Vector<Aws::String>& GetRemoveSecurityGroupIds() const{ return m_removeSecurityGroupIds; }
183 inline bool RemoveSecurityGroupIdsHasBeenSet() const { return m_removeSecurityGroupIdsHasBeenSet; }
184 inline void SetRemoveSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds = value; }
185 inline void SetRemoveSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds = std::move(value); }
188 inline ModifyVpcEndpointRequest& AddRemoveSecurityGroupIds(const Aws::String& value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds.push_back(value); return *this; }
189 inline ModifyVpcEndpointRequest& AddRemoveSecurityGroupIds(Aws::String&& value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds.push_back(std::move(value)); return *this; }
190 inline ModifyVpcEndpointRequest& AddRemoveSecurityGroupIds(const char* value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds.push_back(value); return *this; }
192
194
197 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
198 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
199 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
200 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
201 inline ModifyVpcEndpointRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
202 inline ModifyVpcEndpointRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
204
206
209 inline const DnsOptionsSpecification& GetDnsOptions() const{ return m_dnsOptions; }
210 inline bool DnsOptionsHasBeenSet() const { return m_dnsOptionsHasBeenSet; }
211 inline void SetDnsOptions(const DnsOptionsSpecification& value) { m_dnsOptionsHasBeenSet = true; m_dnsOptions = value; }
212 inline void SetDnsOptions(DnsOptionsSpecification&& value) { m_dnsOptionsHasBeenSet = true; m_dnsOptions = std::move(value); }
214 inline ModifyVpcEndpointRequest& WithDnsOptions(DnsOptionsSpecification&& value) { SetDnsOptions(std::move(value)); return *this;}
216
218
222 inline bool GetPrivateDnsEnabled() const{ return m_privateDnsEnabled; }
223 inline bool PrivateDnsEnabledHasBeenSet() const { return m_privateDnsEnabledHasBeenSet; }
224 inline void SetPrivateDnsEnabled(bool value) { m_privateDnsEnabledHasBeenSet = true; m_privateDnsEnabled = value; }
225 inline ModifyVpcEndpointRequest& WithPrivateDnsEnabled(bool value) { SetPrivateDnsEnabled(value); return *this;}
227
229
232 inline const Aws::Vector<SubnetConfiguration>& GetSubnetConfigurations() const{ return m_subnetConfigurations; }
233 inline bool SubnetConfigurationsHasBeenSet() const { return m_subnetConfigurationsHasBeenSet; }
234 inline void SetSubnetConfigurations(const Aws::Vector<SubnetConfiguration>& value) { m_subnetConfigurationsHasBeenSet = true; m_subnetConfigurations = value; }
235 inline void SetSubnetConfigurations(Aws::Vector<SubnetConfiguration>&& value) { m_subnetConfigurationsHasBeenSet = true; m_subnetConfigurations = std::move(value); }
238 inline ModifyVpcEndpointRequest& AddSubnetConfigurations(const SubnetConfiguration& value) { m_subnetConfigurationsHasBeenSet = true; m_subnetConfigurations.push_back(value); return *this; }
239 inline ModifyVpcEndpointRequest& AddSubnetConfigurations(SubnetConfiguration&& value) { m_subnetConfigurationsHasBeenSet = true; m_subnetConfigurations.push_back(std::move(value)); return *this; }
241 private:
242
243 bool m_dryRun;
244 bool m_dryRunHasBeenSet = false;
245
246 Aws::String m_vpcEndpointId;
247 bool m_vpcEndpointIdHasBeenSet = false;
248
249 bool m_resetPolicy;
250 bool m_resetPolicyHasBeenSet = false;
251
252 Aws::String m_policyDocument;
253 bool m_policyDocumentHasBeenSet = false;
254
255 Aws::Vector<Aws::String> m_addRouteTableIds;
256 bool m_addRouteTableIdsHasBeenSet = false;
257
258 Aws::Vector<Aws::String> m_removeRouteTableIds;
259 bool m_removeRouteTableIdsHasBeenSet = false;
260
261 Aws::Vector<Aws::String> m_addSubnetIds;
262 bool m_addSubnetIdsHasBeenSet = false;
263
264 Aws::Vector<Aws::String> m_removeSubnetIds;
265 bool m_removeSubnetIdsHasBeenSet = false;
266
267 Aws::Vector<Aws::String> m_addSecurityGroupIds;
268 bool m_addSecurityGroupIdsHasBeenSet = false;
269
270 Aws::Vector<Aws::String> m_removeSecurityGroupIds;
271 bool m_removeSecurityGroupIdsHasBeenSet = false;
272
273 IpAddressType m_ipAddressType;
274 bool m_ipAddressTypeHasBeenSet = false;
275
276 DnsOptionsSpecification m_dnsOptions;
277 bool m_dnsOptionsHasBeenSet = false;
278
279 bool m_privateDnsEnabled;
280 bool m_privateDnsEnabledHasBeenSet = false;
281
282 Aws::Vector<SubnetConfiguration> m_subnetConfigurations;
283 bool m_subnetConfigurationsHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace EC2
288} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetRemoveSubnetIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRemoveRouteTableIds() const
const Aws::Vector< Aws::String > & GetAddSubnetIds() const
ModifyVpcEndpointRequest & AddAddSubnetIds(const Aws::String &value)
void SetRemoveRouteTableIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & WithRemoveSubnetIds(Aws::Vector< Aws::String > &&value)
ModifyVpcEndpointRequest & WithAddRouteTableIds(Aws::Vector< Aws::String > &&value)
ModifyVpcEndpointRequest & AddAddSubnetIds(Aws::String &&value)
ModifyVpcEndpointRequest & AddAddSecurityGroupIds(const Aws::String &value)
ModifyVpcEndpointRequest & WithAddSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & AddRemoveRouteTableIds(Aws::String &&value)
ModifyVpcEndpointRequest & AddRemoveSecurityGroupIds(const char *value)
ModifyVpcEndpointRequest & WithVpcEndpointId(const Aws::String &value)
void SetIpAddressType(const IpAddressType &value)
void SetAddSubnetIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & AddAddRouteTableIds(Aws::String &&value)
ModifyVpcEndpointRequest & WithRemoveSubnetIds(const Aws::Vector< Aws::String > &value)
void SetAddRouteTableIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & WithRemoveSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyVpcEndpointRequest & AddAddSubnetIds(const char *value)
ModifyVpcEndpointRequest & WithDnsOptions(const DnsOptionsSpecification &value)
const DnsOptionsSpecification & GetDnsOptions() const
ModifyVpcEndpointRequest & WithAddSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetRemoveSubnetIds() const
void SetRemoveSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & WithSubnetConfigurations(const Aws::Vector< SubnetConfiguration > &value)
ModifyVpcEndpointRequest & WithRemoveRouteTableIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & WithPolicyDocument(const Aws::String &value)
ModifyVpcEndpointRequest & WithPolicyDocument(Aws::String &&value)
ModifyVpcEndpointRequest & WithAddSubnetIds(Aws::Vector< Aws::String > &&value)
void SetDnsOptions(const DnsOptionsSpecification &value)
ModifyVpcEndpointRequest & AddAddSecurityGroupIds(Aws::String &&value)
ModifyVpcEndpointRequest & WithPolicyDocument(const char *value)
ModifyVpcEndpointRequest & WithRemoveRouteTableIds(Aws::Vector< Aws::String > &&value)
ModifyVpcEndpointRequest & WithAddSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetAddRouteTableIds(Aws::Vector< Aws::String > &&value)
void SetAddSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyVpcEndpointRequest & AddSubnetConfigurations(SubnetConfiguration &&value)
ModifyVpcEndpointRequest & WithRemoveSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetRemoveSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyVpcEndpointRequest & AddRemoveSubnetIds(Aws::String &&value)
void SetDnsOptions(DnsOptionsSpecification &&value)
void SetRemoveRouteTableIds(Aws::Vector< Aws::String > &&value)
ModifyVpcEndpointRequest & AddSubnetConfigurations(const SubnetConfiguration &value)
ModifyVpcEndpointRequest & WithSubnetConfigurations(Aws::Vector< SubnetConfiguration > &&value)
ModifyVpcEndpointRequest & WithIpAddressType(const IpAddressType &value)
ModifyVpcEndpointRequest & WithVpcEndpointId(const char *value)
void SetAddSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAddRouteTableIds() const
ModifyVpcEndpointRequest & WithDnsOptions(DnsOptionsSpecification &&value)
ModifyVpcEndpointRequest & WithResetPolicy(bool value)
ModifyVpcEndpointRequest & AddAddRouteTableIds(const Aws::String &value)
ModifyVpcEndpointRequest & AddRemoveSubnetIds(const char *value)
ModifyVpcEndpointRequest & WithVpcEndpointId(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetRemoveSecurityGroupIds() const
const Aws::Vector< Aws::String > & GetAddSecurityGroupIds() const
ModifyVpcEndpointRequest & AddRemoveSecurityGroupIds(Aws::String &&value)
ModifyVpcEndpointRequest & AddRemoveRouteTableIds(const Aws::String &value)
ModifyVpcEndpointRequest & AddAddRouteTableIds(const char *value)
ModifyVpcEndpointRequest & WithAddRouteTableIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & AddRemoveSecurityGroupIds(const Aws::String &value)
void SetSubnetConfigurations(Aws::Vector< SubnetConfiguration > &&value)
const Aws::Vector< SubnetConfiguration > & GetSubnetConfigurations() const
ModifyVpcEndpointRequest & WithPrivateDnsEnabled(bool value)
ModifyVpcEndpointRequest & AddRemoveRouteTableIds(const char *value)
void SetRemoveSubnetIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & WithDryRun(bool value)
ModifyVpcEndpointRequest & AddAddSecurityGroupIds(const char *value)
ModifyVpcEndpointRequest & AddRemoveSubnetIds(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetSubnetConfigurations(const Aws::Vector< SubnetConfiguration > &value)
ModifyVpcEndpointRequest & WithIpAddressType(IpAddressType &&value)
void SetAddSubnetIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector