AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkInterfaceAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
30 public:
31 AWS_EC2_API NetworkInterfaceAssociation() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
43 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
44 template <typename AllocationIdT = Aws::String>
45 void SetAllocationId(AllocationIdT&& value) {
46 m_allocationIdHasBeenSet = true;
47 m_allocationId = std::forward<AllocationIdT>(value);
48 }
49 template <typename AllocationIdT = Aws::String>
51 SetAllocationId(std::forward<AllocationIdT>(value));
52 return *this;
53 }
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) {
64 m_associationIdHasBeenSet = true;
65 m_associationId = std::forward<AssociationIdT>(value);
66 }
67 template <typename AssociationIdT = Aws::String>
69 SetAssociationId(std::forward<AssociationIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetIpOwnerId() const { return m_ipOwnerId; }
79 inline bool IpOwnerIdHasBeenSet() const { return m_ipOwnerIdHasBeenSet; }
80 template <typename IpOwnerIdT = Aws::String>
81 void SetIpOwnerId(IpOwnerIdT&& value) {
82 m_ipOwnerIdHasBeenSet = true;
83 m_ipOwnerId = std::forward<IpOwnerIdT>(value);
84 }
85 template <typename IpOwnerIdT = Aws::String>
87 SetIpOwnerId(std::forward<IpOwnerIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetPublicDnsName() const { return m_publicDnsName; }
97 inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
98 template <typename PublicDnsNameT = Aws::String>
99 void SetPublicDnsName(PublicDnsNameT&& value) {
100 m_publicDnsNameHasBeenSet = true;
101 m_publicDnsName = std::forward<PublicDnsNameT>(value);
102 }
103 template <typename PublicDnsNameT = Aws::String>
105 SetPublicDnsName(std::forward<PublicDnsNameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
115 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
116 template <typename PublicIpT = Aws::String>
117 void SetPublicIp(PublicIpT&& value) {
118 m_publicIpHasBeenSet = true;
119 m_publicIp = std::forward<PublicIpT>(value);
120 }
121 template <typename PublicIpT = Aws::String>
123 SetPublicIp(std::forward<PublicIpT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetCustomerOwnedIp() const { return m_customerOwnedIp; }
133 inline bool CustomerOwnedIpHasBeenSet() const { return m_customerOwnedIpHasBeenSet; }
134 template <typename CustomerOwnedIpT = Aws::String>
135 void SetCustomerOwnedIp(CustomerOwnedIpT&& value) {
136 m_customerOwnedIpHasBeenSet = true;
137 m_customerOwnedIp = std::forward<CustomerOwnedIpT>(value);
138 }
139 template <typename CustomerOwnedIpT = Aws::String>
141 SetCustomerOwnedIp(std::forward<CustomerOwnedIpT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::String& GetCarrierIp() const { return m_carrierIp; }
153 inline bool CarrierIpHasBeenSet() const { return m_carrierIpHasBeenSet; }
154 template <typename CarrierIpT = Aws::String>
155 void SetCarrierIp(CarrierIpT&& value) {
156 m_carrierIpHasBeenSet = true;
157 m_carrierIp = std::forward<CarrierIpT>(value);
158 }
159 template <typename CarrierIpT = Aws::String>
161 SetCarrierIp(std::forward<CarrierIpT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_allocationId;
167
168 Aws::String m_associationId;
169
170 Aws::String m_ipOwnerId;
171
172 Aws::String m_publicDnsName;
173
174 Aws::String m_publicIp;
175
176 Aws::String m_customerOwnedIp;
177
178 Aws::String m_carrierIp;
179 bool m_allocationIdHasBeenSet = false;
180 bool m_associationIdHasBeenSet = false;
181 bool m_ipOwnerIdHasBeenSet = false;
182 bool m_publicDnsNameHasBeenSet = false;
183 bool m_publicIpHasBeenSet = false;
184 bool m_customerOwnedIpHasBeenSet = false;
185 bool m_carrierIpHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace EC2
190} // 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