AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NetworkInterfaceAssociation.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_EC2_API NetworkInterfaceAssociation() = default;
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
48 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
49 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
50 template<typename AllocationIdT = Aws::String>
51 void SetAllocationId(AllocationIdT&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
52 template<typename AllocationIdT = Aws::String>
53 NetworkInterfaceAssociation& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetAssociationId() const { return m_associationId; }
61 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
62 template<typename AssociationIdT = Aws::String>
63 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
64 template<typename AssociationIdT = Aws::String>
65 NetworkInterfaceAssociation& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetIpOwnerId() const { return m_ipOwnerId; }
73 inline bool IpOwnerIdHasBeenSet() const { return m_ipOwnerIdHasBeenSet; }
74 template<typename IpOwnerIdT = Aws::String>
75 void SetIpOwnerId(IpOwnerIdT&& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = std::forward<IpOwnerIdT>(value); }
76 template<typename IpOwnerIdT = Aws::String>
77 NetworkInterfaceAssociation& WithIpOwnerId(IpOwnerIdT&& value) { SetIpOwnerId(std::forward<IpOwnerIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetPublicDnsName() const { return m_publicDnsName; }
85 inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
86 template<typename PublicDnsNameT = Aws::String>
87 void SetPublicDnsName(PublicDnsNameT&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::forward<PublicDnsNameT>(value); }
88 template<typename PublicDnsNameT = Aws::String>
89 NetworkInterfaceAssociation& WithPublicDnsName(PublicDnsNameT&& value) { SetPublicDnsName(std::forward<PublicDnsNameT>(value)); return *this;}
91
93
96 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
97 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
98 template<typename PublicIpT = Aws::String>
99 void SetPublicIp(PublicIpT&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::forward<PublicIpT>(value); }
100 template<typename PublicIpT = Aws::String>
101 NetworkInterfaceAssociation& WithPublicIp(PublicIpT&& value) { SetPublicIp(std::forward<PublicIpT>(value)); return *this;}
103
105
108 inline const Aws::String& GetCustomerOwnedIp() const { return m_customerOwnedIp; }
109 inline bool CustomerOwnedIpHasBeenSet() const { return m_customerOwnedIpHasBeenSet; }
110 template<typename CustomerOwnedIpT = Aws::String>
111 void SetCustomerOwnedIp(CustomerOwnedIpT&& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = std::forward<CustomerOwnedIpT>(value); }
112 template<typename CustomerOwnedIpT = Aws::String>
113 NetworkInterfaceAssociation& WithCustomerOwnedIp(CustomerOwnedIpT&& value) { SetCustomerOwnedIp(std::forward<CustomerOwnedIpT>(value)); return *this;}
115
117
122 inline const Aws::String& GetCarrierIp() const { return m_carrierIp; }
123 inline bool CarrierIpHasBeenSet() const { return m_carrierIpHasBeenSet; }
124 template<typename CarrierIpT = Aws::String>
125 void SetCarrierIp(CarrierIpT&& value) { m_carrierIpHasBeenSet = true; m_carrierIp = std::forward<CarrierIpT>(value); }
126 template<typename CarrierIpT = Aws::String>
127 NetworkInterfaceAssociation& WithCarrierIp(CarrierIpT&& value) { SetCarrierIp(std::forward<CarrierIpT>(value)); return *this;}
129 private:
130
131 Aws::String m_allocationId;
132 bool m_allocationIdHasBeenSet = false;
133
134 Aws::String m_associationId;
135 bool m_associationIdHasBeenSet = false;
136
137 Aws::String m_ipOwnerId;
138 bool m_ipOwnerIdHasBeenSet = false;
139
140 Aws::String m_publicDnsName;
141 bool m_publicDnsNameHasBeenSet = false;
142
143 Aws::String m_publicIp;
144 bool m_publicIpHasBeenSet = false;
145
146 Aws::String m_customerOwnedIp;
147 bool m_customerOwnedIpHasBeenSet = false;
148
149 Aws::String m_carrierIp;
150 bool m_carrierIpHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace EC2
155} // namespace Aws
NetworkInterfaceAssociation & WithIpOwnerId(IpOwnerIdT &&value)
AWS_EC2_API NetworkInterfaceAssociation()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkInterfaceAssociation & WithCarrierIp(CarrierIpT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NetworkInterfaceAssociation & WithPublicDnsName(PublicDnsNameT &&value)
AWS_EC2_API NetworkInterfaceAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAssociation & WithPublicIp(PublicIpT &&value)
NetworkInterfaceAssociation & WithAllocationId(AllocationIdT &&value)
NetworkInterfaceAssociation & WithCustomerOwnedIp(CustomerOwnedIpT &&value)
NetworkInterfaceAssociation & WithAssociationId(AssociationIdT &&value)
AWS_EC2_API NetworkInterfaceAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream