AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomerGateway.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API CustomerGateway();
37 AWS_EC2_API CustomerGateway(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
49 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
50 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
51 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
52 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
53 inline CustomerGateway& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
54 inline CustomerGateway& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
55 inline CustomerGateway& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
57
59
62 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
63 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
64 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
65 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
66 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
67 inline CustomerGateway& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
68 inline CustomerGateway& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
69 inline CustomerGateway& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
71
73
76 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
79 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
80 inline CustomerGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
81 inline CustomerGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
82 inline CustomerGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
83 inline CustomerGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
85
87
92 inline const Aws::String& GetBgpAsnExtended() const{ return m_bgpAsnExtended; }
93 inline bool BgpAsnExtendedHasBeenSet() const { return m_bgpAsnExtendedHasBeenSet; }
94 inline void SetBgpAsnExtended(const Aws::String& value) { m_bgpAsnExtendedHasBeenSet = true; m_bgpAsnExtended = value; }
95 inline void SetBgpAsnExtended(Aws::String&& value) { m_bgpAsnExtendedHasBeenSet = true; m_bgpAsnExtended = std::move(value); }
96 inline void SetBgpAsnExtended(const char* value) { m_bgpAsnExtendedHasBeenSet = true; m_bgpAsnExtended.assign(value); }
97 inline CustomerGateway& WithBgpAsnExtended(const Aws::String& value) { SetBgpAsnExtended(value); return *this;}
98 inline CustomerGateway& WithBgpAsnExtended(Aws::String&& value) { SetBgpAsnExtended(std::move(value)); return *this;}
99 inline CustomerGateway& WithBgpAsnExtended(const char* value) { SetBgpAsnExtended(value); return *this;}
101
103
106 inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; }
107 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
108 inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
109 inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); }
110 inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
111 inline CustomerGateway& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;}
112 inline CustomerGateway& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;}
113 inline CustomerGateway& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;}
115
117
121 inline const Aws::String& GetState() const{ return m_state; }
122 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
123 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
124 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
125 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
126 inline CustomerGateway& WithState(const Aws::String& value) { SetState(value); return *this;}
127 inline CustomerGateway& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
128 inline CustomerGateway& WithState(const char* value) { SetState(value); return *this;}
130
132
136 inline const Aws::String& GetType() const{ return m_type; }
137 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
138 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
139 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
140 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
141 inline CustomerGateway& WithType(const Aws::String& value) { SetType(value); return *this;}
142 inline CustomerGateway& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
143 inline CustomerGateway& WithType(const char* value) { SetType(value); return *this;}
145
147
154 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
155 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
156 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
157 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
158 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
159 inline CustomerGateway& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
160 inline CustomerGateway& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
161 inline CustomerGateway& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
163
165
170 inline const Aws::String& GetBgpAsn() const{ return m_bgpAsn; }
171 inline bool BgpAsnHasBeenSet() const { return m_bgpAsnHasBeenSet; }
172 inline void SetBgpAsn(const Aws::String& value) { m_bgpAsnHasBeenSet = true; m_bgpAsn = value; }
173 inline void SetBgpAsn(Aws::String&& value) { m_bgpAsnHasBeenSet = true; m_bgpAsn = std::move(value); }
174 inline void SetBgpAsn(const char* value) { m_bgpAsnHasBeenSet = true; m_bgpAsn.assign(value); }
175 inline CustomerGateway& WithBgpAsn(const Aws::String& value) { SetBgpAsn(value); return *this;}
176 inline CustomerGateway& WithBgpAsn(Aws::String&& value) { SetBgpAsn(std::move(value)); return *this;}
177 inline CustomerGateway& WithBgpAsn(const char* value) { SetBgpAsn(value); return *this;}
179 private:
180
181 Aws::String m_certificateArn;
182 bool m_certificateArnHasBeenSet = false;
183
184 Aws::String m_deviceName;
185 bool m_deviceNameHasBeenSet = false;
186
187 Aws::Vector<Tag> m_tags;
188 bool m_tagsHasBeenSet = false;
189
190 Aws::String m_bgpAsnExtended;
191 bool m_bgpAsnExtendedHasBeenSet = false;
192
193 Aws::String m_customerGatewayId;
194 bool m_customerGatewayIdHasBeenSet = false;
195
196 Aws::String m_state;
197 bool m_stateHasBeenSet = false;
198
199 Aws::String m_type;
200 bool m_typeHasBeenSet = false;
201
202 Aws::String m_ipAddress;
203 bool m_ipAddressHasBeenSet = false;
204
205 Aws::String m_bgpAsn;
206 bool m_bgpAsnHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace EC2
211} // namespace Aws
CustomerGateway & WithIpAddress(const char *value)
void SetIpAddress(const char *value)
const Aws::String & GetIpAddress() const
CustomerGateway & WithDeviceName(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetIpAddress(Aws::String &&value)
CustomerGateway & WithType(Aws::String &&value)
void SetCertificateArn(const Aws::String &value)
const Aws::String & GetState() const
CustomerGateway & WithCertificateArn(const Aws::String &value)
void SetType(const char *value)
void SetCustomerGatewayId(Aws::String &&value)
AWS_EC2_API CustomerGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
CustomerGateway & WithBgpAsn(const char *value)
const Aws::String & GetDeviceName() const
CustomerGateway & WithBgpAsnExtended(const char *value)
CustomerGateway & WithBgpAsnExtended(const Aws::String &value)
CustomerGateway & WithState(Aws::String &&value)
CustomerGateway & WithCustomerGatewayId(Aws::String &&value)
const Aws::String & GetCustomerGatewayId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CustomerGateway & WithDeviceName(Aws::String &&value)
void SetDeviceName(const Aws::String &value)
CustomerGateway & WithIpAddress(Aws::String &&value)
void SetDeviceName(const char *value)
void SetState(Aws::String &&value)
CustomerGateway & WithCertificateArn(Aws::String &&value)
void SetBgpAsn(Aws::String &&value)
void SetType(Aws::String &&value)
void SetBgpAsnExtended(const char *value)
CustomerGateway & WithCertificateArn(const char *value)
CustomerGateway & WithState(const char *value)
void SetBgpAsn(const char *value)
CustomerGateway & WithIpAddress(const Aws::String &value)
void SetState(const Aws::String &value)
CustomerGateway & WithCustomerGatewayId(const Aws::String &value)
const Aws::String & GetBgpAsn() const
CustomerGateway & WithType(const Aws::String &value)
CustomerGateway & WithTags(Aws::Vector< Tag > &&value)
CustomerGateway & WithCustomerGatewayId(const char *value)
CustomerGateway & WithType(const char *value)
CustomerGateway & WithBgpAsn(Aws::String &&value)
CustomerGateway & WithDeviceName(const char *value)
void SetCustomerGatewayId(const Aws::String &value)
void SetBgpAsn(const Aws::String &value)
AWS_EC2_API CustomerGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CustomerGateway & WithState(const Aws::String &value)
void SetCertificateArn(Aws::String &&value)
void SetType(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetState(const char *value)
const Aws::String & GetCertificateArn() const
void SetDeviceName(Aws::String &&value)
void SetIpAddress(const Aws::String &value)
void SetBgpAsnExtended(Aws::String &&value)
CustomerGateway & WithTags(const Aws::Vector< Tag > &value)
CustomerGateway & AddTags(const Tag &value)
const Aws::String & GetType() const
CustomerGateway & WithBgpAsnExtended(Aws::String &&value)
const Aws::String & GetBgpAsnExtended() const
void SetCertificateArn(const char *value)
CustomerGateway & WithBgpAsn(const Aws::String &value)
void SetBgpAsnExtended(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetCustomerGatewayId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CustomerGateway & AddTags(Tag &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream