AWS SDK for C++  0.12.9
AWS SDK for C++
ModifyVpcEndpointRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
20 
21 namespace Aws
22 {
23 namespace EC2
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
43  inline bool GetDryRun() const{ return m_dryRun; }
44 
51  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 
59  inline ModifyVpcEndpointRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
60 
64  inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
65 
69  inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
70 
74  inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
75 
79  inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
80 
84  inline ModifyVpcEndpointRequest& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
85 
89  inline ModifyVpcEndpointRequest& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(value); return *this;}
90 
94  inline ModifyVpcEndpointRequest& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
95 
100  inline bool GetResetPolicy() const{ return m_resetPolicy; }
101 
106  inline void SetResetPolicy(bool value) { m_resetPolicyHasBeenSet = true; m_resetPolicy = value; }
107 
112  inline ModifyVpcEndpointRequest& WithResetPolicy(bool value) { SetResetPolicy(value); return *this;}
113 
118  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
119 
124  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
125 
130  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
131 
136  inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
137 
142  inline ModifyVpcEndpointRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
143 
148  inline ModifyVpcEndpointRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(value); return *this;}
149 
154  inline ModifyVpcEndpointRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
155 
159  inline const Aws::Vector<Aws::String>& GetAddRouteTableIds() const{ return m_addRouteTableIds; }
160 
164  inline void SetAddRouteTableIds(const Aws::Vector<Aws::String>& value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds = value; }
165 
169  inline void SetAddRouteTableIds(Aws::Vector<Aws::String>&& value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds = value; }
170 
174  inline ModifyVpcEndpointRequest& WithAddRouteTableIds(const Aws::Vector<Aws::String>& value) { SetAddRouteTableIds(value); return *this;}
175 
179  inline ModifyVpcEndpointRequest& WithAddRouteTableIds(Aws::Vector<Aws::String>&& value) { SetAddRouteTableIds(value); return *this;}
180 
184  inline ModifyVpcEndpointRequest& AddAddRouteTableIds(const Aws::String& value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds.push_back(value); return *this; }
185 
189  inline ModifyVpcEndpointRequest& AddAddRouteTableIds(Aws::String&& value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds.push_back(value); return *this; }
190 
194  inline ModifyVpcEndpointRequest& AddAddRouteTableIds(const char* value) { m_addRouteTableIdsHasBeenSet = true; m_addRouteTableIds.push_back(value); return *this; }
195 
199  inline const Aws::Vector<Aws::String>& GetRemoveRouteTableIds() const{ return m_removeRouteTableIds; }
200 
204  inline void SetRemoveRouteTableIds(const Aws::Vector<Aws::String>& value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds = value; }
205 
209  inline void SetRemoveRouteTableIds(Aws::Vector<Aws::String>&& value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds = value; }
210 
214  inline ModifyVpcEndpointRequest& WithRemoveRouteTableIds(const Aws::Vector<Aws::String>& value) { SetRemoveRouteTableIds(value); return *this;}
215 
219  inline ModifyVpcEndpointRequest& WithRemoveRouteTableIds(Aws::Vector<Aws::String>&& value) { SetRemoveRouteTableIds(value); return *this;}
220 
224  inline ModifyVpcEndpointRequest& AddRemoveRouteTableIds(const Aws::String& value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds.push_back(value); return *this; }
225 
229  inline ModifyVpcEndpointRequest& AddRemoveRouteTableIds(Aws::String&& value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds.push_back(value); return *this; }
230 
234  inline ModifyVpcEndpointRequest& AddRemoveRouteTableIds(const char* value) { m_removeRouteTableIdsHasBeenSet = true; m_removeRouteTableIds.push_back(value); return *this; }
235 
236  private:
237  bool m_dryRun;
238  bool m_dryRunHasBeenSet;
239  Aws::String m_vpcEndpointId;
240  bool m_vpcEndpointIdHasBeenSet;
241  bool m_resetPolicy;
242  bool m_resetPolicyHasBeenSet;
243  Aws::String m_policyDocument;
244  bool m_policyDocumentHasBeenSet;
245  Aws::Vector<Aws::String> m_addRouteTableIds;
246  bool m_addRouteTableIdsHasBeenSet;
247  Aws::Vector<Aws::String> m_removeRouteTableIds;
248  bool m_removeRouteTableIdsHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace EC2
253 } // namespace Aws
ModifyVpcEndpointRequest & AddAddRouteTableIds(const Aws::String &value)
ModifyVpcEndpointRequest & WithResetPolicy(bool value)
ModifyVpcEndpointRequest & WithVpcEndpointId(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Aws::String > & GetRemoveRouteTableIds() const
ModifyVpcEndpointRequest & WithRemoveRouteTableIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & WithPolicyDocument(Aws::String &&value)
ModifyVpcEndpointRequest & WithDryRun(bool value)
ModifyVpcEndpointRequest & AddRemoveRouteTableIds(const Aws::String &value)
void SetVpcEndpointId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAddRouteTableIds() const
void SetPolicyDocument(const Aws::String &value)
ModifyVpcEndpointRequest & WithVpcEndpointId(const char *value)
ModifyVpcEndpointRequest & WithAddRouteTableIds(Aws::Vector< Aws::String > &&value)
void SetRemoveRouteTableIds(Aws::Vector< Aws::String > &&value)
void SetAddRouteTableIds(Aws::Vector< Aws::String > &&value)
ModifyVpcEndpointRequest & AddAddRouteTableIds(const char *value)
void SetRemoveRouteTableIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & WithPolicyDocument(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyVpcEndpointRequest & WithRemoveRouteTableIds(Aws::Vector< Aws::String > &&value)
ModifyVpcEndpointRequest & AddRemoveRouteTableIds(const char *value)
ModifyVpcEndpointRequest & AddRemoveRouteTableIds(Aws::String &&value)
ModifyVpcEndpointRequest & WithPolicyDocument(const Aws::String &value)
ModifyVpcEndpointRequest & WithVpcEndpointId(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetAddRouteTableIds(const Aws::Vector< Aws::String > &value)
ModifyVpcEndpointRequest & AddAddRouteTableIds(Aws::String &&value)
ModifyVpcEndpointRequest & WithAddRouteTableIds(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).