AWS SDK for C++  0.12.9
AWS SDK for C++
VpcEndpoint.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>
19 #include <aws/ec2/model/State.h>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace EC2
33 {
34 namespace Model
35 {
36 
41  {
42  public:
43  VpcEndpoint();
44  VpcEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
45  VpcEndpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
54 
58  inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
59 
63  inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
64 
68  inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
69 
73  inline VpcEndpoint& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
74 
78  inline VpcEndpoint& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(value); return *this;}
79 
83  inline VpcEndpoint& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
84 
88  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
89 
93  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
94 
98  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
99 
103  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
104 
108  inline VpcEndpoint& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
109 
113  inline VpcEndpoint& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
114 
118  inline VpcEndpoint& WithVpcId(const char* value) { SetVpcId(value); return *this;}
119 
123  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
124 
128  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
129 
133  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
134 
138  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
139 
143  inline VpcEndpoint& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
144 
148  inline VpcEndpoint& WithServiceName(Aws::String&& value) { SetServiceName(value); return *this;}
149 
153  inline VpcEndpoint& WithServiceName(const char* value) { SetServiceName(value); return *this;}
154 
158  inline const State& GetState() const{ return m_state; }
159 
163  inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; }
164 
168  inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = value; }
169 
173  inline VpcEndpoint& WithState(const State& value) { SetState(value); return *this;}
174 
178  inline VpcEndpoint& WithState(State&& value) { SetState(value); return *this;}
179 
183  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
184 
188  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
189 
193  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
194 
198  inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
199 
203  inline VpcEndpoint& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
204 
208  inline VpcEndpoint& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(value); return *this;}
209 
213  inline VpcEndpoint& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
214 
218  inline const Aws::Vector<Aws::String>& GetRouteTableIds() const{ return m_routeTableIds; }
219 
223  inline void SetRouteTableIds(const Aws::Vector<Aws::String>& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds = value; }
224 
228  inline void SetRouteTableIds(Aws::Vector<Aws::String>&& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds = value; }
229 
233  inline VpcEndpoint& WithRouteTableIds(const Aws::Vector<Aws::String>& value) { SetRouteTableIds(value); return *this;}
234 
238  inline VpcEndpoint& WithRouteTableIds(Aws::Vector<Aws::String>&& value) { SetRouteTableIds(value); return *this;}
239 
243  inline VpcEndpoint& AddRouteTableIds(const Aws::String& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
244 
248  inline VpcEndpoint& AddRouteTableIds(Aws::String&& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
249 
253  inline VpcEndpoint& AddRouteTableIds(const char* value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
254 
258  inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; }
259 
263  inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; }
264 
268  inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; }
269 
273  inline VpcEndpoint& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;}
274 
278  inline VpcEndpoint& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(value); return *this;}
279 
280  private:
281  Aws::String m_vpcEndpointId;
282  bool m_vpcEndpointIdHasBeenSet;
283  Aws::String m_vpcId;
284  bool m_vpcIdHasBeenSet;
285  Aws::String m_serviceName;
286  bool m_serviceNameHasBeenSet;
287  State m_state;
288  bool m_stateHasBeenSet;
289  Aws::String m_policyDocument;
290  bool m_policyDocumentHasBeenSet;
291  Aws::Vector<Aws::String> m_routeTableIds;
292  bool m_routeTableIdsHasBeenSet;
293  Aws::Utils::DateTime m_creationTimestamp;
294  bool m_creationTimestampHasBeenSet;
295  };
296 
297 } // namespace Model
298 } // namespace EC2
299 } // namespace Aws
VpcEndpoint & AddRouteTableIds(const Aws::String &value)
Definition: VpcEndpoint.h:243
VpcEndpoint & WithState(const State &value)
Definition: VpcEndpoint.h:173
VpcEndpoint & WithVpcEndpointId(const char *value)
Definition: VpcEndpoint.h:83
void SetServiceName(const char *value)
Definition: VpcEndpoint.h:138
VpcEndpoint & WithPolicyDocument(const char *value)
Definition: VpcEndpoint.h:213
const Aws::Vector< Aws::String > & GetRouteTableIds() const
Definition: VpcEndpoint.h:218
void SetCreationTimestamp(Aws::Utils::DateTime &&value)
Definition: VpcEndpoint.h:268
VpcEndpoint & WithRouteTableIds(const Aws::Vector< Aws::String > &value)
Definition: VpcEndpoint.h:233
const State & GetState() const
Definition: VpcEndpoint.h:158
void SetRouteTableIds(Aws::Vector< Aws::String > &&value)
Definition: VpcEndpoint.h:228
const Aws::Utils::DateTime & GetCreationTimestamp() const
Definition: VpcEndpoint.h:258
const Aws::String & GetPolicyDocument() const
Definition: VpcEndpoint.h:183
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
VpcEndpoint & WithServiceName(const Aws::String &value)
Definition: VpcEndpoint.h:143
void SetPolicyDocument(Aws::String &&value)
Definition: VpcEndpoint.h:193
const Aws::String & GetVpcEndpointId() const
Definition: VpcEndpoint.h:53
void SetVpcId(const char *value)
Definition: VpcEndpoint.h:103
VpcEndpoint & WithServiceName(Aws::String &&value)
Definition: VpcEndpoint.h:148
void SetState(const State &value)
Definition: VpcEndpoint.h:163
VpcEndpoint & WithServiceName(const char *value)
Definition: VpcEndpoint.h:153
VpcEndpoint & WithPolicyDocument(const Aws::String &value)
Definition: VpcEndpoint.h:203
void SetState(State &&value)
Definition: VpcEndpoint.h:168
VpcEndpoint & WithVpcEndpointId(Aws::String &&value)
Definition: VpcEndpoint.h:78
VpcEndpoint & WithPolicyDocument(Aws::String &&value)
Definition: VpcEndpoint.h:208
VpcEndpoint & WithRouteTableIds(Aws::Vector< Aws::String > &&value)
Definition: VpcEndpoint.h:238
void SetVpcEndpointId(const char *value)
Definition: VpcEndpoint.h:68
VpcEndpoint & WithState(State &&value)
Definition: VpcEndpoint.h:178
VpcEndpoint & WithVpcId(Aws::String &&value)
Definition: VpcEndpoint.h:113
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetVpcEndpointId(Aws::String &&value)
Definition: VpcEndpoint.h:63
VpcEndpoint & WithVpcId(const Aws::String &value)
Definition: VpcEndpoint.h:108
void SetVpcEndpointId(const Aws::String &value)
Definition: VpcEndpoint.h:58
VpcEndpoint & WithCreationTimestamp(Aws::Utils::DateTime &&value)
Definition: VpcEndpoint.h:278
VpcEndpoint & WithVpcId(const char *value)
Definition: VpcEndpoint.h:118
VpcEndpoint & AddRouteTableIds(Aws::String &&value)
Definition: VpcEndpoint.h:248
const Aws::String & GetVpcId() const
Definition: VpcEndpoint.h:88
void SetRouteTableIds(const Aws::Vector< Aws::String > &value)
Definition: VpcEndpoint.h:223
void SetPolicyDocument(const char *value)
Definition: VpcEndpoint.h:198
void SetPolicyDocument(const Aws::String &value)
Definition: VpcEndpoint.h:188
void SetServiceName(const Aws::String &value)
Definition: VpcEndpoint.h:128
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetServiceName() const
Definition: VpcEndpoint.h:123
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
VpcEndpoint & WithCreationTimestamp(const Aws::Utils::DateTime &value)
Definition: VpcEndpoint.h:273
void SetServiceName(Aws::String &&value)
Definition: VpcEndpoint.h:133
void SetCreationTimestamp(const Aws::Utils::DateTime &value)
Definition: VpcEndpoint.h:263
void SetVpcId(const Aws::String &value)
Definition: VpcEndpoint.h:93
VpcEndpoint & WithVpcEndpointId(const Aws::String &value)
Definition: VpcEndpoint.h:73
VpcEndpoint & AddRouteTableIds(const char *value)
Definition: VpcEndpoint.h:253
JSON (JavaScript Object Notation).
void SetVpcId(Aws::String &&value)
Definition: VpcEndpoint.h:98