AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AllocationIdT = Aws::String>
52 void SetAllocationId(AllocationIdT&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
53 template<typename AllocationIdT = Aws::String>
54 NatGatewayAddress& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
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) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
65 template<typename NetworkInterfaceIdT = Aws::String>
66 NatGatewayAddress& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetPrivateIp() const { return m_privateIp; }
74 inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; }
75 template<typename PrivateIpT = Aws::String>
76 void SetPrivateIp(PrivateIpT&& value) { m_privateIpHasBeenSet = true; m_privateIp = std::forward<PrivateIpT>(value); }
77 template<typename PrivateIpT = Aws::String>
78 NatGatewayAddress& WithPrivateIp(PrivateIpT&& value) { SetPrivateIp(std::forward<PrivateIpT>(value)); return *this;}
80
82
86 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
87 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
88 template<typename PublicIpT = Aws::String>
89 void SetPublicIp(PublicIpT&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::forward<PublicIpT>(value); }
90 template<typename PublicIpT = Aws::String>
91 NatGatewayAddress& WithPublicIp(PublicIpT&& value) { SetPublicIp(std::forward<PublicIpT>(value)); return *this;}
93
95
99 inline const Aws::String& GetAssociationId() const { return m_associationId; }
100 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
101 template<typename AssociationIdT = Aws::String>
102 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
103 template<typename AssociationIdT = Aws::String>
104 NatGatewayAddress& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
106
108
111 inline bool GetIsPrimary() const { return m_isPrimary; }
112 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
113 inline void SetIsPrimary(bool value) { m_isPrimaryHasBeenSet = true; m_isPrimary = value; }
114 inline NatGatewayAddress& WithIsPrimary(bool value) { SetIsPrimary(value); return *this;}
116
118
121 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
122 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
123 template<typename FailureMessageT = Aws::String>
124 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
125 template<typename FailureMessageT = Aws::String>
126 NatGatewayAddress& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
128
130
133 inline NatGatewayAddressStatus GetStatus() const { return m_status; }
134 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 inline void SetStatus(NatGatewayAddressStatus value) { m_statusHasBeenSet = true; m_status = value; }
136 inline NatGatewayAddress& WithStatus(NatGatewayAddressStatus value) { SetStatus(value); return *this;}
138 private:
139
140 Aws::String m_allocationId;
141 bool m_allocationIdHasBeenSet = false;
142
143 Aws::String m_networkInterfaceId;
144 bool m_networkInterfaceIdHasBeenSet = false;
145
146 Aws::String m_privateIp;
147 bool m_privateIpHasBeenSet = false;
148
149 Aws::String m_publicIp;
150 bool m_publicIpHasBeenSet = false;
151
152 Aws::String m_associationId;
153 bool m_associationIdHasBeenSet = false;
154
155 bool m_isPrimary{false};
156 bool m_isPrimaryHasBeenSet = false;
157
158 Aws::String m_failureMessage;
159 bool m_failureMessageHasBeenSet = false;
160
162 bool m_statusHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
NatGatewayAddress & WithStatus(NatGatewayAddressStatus value)
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
NatGatewayAddress & WithIsPrimary(bool value)
NatGatewayAddress & WithPrivateIp(PrivateIpT &&value)
AWS_EC2_API NatGatewayAddress()=default
void SetPublicIp(PublicIpT &&value)
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 & 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)
NatGatewayAddress & WithFailureMessage(FailureMessageT &&value)
void SetPrivateIp(PrivateIpT &&value)
const Aws::String & GetAssociationId() const
void SetAssociationId(AssociationIdT &&value)
NatGatewayAddress & WithAssociationId(AssociationIdT &&value)
void SetStatus(NatGatewayAddressStatus value)
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