AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NatGateway.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/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/ProvisionedBandwidth.h>
13#include <aws/ec2/model/NatGatewayState.h>
14#include <aws/ec2/model/ConnectivityType.h>
15#include <aws/ec2/model/NatGatewayAddress.h>
16#include <aws/ec2/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace EC2
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_EC2_API NatGateway();
42 AWS_EC2_API NatGateway(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_EC2_API NatGateway& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
54 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
55 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
56 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
57 inline NatGateway& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
58 inline NatGateway& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetDeleteTime() const{ return m_deleteTime; }
66 inline bool DeleteTimeHasBeenSet() const { return m_deleteTimeHasBeenSet; }
67 inline void SetDeleteTime(const Aws::Utils::DateTime& value) { m_deleteTimeHasBeenSet = true; m_deleteTime = value; }
68 inline void SetDeleteTime(Aws::Utils::DateTime&& value) { m_deleteTimeHasBeenSet = true; m_deleteTime = std::move(value); }
69 inline NatGateway& WithDeleteTime(const Aws::Utils::DateTime& value) { SetDeleteTime(value); return *this;}
70 inline NatGateway& WithDeleteTime(Aws::Utils::DateTime&& value) { SetDeleteTime(std::move(value)); return *this;}
72
74
81 inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
82 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
83 inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
84 inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
85 inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
86 inline NatGateway& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
87 inline NatGateway& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
88 inline NatGateway& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
90
92
107 inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; }
108 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
109 inline void SetFailureMessage(const Aws::String& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; }
110 inline void SetFailureMessage(Aws::String&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::move(value); }
111 inline void SetFailureMessage(const char* value) { m_failureMessageHasBeenSet = true; m_failureMessage.assign(value); }
112 inline NatGateway& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;}
113 inline NatGateway& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;}
114 inline NatGateway& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;}
116
118
122 inline const Aws::Vector<NatGatewayAddress>& GetNatGatewayAddresses() const{ return m_natGatewayAddresses; }
123 inline bool NatGatewayAddressesHasBeenSet() const { return m_natGatewayAddressesHasBeenSet; }
124 inline void SetNatGatewayAddresses(const Aws::Vector<NatGatewayAddress>& value) { m_natGatewayAddressesHasBeenSet = true; m_natGatewayAddresses = value; }
125 inline void SetNatGatewayAddresses(Aws::Vector<NatGatewayAddress>&& value) { m_natGatewayAddressesHasBeenSet = true; m_natGatewayAddresses = std::move(value); }
128 inline NatGateway& AddNatGatewayAddresses(const NatGatewayAddress& value) { m_natGatewayAddressesHasBeenSet = true; m_natGatewayAddresses.push_back(value); return *this; }
129 inline NatGateway& AddNatGatewayAddresses(NatGatewayAddress&& value) { m_natGatewayAddressesHasBeenSet = true; m_natGatewayAddresses.push_back(std::move(value)); return *this; }
131
133
136 inline const Aws::String& GetNatGatewayId() const{ return m_natGatewayId; }
137 inline bool NatGatewayIdHasBeenSet() const { return m_natGatewayIdHasBeenSet; }
138 inline void SetNatGatewayId(const Aws::String& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = value; }
139 inline void SetNatGatewayId(Aws::String&& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = std::move(value); }
140 inline void SetNatGatewayId(const char* value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId.assign(value); }
141 inline NatGateway& WithNatGatewayId(const Aws::String& value) { SetNatGatewayId(value); return *this;}
142 inline NatGateway& WithNatGatewayId(Aws::String&& value) { SetNatGatewayId(std::move(value)); return *this;}
143 inline NatGateway& WithNatGatewayId(const char* value) { SetNatGatewayId(value); return *this;}
145
147
152 inline const ProvisionedBandwidth& GetProvisionedBandwidth() const{ return m_provisionedBandwidth; }
153 inline bool ProvisionedBandwidthHasBeenSet() const { return m_provisionedBandwidthHasBeenSet; }
154 inline void SetProvisionedBandwidth(const ProvisionedBandwidth& value) { m_provisionedBandwidthHasBeenSet = true; m_provisionedBandwidth = value; }
155 inline void SetProvisionedBandwidth(ProvisionedBandwidth&& value) { m_provisionedBandwidthHasBeenSet = true; m_provisionedBandwidth = std::move(value); }
157 inline NatGateway& WithProvisionedBandwidth(ProvisionedBandwidth&& value) { SetProvisionedBandwidth(std::move(value)); return *this;}
159
161
174 inline const NatGatewayState& GetState() const{ return m_state; }
175 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
176 inline void SetState(const NatGatewayState& value) { m_stateHasBeenSet = true; m_state = value; }
177 inline void SetState(NatGatewayState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
178 inline NatGateway& WithState(const NatGatewayState& value) { SetState(value); return *this;}
179 inline NatGateway& WithState(NatGatewayState&& value) { SetState(std::move(value)); return *this;}
181
183
186 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
187 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
188 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
189 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
190 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
191 inline NatGateway& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
192 inline NatGateway& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
193 inline NatGateway& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
195
197
200 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
201 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
202 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
203 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
204 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
205 inline NatGateway& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
206 inline NatGateway& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
207 inline NatGateway& WithVpcId(const char* value) { SetVpcId(value); return *this;}
209
211
214 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
215 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
217 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
218 inline NatGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
219 inline NatGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
220 inline NatGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
221 inline NatGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
223
225
229 inline const ConnectivityType& GetConnectivityType() const{ return m_connectivityType; }
230 inline bool ConnectivityTypeHasBeenSet() const { return m_connectivityTypeHasBeenSet; }
231 inline void SetConnectivityType(const ConnectivityType& value) { m_connectivityTypeHasBeenSet = true; m_connectivityType = value; }
232 inline void SetConnectivityType(ConnectivityType&& value) { m_connectivityTypeHasBeenSet = true; m_connectivityType = std::move(value); }
233 inline NatGateway& WithConnectivityType(const ConnectivityType& value) { SetConnectivityType(value); return *this;}
234 inline NatGateway& WithConnectivityType(ConnectivityType&& value) { SetConnectivityType(std::move(value)); return *this;}
236 private:
237
238 Aws::Utils::DateTime m_createTime;
239 bool m_createTimeHasBeenSet = false;
240
241 Aws::Utils::DateTime m_deleteTime;
242 bool m_deleteTimeHasBeenSet = false;
243
244 Aws::String m_failureCode;
245 bool m_failureCodeHasBeenSet = false;
246
247 Aws::String m_failureMessage;
248 bool m_failureMessageHasBeenSet = false;
249
250 Aws::Vector<NatGatewayAddress> m_natGatewayAddresses;
251 bool m_natGatewayAddressesHasBeenSet = false;
252
253 Aws::String m_natGatewayId;
254 bool m_natGatewayIdHasBeenSet = false;
255
256 ProvisionedBandwidth m_provisionedBandwidth;
257 bool m_provisionedBandwidthHasBeenSet = false;
258
259 NatGatewayState m_state;
260 bool m_stateHasBeenSet = false;
261
262 Aws::String m_subnetId;
263 bool m_subnetIdHasBeenSet = false;
264
265 Aws::String m_vpcId;
266 bool m_vpcIdHasBeenSet = false;
267
268 Aws::Vector<Tag> m_tags;
269 bool m_tagsHasBeenSet = false;
270
271 ConnectivityType m_connectivityType;
272 bool m_connectivityTypeHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace EC2
277} // namespace Aws
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition NatGateway.h:55
void SetSubnetId(const Aws::String &value)
Definition NatGateway.h:188
bool FailureMessageHasBeenSet() const
Definition NatGateway.h:108
const ProvisionedBandwidth & GetProvisionedBandwidth() const
Definition NatGateway.h:152
NatGateway & WithConnectivityType(const ConnectivityType &value)
Definition NatGateway.h:233
NatGateway & WithProvisionedBandwidth(ProvisionedBandwidth &&value)
Definition NatGateway.h:157
NatGateway & AddNatGatewayAddresses(const NatGatewayAddress &value)
Definition NatGateway.h:128
NatGateway & WithSubnetId(const Aws::String &value)
Definition NatGateway.h:191
bool ProvisionedBandwidthHasBeenSet() const
Definition NatGateway.h:153
NatGateway & WithVpcId(const Aws::String &value)
Definition NatGateway.h:205
void SetDeleteTime(Aws::Utils::DateTime &&value)
Definition NatGateway.h:68
const Aws::Vector< NatGatewayAddress > & GetNatGatewayAddresses() const
Definition NatGateway.h:122
NatGateway & WithNatGatewayId(const char *value)
Definition NatGateway.h:143
const Aws::String & GetNatGatewayId() const
Definition NatGateway.h:136
bool DeleteTimeHasBeenSet() const
Definition NatGateway.h:66
void SetNatGatewayId(Aws::String &&value)
Definition NatGateway.h:139
NatGateway & WithVpcId(Aws::String &&value)
Definition NatGateway.h:206
const ConnectivityType & GetConnectivityType() const
Definition NatGateway.h:229
const Aws::String & GetFailureCode() const
Definition NatGateway.h:81
NatGateway & WithTags(const Aws::Vector< Tag > &value)
Definition NatGateway.h:218
NatGateway & WithCreateTime(Aws::Utils::DateTime &&value)
Definition NatGateway.h:58
NatGateway & WithDeleteTime(const Aws::Utils::DateTime &value)
Definition NatGateway.h:69
NatGateway & WithNatGatewayId(const Aws::String &value)
Definition NatGateway.h:141
const Aws::Utils::DateTime & GetCreateTime() const
Definition NatGateway.h:53
NatGateway & WithTags(Aws::Vector< Tag > &&value)
Definition NatGateway.h:219
void SetState(const NatGatewayState &value)
Definition NatGateway.h:176
NatGateway & AddTags(Tag &&value)
Definition NatGateway.h:221
void SetFailureCode(const Aws::String &value)
Definition NatGateway.h:83
NatGateway & WithFailureMessage(Aws::String &&value)
Definition NatGateway.h:113
void SetConnectivityType(const ConnectivityType &value)
Definition NatGateway.h:231
NatGateway & AddTags(const Tag &value)
Definition NatGateway.h:220
AWS_EC2_API NatGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNatGatewayAddresses(const Aws::Vector< NatGatewayAddress > &value)
Definition NatGateway.h:124
NatGateway & WithSubnetId(const char *value)
Definition NatGateway.h:193
NatGateway & WithFailureMessage(const Aws::String &value)
Definition NatGateway.h:112
void SetConnectivityType(ConnectivityType &&value)
Definition NatGateway.h:232
void SetProvisionedBandwidth(ProvisionedBandwidth &&value)
Definition NatGateway.h:155
bool ConnectivityTypeHasBeenSet() const
Definition NatGateway.h:230
bool SubnetIdHasBeenSet() const
Definition NatGateway.h:187
NatGateway & WithCreateTime(const Aws::Utils::DateTime &value)
Definition NatGateway.h:57
void SetFailureCode(const char *value)
Definition NatGateway.h:85
NatGateway & WithNatGatewayAddresses(const Aws::Vector< NatGatewayAddress > &value)
Definition NatGateway.h:126
NatGateway & WithConnectivityType(ConnectivityType &&value)
Definition NatGateway.h:234
NatGateway & WithNatGatewayAddresses(Aws::Vector< NatGatewayAddress > &&value)
Definition NatGateway.h:127
void SetState(NatGatewayState &&value)
Definition NatGateway.h:177
NatGateway & WithFailureMessage(const char *value)
Definition NatGateway.h:114
const Aws::Utils::DateTime & GetDeleteTime() const
Definition NatGateway.h:65
void SetFailureMessage(Aws::String &&value)
Definition NatGateway.h:110
void SetFailureMessage(const Aws::String &value)
Definition NatGateway.h:109
void SetDeleteTime(const Aws::Utils::DateTime &value)
Definition NatGateway.h:67
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition NatGateway.h:56
NatGateway & WithFailureCode(const Aws::String &value)
Definition NatGateway.h:86
void SetTags(Aws::Vector< Tag > &&value)
Definition NatGateway.h:217
bool NatGatewayIdHasBeenSet() const
Definition NatGateway.h:137
void SetSubnetId(Aws::String &&value)
Definition NatGateway.h:189
NatGateway & AddNatGatewayAddresses(NatGatewayAddress &&value)
Definition NatGateway.h:129
void SetVpcId(const Aws::String &value)
Definition NatGateway.h:202
void SetVpcId(Aws::String &&value)
Definition NatGateway.h:203
bool FailureCodeHasBeenSet() const
Definition NatGateway.h:82
void SetFailureMessage(const char *value)
Definition NatGateway.h:111
void SetProvisionedBandwidth(const ProvisionedBandwidth &value)
Definition NatGateway.h:154
NatGateway & WithVpcId(const char *value)
Definition NatGateway.h:207
void SetNatGatewayId(const char *value)
Definition NatGateway.h:140
void SetSubnetId(const char *value)
Definition NatGateway.h:190
const Aws::Vector< Tag > & GetTags() const
Definition NatGateway.h:214
void SetFailureCode(Aws::String &&value)
Definition NatGateway.h:84
NatGateway & WithState(const NatGatewayState &value)
Definition NatGateway.h:178
NatGateway & WithFailureCode(const char *value)
Definition NatGateway.h:88
NatGateway & WithNatGatewayId(Aws::String &&value)
Definition NatGateway.h:142
NatGateway & WithFailureCode(Aws::String &&value)
Definition NatGateway.h:87
AWS_EC2_API NatGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVpcId(const char *value)
Definition NatGateway.h:204
bool CreateTimeHasBeenSet() const
Definition NatGateway.h:54
NatGateway & WithSubnetId(Aws::String &&value)
Definition NatGateway.h:192
NatGateway & WithState(NatGatewayState &&value)
Definition NatGateway.h:179
const Aws::String & GetVpcId() const
Definition NatGateway.h:200
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetNatGatewayAddresses(Aws::Vector< NatGatewayAddress > &&value)
Definition NatGateway.h:125
NatGateway & WithProvisionedBandwidth(const ProvisionedBandwidth &value)
Definition NatGateway.h:156
NatGateway & WithDeleteTime(Aws::Utils::DateTime &&value)
Definition NatGateway.h:70
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const NatGatewayState & GetState() const
Definition NatGateway.h:174
void SetTags(const Aws::Vector< Tag > &value)
Definition NatGateway.h:216
const Aws::String & GetSubnetId() const
Definition NatGateway.h:186
void SetNatGatewayId(const Aws::String &value)
Definition NatGateway.h:138
bool NatGatewayAddressesHasBeenSet() const
Definition NatGateway.h:123
const Aws::String & GetFailureMessage() const
Definition NatGateway.h:107
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