AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NatGatewayAddress.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/ec2/model/NatGatewayAddressStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API NatGatewayAddress();
37 AWS_EC2_API NatGatewayAddress(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
49 inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
50 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
51 inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
52 inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
53 inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
54 inline NatGatewayAddress& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
55 inline NatGatewayAddress& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
56 inline NatGatewayAddress& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
58
60
63 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
64 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
65 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
66 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
67 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
68 inline NatGatewayAddress& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
69 inline NatGatewayAddress& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
70 inline NatGatewayAddress& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
72
74
77 inline const Aws::String& GetPrivateIp() const{ return m_privateIp; }
78 inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; }
79 inline void SetPrivateIp(const Aws::String& value) { m_privateIpHasBeenSet = true; m_privateIp = value; }
80 inline void SetPrivateIp(Aws::String&& value) { m_privateIpHasBeenSet = true; m_privateIp = std::move(value); }
81 inline void SetPrivateIp(const char* value) { m_privateIpHasBeenSet = true; m_privateIp.assign(value); }
82 inline NatGatewayAddress& WithPrivateIp(const Aws::String& value) { SetPrivateIp(value); return *this;}
83 inline NatGatewayAddress& WithPrivateIp(Aws::String&& value) { SetPrivateIp(std::move(value)); return *this;}
84 inline NatGatewayAddress& WithPrivateIp(const char* value) { SetPrivateIp(value); return *this;}
86
88
92 inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
93 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
94 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
95 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
96 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
97 inline NatGatewayAddress& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
98 inline NatGatewayAddress& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
99 inline NatGatewayAddress& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
101
103
107 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
108 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
109 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
110 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
111 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
112 inline NatGatewayAddress& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
113 inline NatGatewayAddress& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
114 inline NatGatewayAddress& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
116
118
121 inline bool GetIsPrimary() const{ return m_isPrimary; }
122 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
123 inline void SetIsPrimary(bool value) { m_isPrimaryHasBeenSet = true; m_isPrimary = value; }
124 inline NatGatewayAddress& WithIsPrimary(bool value) { SetIsPrimary(value); return *this;}
126
128
131 inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; }
132 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
133 inline void SetFailureMessage(const Aws::String& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; }
134 inline void SetFailureMessage(Aws::String&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::move(value); }
135 inline void SetFailureMessage(const char* value) { m_failureMessageHasBeenSet = true; m_failureMessage.assign(value); }
136 inline NatGatewayAddress& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;}
137 inline NatGatewayAddress& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;}
138 inline NatGatewayAddress& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;}
140
142
145 inline const NatGatewayAddressStatus& GetStatus() const{ return m_status; }
146 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
147 inline void SetStatus(const NatGatewayAddressStatus& value) { m_statusHasBeenSet = true; m_status = value; }
148 inline void SetStatus(NatGatewayAddressStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
149 inline NatGatewayAddress& WithStatus(const NatGatewayAddressStatus& value) { SetStatus(value); return *this;}
150 inline NatGatewayAddress& WithStatus(NatGatewayAddressStatus&& value) { SetStatus(std::move(value)); return *this;}
152 private:
153
154 Aws::String m_allocationId;
155 bool m_allocationIdHasBeenSet = false;
156
157 Aws::String m_networkInterfaceId;
158 bool m_networkInterfaceIdHasBeenSet = false;
159
160 Aws::String m_privateIp;
161 bool m_privateIpHasBeenSet = false;
162
163 Aws::String m_publicIp;
164 bool m_publicIpHasBeenSet = false;
165
166 Aws::String m_associationId;
167 bool m_associationIdHasBeenSet = false;
168
169 bool m_isPrimary;
170 bool m_isPrimaryHasBeenSet = false;
171
172 Aws::String m_failureMessage;
173 bool m_failureMessageHasBeenSet = false;
174
176 bool m_statusHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace EC2
181} // namespace Aws
void SetFailureMessage(Aws::String &&value)
void SetAllocationId(const Aws::String &value)
void SetAllocationId(const char *value)
NatGatewayAddress & WithAssociationId(const char *value)
NatGatewayAddress & WithAllocationId(Aws::String &&value)
void SetPrivateIp(Aws::String &&value)
void SetPublicIp(const char *value)
NatGatewayAddress & WithPrivateIp(Aws::String &&value)
NatGatewayAddress & WithAssociationId(const Aws::String &value)
NatGatewayAddress & WithIsPrimary(bool value)
NatGatewayAddress & WithNetworkInterfaceId(const Aws::String &value)
NatGatewayAddress & WithStatus(NatGatewayAddressStatus &&value)
NatGatewayAddress & WithNetworkInterfaceId(Aws::String &&value)
NatGatewayAddress & WithStatus(const NatGatewayAddressStatus &value)
void SetStatus(NatGatewayAddressStatus &&value)
NatGatewayAddress & WithAssociationId(Aws::String &&value)
void SetAllocationId(Aws::String &&value)
AWS_EC2_API NatGatewayAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPrivateIp(const Aws::String &value)
NatGatewayAddress & WithFailureMessage(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NatGatewayAddress & WithPublicIp(Aws::String &&value)
NatGatewayAddress & WithPrivateIp(const Aws::String &value)
const Aws::String & GetFailureMessage() const
const Aws::String & GetNetworkInterfaceId() const
void SetAssociationId(Aws::String &&value)
void SetFailureMessage(const char *value)
void SetNetworkInterfaceId(Aws::String &&value)
NatGatewayAddress & WithPrivateIp(const char *value)
NatGatewayAddress & WithAllocationId(const char *value)
NatGatewayAddress & WithPublicIp(const Aws::String &value)
const Aws::String & GetPublicIp() const
const NatGatewayAddressStatus & GetStatus() const
void SetStatus(const NatGatewayAddressStatus &value)
AWS_EC2_API NatGatewayAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPrivateIp() const
void SetPublicIp(Aws::String &&value)
void SetNetworkInterfaceId(const char *value)
const Aws::String & GetAssociationId() const
NatGatewayAddress & WithFailureMessage(const char *value)
NatGatewayAddress & WithAllocationId(const Aws::String &value)
NatGatewayAddress & WithFailureMessage(Aws::String &&value)
void SetAssociationId(const char *value)
void SetFailureMessage(const Aws::String &value)
NatGatewayAddress & WithPublicIp(const char *value)
void SetAssociationId(const Aws::String &value)
void SetPrivateIp(const char *value)
const Aws::String & GetAllocationId() const
void SetNetworkInterfaceId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NatGatewayAddress & WithNetworkInterfaceId(const char *value)
void SetPublicIp(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream