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>
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>
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>
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>
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>
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>
113 inline void SetIsPrimary(
bool value) { m_isPrimaryHasBeenSet =
true; m_isPrimary = value; }
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>
141 bool m_allocationIdHasBeenSet =
false;
144 bool m_networkInterfaceIdHasBeenSet =
false;
147 bool m_privateIpHasBeenSet =
false;
150 bool m_publicIpHasBeenSet =
false;
153 bool m_associationIdHasBeenSet =
false;
155 bool m_isPrimary{
false};
156 bool m_isPrimaryHasBeenSet =
false;
159 bool m_failureMessageHasBeenSet =
false;
162 bool m_statusHasBeenSet =
false;
NatGatewayAddress & WithStatus(NatGatewayAddressStatus value)
bool FailureMessageHasBeenSet() const
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
NatGatewayAddress & WithIsPrimary(bool value)
NatGatewayAddress & WithPrivateIp(PrivateIpT &&value)
bool GetIsPrimary() const
AWS_EC2_API NatGatewayAddress()=default
void SetPublicIp(PublicIpT &&value)
AWS_EC2_API NatGatewayAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
bool PrivateIpHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool AllocationIdHasBeenSet() const
const Aws::String & GetFailureMessage() const
const Aws::String & GetNetworkInterfaceId() const
void SetAllocationId(AllocationIdT &&value)
void SetFailureMessage(FailureMessageT &&value)
bool AssociationIdHasBeenSet() 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)
bool NetworkInterfaceIdHasBeenSet() const
NatGatewayAddress & WithFailureMessage(FailureMessageT &&value)
void SetPrivateIp(PrivateIpT &&value)
bool IsPrimaryHasBeenSet() const
const Aws::String & GetAssociationId() const
bool PublicIpHasBeenSet() const
void SetAssociationId(AssociationIdT &&value)
NatGatewayAddress & WithAssociationId(AssociationIdT &&value)
bool StatusHasBeenSet() const
void SetIsPrimary(bool 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