AWS SDK for C++  1.9.74
AWS SDK for C++
NatGatewayAddress.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
48 
53  inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
54 
59  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
60 
65  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
66 
71  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
72 
77  inline NatGatewayAddress& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
78 
83  inline NatGatewayAddress& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
84 
89  inline NatGatewayAddress& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
90 
91 
95  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
96 
100  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
101 
105  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
106 
110  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
111 
115  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
116 
120  inline NatGatewayAddress& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
121 
125  inline NatGatewayAddress& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
126 
130  inline NatGatewayAddress& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
131 
132 
136  inline const Aws::String& GetPrivateIp() const{ return m_privateIp; }
137 
141  inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; }
142 
146  inline void SetPrivateIp(const Aws::String& value) { m_privateIpHasBeenSet = true; m_privateIp = value; }
147 
151  inline void SetPrivateIp(Aws::String&& value) { m_privateIpHasBeenSet = true; m_privateIp = std::move(value); }
152 
156  inline void SetPrivateIp(const char* value) { m_privateIpHasBeenSet = true; m_privateIp.assign(value); }
157 
161  inline NatGatewayAddress& WithPrivateIp(const Aws::String& value) { SetPrivateIp(value); return *this;}
162 
166  inline NatGatewayAddress& WithPrivateIp(Aws::String&& value) { SetPrivateIp(std::move(value)); return *this;}
167 
171  inline NatGatewayAddress& WithPrivateIp(const char* value) { SetPrivateIp(value); return *this;}
172 
173 
178  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
179 
184  inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
185 
190  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
191 
196  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
197 
202  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
203 
208  inline NatGatewayAddress& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
209 
214  inline NatGatewayAddress& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
215 
220  inline NatGatewayAddress& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
221 
222  private:
223 
224  Aws::String m_allocationId;
225  bool m_allocationIdHasBeenSet;
226 
227  Aws::String m_networkInterfaceId;
228  bool m_networkInterfaceIdHasBeenSet;
229 
230  Aws::String m_privateIp;
231  bool m_privateIpHasBeenSet;
232 
233  Aws::String m_publicIp;
234  bool m_publicIpHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace EC2
239 } // namespace Aws
Aws::EC2::Model::NatGatewayAddress::WithNetworkInterfaceId
NatGatewayAddress & WithNetworkInterfaceId(const char *value)
Definition: NatGatewayAddress.h:130
Aws::EC2::Model::NatGatewayAddress::NatGatewayAddress
NatGatewayAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NatGatewayAddress::operator=
NatGatewayAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NatGatewayAddress::WithPrivateIp
NatGatewayAddress & WithPrivateIp(const Aws::String &value)
Definition: NatGatewayAddress.h:161
Aws::EC2::Model::NatGatewayAddress::WithAllocationId
NatGatewayAddress & WithAllocationId(Aws::String &&value)
Definition: NatGatewayAddress.h:83
Aws::EC2::Model::NatGatewayAddress::GetPublicIp
const Aws::String & GetPublicIp() const
Definition: NatGatewayAddress.h:178
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NatGatewayAddress::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: NatGatewayAddress.h:100
Aws::EC2::Model::NatGatewayAddress::WithNetworkInterfaceId
NatGatewayAddress & WithNetworkInterfaceId(const Aws::String &value)
Definition: NatGatewayAddress.h:120
AWSStreamFwd.h
Aws::EC2::Model::NatGatewayAddress::GetPrivateIp
const Aws::String & GetPrivateIp() const
Definition: NatGatewayAddress.h:136
Aws::EC2::Model::NatGatewayAddress::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::NatGatewayAddress::SetAllocationId
void SetAllocationId(const Aws::String &value)
Definition: NatGatewayAddress.h:59
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::NatGatewayAddress::SetPrivateIp
void SetPrivateIp(Aws::String &&value)
Definition: NatGatewayAddress.h:151
Aws::EC2::Model::NatGatewayAddress::WithPublicIp
NatGatewayAddress & WithPublicIp(const Aws::String &value)
Definition: NatGatewayAddress.h:208
Aws::EC2::Model::NatGatewayAddress::WithAllocationId
NatGatewayAddress & WithAllocationId(const Aws::String &value)
Definition: NatGatewayAddress.h:77
Aws::EC2::Model::NatGatewayAddress::WithPublicIp
NatGatewayAddress & WithPublicIp(const char *value)
Definition: NatGatewayAddress.h:220
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NatGatewayAddress::SetPrivateIp
void SetPrivateIp(const Aws::String &value)
Definition: NatGatewayAddress.h:146
Aws::EC2::Model::NatGatewayAddress::WithNetworkInterfaceId
NatGatewayAddress & WithNetworkInterfaceId(Aws::String &&value)
Definition: NatGatewayAddress.h:125
Aws::EC2::Model::NatGatewayAddress::SetPublicIp
void SetPublicIp(Aws::String &&value)
Definition: NatGatewayAddress.h:196
Aws::EC2::Model::NatGatewayAddress::WithPrivateIp
NatGatewayAddress & WithPrivateIp(Aws::String &&value)
Definition: NatGatewayAddress.h:166
Aws::EC2::Model::NatGatewayAddress::SetAllocationId
void SetAllocationId(const char *value)
Definition: NatGatewayAddress.h:71
Aws::EC2::Model::NatGatewayAddress::WithPublicIp
NatGatewayAddress & WithPublicIp(Aws::String &&value)
Definition: NatGatewayAddress.h:214
Aws::EC2::Model::NatGatewayAddress::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: NatGatewayAddress.h:105
AWSString.h
Aws::EC2::Model::NatGatewayAddress::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::NatGatewayAddress::NatGatewayAddress
NatGatewayAddress()
Aws::EC2::Model::NatGatewayAddress::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: NatGatewayAddress.h:115
Aws::EC2::Model::NatGatewayAddress::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: NatGatewayAddress.h:110
Aws::EC2::Model::NatGatewayAddress::AllocationIdHasBeenSet
bool AllocationIdHasBeenSet() const
Definition: NatGatewayAddress.h:53
Aws::EC2::Model::NatGatewayAddress::WithAllocationId
NatGatewayAddress & WithAllocationId(const char *value)
Definition: NatGatewayAddress.h:89
Aws::EC2::Model::NatGatewayAddress::WithPrivateIp
NatGatewayAddress & WithPrivateIp(const char *value)
Definition: NatGatewayAddress.h:171
Aws::EC2::Model::NatGatewayAddress::PublicIpHasBeenSet
bool PublicIpHasBeenSet() const
Definition: NatGatewayAddress.h:184
Aws::EC2::Model::NatGatewayAddress::SetPrivateIp
void SetPrivateIp(const char *value)
Definition: NatGatewayAddress.h:156
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NatGatewayAddress::SetPublicIp
void SetPublicIp(const char *value)
Definition: NatGatewayAddress.h:202
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::NatGatewayAddress::PrivateIpHasBeenSet
bool PrivateIpHasBeenSet() const
Definition: NatGatewayAddress.h:141
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::NatGatewayAddress::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: NatGatewayAddress.h:95
Aws::EC2::Model::NatGatewayAddress::SetAllocationId
void SetAllocationId(Aws::String &&value)
Definition: NatGatewayAddress.h:65
Aws::EC2::Model::NatGatewayAddress::GetAllocationId
const Aws::String & GetAllocationId() const
Definition: NatGatewayAddress.h:47
EC2_EXPORTS.h
Aws::EC2::Model::NatGatewayAddress
Definition: NatGatewayAddress.h:33
Aws::EC2::Model::NatGatewayAddress::SetPublicIp
void SetPublicIp(const Aws::String &value)
Definition: NatGatewayAddress.h:190