AWS SDK for C++  0.12.9
AWS SDK for C++
VpnGateway.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/VpnState.h>
23 #include <aws/ec2/model/Tag.h>
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlNode;
32 } // namespace Xml
33 } // namespace Utils
34 namespace EC2
35 {
36 namespace Model
37 {
38 
43  {
44  public:
45  VpnGateway();
46  VpnGateway(const Aws::Utils::Xml::XmlNode& xmlNode);
47  VpnGateway& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48 
49  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50  void OutputToStream(Aws::OStream& oStream, const char* location) const;
51 
55  inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
56 
60  inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
61 
65  inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
66 
70  inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
71 
75  inline VpnGateway& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
76 
80  inline VpnGateway& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(value); return *this;}
81 
85  inline VpnGateway& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
86 
90  inline const VpnState& GetState() const{ return m_state; }
91 
95  inline void SetState(const VpnState& value) { m_stateHasBeenSet = true; m_state = value; }
96 
100  inline void SetState(VpnState&& value) { m_stateHasBeenSet = true; m_state = value; }
101 
105  inline VpnGateway& WithState(const VpnState& value) { SetState(value); return *this;}
106 
110  inline VpnGateway& WithState(VpnState&& value) { SetState(value); return *this;}
111 
115  inline const GatewayType& GetType() const{ return m_type; }
116 
120  inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; }
121 
125  inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = value; }
126 
130  inline VpnGateway& WithType(const GatewayType& value) { SetType(value); return *this;}
131 
135  inline VpnGateway& WithType(GatewayType&& value) { SetType(value); return *this;}
136 
141  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
142 
147  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
148 
153  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
154 
159  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
160 
165  inline VpnGateway& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
166 
171  inline VpnGateway& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(value); return *this;}
172 
177  inline VpnGateway& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
178 
182  inline const Aws::Vector<VpcAttachment>& GetVpcAttachments() const{ return m_vpcAttachments; }
183 
187  inline void SetVpcAttachments(const Aws::Vector<VpcAttachment>& value) { m_vpcAttachmentsHasBeenSet = true; m_vpcAttachments = value; }
188 
192  inline void SetVpcAttachments(Aws::Vector<VpcAttachment>&& value) { m_vpcAttachmentsHasBeenSet = true; m_vpcAttachments = value; }
193 
197  inline VpnGateway& WithVpcAttachments(const Aws::Vector<VpcAttachment>& value) { SetVpcAttachments(value); return *this;}
198 
202  inline VpnGateway& WithVpcAttachments(Aws::Vector<VpcAttachment>&& value) { SetVpcAttachments(value); return *this;}
203 
207  inline VpnGateway& AddVpcAttachments(const VpcAttachment& value) { m_vpcAttachmentsHasBeenSet = true; m_vpcAttachments.push_back(value); return *this; }
208 
212  inline VpnGateway& AddVpcAttachments(VpcAttachment&& value) { m_vpcAttachmentsHasBeenSet = true; m_vpcAttachments.push_back(value); return *this; }
213 
217  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
218 
222  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
223 
227  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
228 
232  inline VpnGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
233 
237  inline VpnGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
238 
242  inline VpnGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
243 
247  inline VpnGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
248 
249  private:
250  Aws::String m_vpnGatewayId;
251  bool m_vpnGatewayIdHasBeenSet;
252  VpnState m_state;
253  bool m_stateHasBeenSet;
254  GatewayType m_type;
255  bool m_typeHasBeenSet;
256  Aws::String m_availabilityZone;
257  bool m_availabilityZoneHasBeenSet;
258  Aws::Vector<VpcAttachment> m_vpcAttachments;
259  bool m_vpcAttachmentsHasBeenSet;
260  Aws::Vector<Tag> m_tags;
261  bool m_tagsHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace EC2
266 } // namespace Aws
const Aws::String & GetAvailabilityZone() const
Definition: VpnGateway.h:141
VpnGateway & WithState(VpnState &&value)
Definition: VpnGateway.h:110
const VpnState & GetState() const
Definition: VpnGateway.h:90
const GatewayType & GetType() const
Definition: VpnGateway.h:115
VpnGateway & WithVpnGatewayId(const Aws::String &value)
Definition: VpnGateway.h:75
VpnGateway & WithType(GatewayType &&value)
Definition: VpnGateway.h:135
void SetAvailabilityZone(const Aws::String &value)
Definition: VpnGateway.h:147
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetState(VpnState &&value)
Definition: VpnGateway.h:100
void SetAvailabilityZone(Aws::String &&value)
Definition: VpnGateway.h:153
VpnGateway & WithState(const VpnState &value)
Definition: VpnGateway.h:105
const Aws::String & GetVpnGatewayId() const
Definition: VpnGateway.h:55
void SetVpnGatewayId(Aws::String &&value)
Definition: VpnGateway.h:65
VpnGateway & WithAvailabilityZone(Aws::String &&value)
Definition: VpnGateway.h:171
VpnGateway & WithTags(const Aws::Vector< Tag > &value)
Definition: VpnGateway.h:232
VpnGateway & WithTags(Aws::Vector< Tag > &&value)
Definition: VpnGateway.h:237
VpnGateway & WithAvailabilityZone(const char *value)
Definition: VpnGateway.h:177
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetVpnGatewayId(const Aws::String &value)
Definition: VpnGateway.h:60
VpnGateway & WithVpnGatewayId(const char *value)
Definition: VpnGateway.h:85
void SetVpcAttachments(Aws::Vector< VpcAttachment > &&value)
Definition: VpnGateway.h:192
VpnGateway & AddTags(const Tag &value)
Definition: VpnGateway.h:242
void SetVpcAttachments(const Aws::Vector< VpcAttachment > &value)
Definition: VpnGateway.h:187
void SetTags(const Aws::Vector< Tag > &value)
Definition: VpnGateway.h:222
VpnGateway & WithVpcAttachments(const Aws::Vector< VpcAttachment > &value)
Definition: VpnGateway.h:197
void SetAvailabilityZone(const char *value)
Definition: VpnGateway.h:159
void SetState(const VpnState &value)
Definition: VpnGateway.h:95
VpnGateway & AddVpcAttachments(const VpcAttachment &value)
Definition: VpnGateway.h:207
const Aws::Vector< VpcAttachment > & GetVpcAttachments() const
Definition: VpnGateway.h:182
void SetTags(Aws::Vector< Tag > &&value)
Definition: VpnGateway.h:227
VpnGateway & AddTags(Tag &&value)
Definition: VpnGateway.h:247
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetType(const GatewayType &value)
Definition: VpnGateway.h:120
VpnGateway & WithVpcAttachments(Aws::Vector< VpcAttachment > &&value)
Definition: VpnGateway.h:202
VpnGateway & AddVpcAttachments(VpcAttachment &&value)
Definition: VpnGateway.h:212
VpnGateway & WithVpnGatewayId(Aws::String &&value)
Definition: VpnGateway.h:80
const Aws::Vector< Tag > & GetTags() const
Definition: VpnGateway.h:217
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetType(GatewayType &&value)
Definition: VpnGateway.h:125
VpnGateway & WithType(const GatewayType &value)
Definition: VpnGateway.h:130
VpnGateway & WithAvailabilityZone(const Aws::String &value)
Definition: VpnGateway.h:165
JSON (JavaScript Object Notation).
void SetVpnGatewayId(const char *value)
Definition: VpnGateway.h:70