AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NatGatewayAddress.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/NatGatewayAddressStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API NatGatewayAddress() = default;
32 AWS_EC2_API NatGatewayAddress(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
44 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
45 template <typename AllocationIdT = Aws::String>
46 void SetAllocationId(AllocationIdT&& value) {
47 m_allocationIdHasBeenSet = true;
48 m_allocationId = std::forward<AllocationIdT>(value);
49 }
50 template <typename AllocationIdT = Aws::String>
51 NatGatewayAddress& WithAllocationId(AllocationIdT&& value) {
52 SetAllocationId(std::forward<AllocationIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
62 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
63 template <typename NetworkInterfaceIdT = Aws::String>
64 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
65 m_networkInterfaceIdHasBeenSet = true;
66 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
67 }
68 template <typename NetworkInterfaceIdT = Aws::String>
69 NatGatewayAddress& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) {
70 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetPrivateIp() const { return m_privateIp; }
80 inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; }
81 template <typename PrivateIpT = Aws::String>
82 void SetPrivateIp(PrivateIpT&& value) {
83 m_privateIpHasBeenSet = true;
84 m_privateIp = std::forward<PrivateIpT>(value);
85 }
86 template <typename PrivateIpT = Aws::String>
87 NatGatewayAddress& WithPrivateIp(PrivateIpT&& value) {
88 SetPrivateIp(std::forward<PrivateIpT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
99 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
100 template <typename PublicIpT = Aws::String>
101 void SetPublicIp(PublicIpT&& value) {
102 m_publicIpHasBeenSet = true;
103 m_publicIp = std::forward<PublicIpT>(value);
104 }
105 template <typename PublicIpT = Aws::String>
106 NatGatewayAddress& WithPublicIp(PublicIpT&& value) {
107 SetPublicIp(std::forward<PublicIpT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetAssociationId() const { return m_associationId; }
118 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
119 template <typename AssociationIdT = Aws::String>
120 void SetAssociationId(AssociationIdT&& value) {
121 m_associationIdHasBeenSet = true;
122 m_associationId = std::forward<AssociationIdT>(value);
123 }
124 template <typename AssociationIdT = Aws::String>
125 NatGatewayAddress& WithAssociationId(AssociationIdT&& value) {
126 SetAssociationId(std::forward<AssociationIdT>(value));
127 return *this;
128 }
130
132
135 inline bool GetIsPrimary() const { return m_isPrimary; }
136 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
137 inline void SetIsPrimary(bool value) {
138 m_isPrimaryHasBeenSet = true;
139 m_isPrimary = value;
140 }
141 inline NatGatewayAddress& WithIsPrimary(bool value) {
142 SetIsPrimary(value);
143 return *this;
144 }
146
148
151 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
152 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
153 template <typename FailureMessageT = Aws::String>
154 void SetFailureMessage(FailureMessageT&& value) {
155 m_failureMessageHasBeenSet = true;
156 m_failureMessage = std::forward<FailureMessageT>(value);
157 }
158 template <typename FailureMessageT = Aws::String>
159 NatGatewayAddress& WithFailureMessage(FailureMessageT&& value) {
160 SetFailureMessage(std::forward<FailureMessageT>(value));
161 return *this;
162 }
164
166
169 inline NatGatewayAddressStatus GetStatus() const { return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 m_statusHasBeenSet = true;
173 m_status = value;
174 }
176 SetStatus(value);
177 return *this;
178 }
180
182
186 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
187 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
188 template <typename AvailabilityZoneT = Aws::String>
189 void SetAvailabilityZone(AvailabilityZoneT&& value) {
190 m_availabilityZoneHasBeenSet = true;
191 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
192 }
193 template <typename AvailabilityZoneT = Aws::String>
194 NatGatewayAddress& WithAvailabilityZone(AvailabilityZoneT&& value) {
195 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
196 return *this;
197 }
199
201
206 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
207 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
208 template <typename AvailabilityZoneIdT = Aws::String>
209 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
210 m_availabilityZoneIdHasBeenSet = true;
211 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
212 }
213 template <typename AvailabilityZoneIdT = Aws::String>
214 NatGatewayAddress& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
215 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_allocationId;
221
222 Aws::String m_networkInterfaceId;
223
224 Aws::String m_privateIp;
225
226 Aws::String m_publicIp;
227
228 Aws::String m_associationId;
229
230 bool m_isPrimary{false};
231
232 Aws::String m_failureMessage;
233
235
236 Aws::String m_availabilityZone;
237
238 Aws::String m_availabilityZoneId;
239 bool m_allocationIdHasBeenSet = false;
240 bool m_networkInterfaceIdHasBeenSet = false;
241 bool m_privateIpHasBeenSet = false;
242 bool m_publicIpHasBeenSet = false;
243 bool m_associationIdHasBeenSet = false;
244 bool m_isPrimaryHasBeenSet = false;
245 bool m_failureMessageHasBeenSet = false;
246 bool m_statusHasBeenSet = false;
247 bool m_availabilityZoneHasBeenSet = false;
248 bool m_availabilityZoneIdHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace EC2
253} // namespace Aws
NatGatewayAddress & WithStatus(NatGatewayAddressStatus value)
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
NatGatewayAddress & WithIsPrimary(bool value)
NatGatewayAddress & WithPrivateIp(PrivateIpT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
AWS_EC2_API NatGatewayAddress()=default
AWS_EC2_API NatGatewayAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetFailureMessage() const
const Aws::String & GetNetworkInterfaceId() const
void SetAllocationId(AllocationIdT &&value)
void SetFailureMessage(FailureMessageT &&value)
const Aws::String & GetAvailabilityZone() const
const Aws::String & GetPublicIp() const
NatGatewayAddress & WithAllocationId(AllocationIdT &&value)
NatGatewayAddress & WithPublicIp(PublicIpT &&value)
AWS_EC2_API NatGatewayAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPrivateIp() const
NatGatewayAddress & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
NatGatewayAddress & WithFailureMessage(FailureMessageT &&value)
void SetPrivateIp(PrivateIpT &&value)
const Aws::String & GetAssociationId() const
void SetAssociationId(AssociationIdT &&value)
NatGatewayAddress & WithAssociationId(AssociationIdT &&value)
NatGatewayAddress & WithAvailabilityZone(AvailabilityZoneT &&value)
NatGatewayAddress & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetStatus(NatGatewayAddressStatus value)
const Aws::String & GetAvailabilityZoneId() const
NatGatewayAddressStatus GetStatus() const
const Aws::String & GetAllocationId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream