AWS SDK for C++  0.14.3
AWS SDK for C++
CreateVpcEndpointRequest.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 CreateVpcEndpointRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
60 
64  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
65 
69  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
70 
74  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
75 
79  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
80 
84  inline CreateVpcEndpointRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
85 
89  inline CreateVpcEndpointRequest& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
90 
94  inline CreateVpcEndpointRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
95 
101  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
102 
108  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
109 
115  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
116 
122  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
123 
129  inline CreateVpcEndpointRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
130 
136  inline CreateVpcEndpointRequest& WithServiceName(Aws::String&& value) { SetServiceName(value); return *this;}
137 
143  inline CreateVpcEndpointRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
144 
150  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
151 
157  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
158 
164  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
165 
171  inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
172 
178  inline CreateVpcEndpointRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
179 
185  inline CreateVpcEndpointRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(value); return *this;}
186 
192  inline CreateVpcEndpointRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
193 
197  inline const Aws::Vector<Aws::String>& GetRouteTableIds() const{ return m_routeTableIds; }
198 
202  inline void SetRouteTableIds(const Aws::Vector<Aws::String>& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds = value; }
203 
207  inline void SetRouteTableIds(Aws::Vector<Aws::String>&& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds = value; }
208 
212  inline CreateVpcEndpointRequest& WithRouteTableIds(const Aws::Vector<Aws::String>& value) { SetRouteTableIds(value); return *this;}
213 
217  inline CreateVpcEndpointRequest& WithRouteTableIds(Aws::Vector<Aws::String>&& value) { SetRouteTableIds(value); return *this;}
218 
222  inline CreateVpcEndpointRequest& AddRouteTableIds(const Aws::String& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
223 
227  inline CreateVpcEndpointRequest& AddRouteTableIds(Aws::String&& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
228 
232  inline CreateVpcEndpointRequest& AddRouteTableIds(const char* value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
233 
240  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
241 
248  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
249 
256  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
257 
264  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
265 
272  inline CreateVpcEndpointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
273 
280  inline CreateVpcEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
281 
288  inline CreateVpcEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
289 
290  private:
291  bool m_dryRun;
292  bool m_dryRunHasBeenSet;
293  Aws::String m_vpcId;
294  bool m_vpcIdHasBeenSet;
295  Aws::String m_serviceName;
296  bool m_serviceNameHasBeenSet;
297  Aws::String m_policyDocument;
298  bool m_policyDocumentHasBeenSet;
299  Aws::Vector<Aws::String> m_routeTableIds;
300  bool m_routeTableIdsHasBeenSet;
301  Aws::String m_clientToken;
302  bool m_clientTokenHasBeenSet;
303  };
304 
305 } // namespace Model
306 } // namespace EC2
307 } // namespace Aws
CreateVpcEndpointRequest & AddRouteTableIds(Aws::String &&value)
CreateVpcEndpointRequest & AddRouteTableIds(const Aws::String &value)
CreateVpcEndpointRequest & WithRouteTableIds(const Aws::Vector< Aws::String > &value)
void SetRouteTableIds(Aws::Vector< Aws::String > &&value)
CreateVpcEndpointRequest & WithPolicyDocument(const Aws::String &value)
CreateVpcEndpointRequest & WithClientToken(const Aws::String &value)
CreateVpcEndpointRequest & WithDryRun(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateVpcEndpointRequest & AddRouteTableIds(const char *value)
const Aws::Vector< Aws::String > & GetRouteTableIds() const
CreateVpcEndpointRequest & WithVpcId(const Aws::String &value)
CreateVpcEndpointRequest & WithServiceName(Aws::String &&value)
CreateVpcEndpointRequest & WithPolicyDocument(Aws::String &&value)
CreateVpcEndpointRequest & WithServiceName(const char *value)
CreateVpcEndpointRequest & WithClientToken(Aws::String &&value)
CreateVpcEndpointRequest & WithVpcId(const char *value)
CreateVpcEndpointRequest & WithPolicyDocument(const char *value)
void SetRouteTableIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateVpcEndpointRequest & WithVpcId(Aws::String &&value)
void SetPolicyDocument(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
CreateVpcEndpointRequest & WithServiceName(const Aws::String &value)
CreateVpcEndpointRequest & WithRouteTableIds(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).
CreateVpcEndpointRequest & WithClientToken(const char *value)