AWS SDK for C++  1.9.128
AWS SDK for C++
NetworkInterfaceAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
48 
52  inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
53 
57  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
58 
62  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
63 
67  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
68 
72  inline NetworkInterfaceAssociation& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
73 
77  inline NetworkInterfaceAssociation& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
78 
82  inline NetworkInterfaceAssociation& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
83 
84 
88  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
89 
93  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
94 
98  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
99 
103  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
104 
108  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
109 
113  inline NetworkInterfaceAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
114 
118  inline NetworkInterfaceAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
119 
123  inline NetworkInterfaceAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
124 
125 
129  inline const Aws::String& GetIpOwnerId() const{ return m_ipOwnerId; }
130 
134  inline bool IpOwnerIdHasBeenSet() const { return m_ipOwnerIdHasBeenSet; }
135 
139  inline void SetIpOwnerId(const Aws::String& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = value; }
140 
144  inline void SetIpOwnerId(Aws::String&& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = std::move(value); }
145 
149  inline void SetIpOwnerId(const char* value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId.assign(value); }
150 
154  inline NetworkInterfaceAssociation& WithIpOwnerId(const Aws::String& value) { SetIpOwnerId(value); return *this;}
155 
159  inline NetworkInterfaceAssociation& WithIpOwnerId(Aws::String&& value) { SetIpOwnerId(std::move(value)); return *this;}
160 
164  inline NetworkInterfaceAssociation& WithIpOwnerId(const char* value) { SetIpOwnerId(value); return *this;}
165 
166 
170  inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
171 
175  inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
176 
180  inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
181 
185  inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); }
186 
190  inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
191 
195  inline NetworkInterfaceAssociation& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;}
196 
200  inline NetworkInterfaceAssociation& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;}
201 
205  inline NetworkInterfaceAssociation& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
206 
207 
211  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
212 
216  inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
217 
221  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
222 
226  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
227 
231  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
232 
236  inline NetworkInterfaceAssociation& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
237 
241  inline NetworkInterfaceAssociation& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
242 
246  inline NetworkInterfaceAssociation& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
247 
248 
252  inline const Aws::String& GetCustomerOwnedIp() const{ return m_customerOwnedIp; }
253 
257  inline bool CustomerOwnedIpHasBeenSet() const { return m_customerOwnedIpHasBeenSet; }
258 
262  inline void SetCustomerOwnedIp(const Aws::String& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = value; }
263 
267  inline void SetCustomerOwnedIp(Aws::String&& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = std::move(value); }
268 
272  inline void SetCustomerOwnedIp(const char* value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp.assign(value); }
273 
277  inline NetworkInterfaceAssociation& WithCustomerOwnedIp(const Aws::String& value) { SetCustomerOwnedIp(value); return *this;}
278 
282  inline NetworkInterfaceAssociation& WithCustomerOwnedIp(Aws::String&& value) { SetCustomerOwnedIp(std::move(value)); return *this;}
283 
287  inline NetworkInterfaceAssociation& WithCustomerOwnedIp(const char* value) { SetCustomerOwnedIp(value); return *this;}
288 
289 
295  inline const Aws::String& GetCarrierIp() const{ return m_carrierIp; }
296 
302  inline bool CarrierIpHasBeenSet() const { return m_carrierIpHasBeenSet; }
303 
309  inline void SetCarrierIp(const Aws::String& value) { m_carrierIpHasBeenSet = true; m_carrierIp = value; }
310 
316  inline void SetCarrierIp(Aws::String&& value) { m_carrierIpHasBeenSet = true; m_carrierIp = std::move(value); }
317 
323  inline void SetCarrierIp(const char* value) { m_carrierIpHasBeenSet = true; m_carrierIp.assign(value); }
324 
330  inline NetworkInterfaceAssociation& WithCarrierIp(const Aws::String& value) { SetCarrierIp(value); return *this;}
331 
337  inline NetworkInterfaceAssociation& WithCarrierIp(Aws::String&& value) { SetCarrierIp(std::move(value)); return *this;}
338 
344  inline NetworkInterfaceAssociation& WithCarrierIp(const char* value) { SetCarrierIp(value); return *this;}
345 
346  private:
347 
348  Aws::String m_allocationId;
349  bool m_allocationIdHasBeenSet;
350 
351  Aws::String m_associationId;
352  bool m_associationIdHasBeenSet;
353 
354  Aws::String m_ipOwnerId;
355  bool m_ipOwnerIdHasBeenSet;
356 
357  Aws::String m_publicDnsName;
358  bool m_publicDnsNameHasBeenSet;
359 
360  Aws::String m_publicIp;
361  bool m_publicIpHasBeenSet;
362 
363  Aws::String m_customerOwnedIp;
364  bool m_customerOwnedIpHasBeenSet;
365 
366  Aws::String m_carrierIp;
367  bool m_carrierIpHasBeenSet;
368  };
369 
370 } // namespace Model
371 } // namespace EC2
372 } // namespace Aws
Aws::EC2::Model::NetworkInterfaceAssociation::SetPublicDnsName
void SetPublicDnsName(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:185
Aws::EC2::Model::NetworkInterfaceAssociation::GetAllocationId
const Aws::String & GetAllocationId() const
Definition: NetworkInterfaceAssociation.h:47
Aws::EC2::Model::NetworkInterfaceAssociation::WithAllocationId
NetworkInterfaceAssociation & WithAllocationId(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:72
Aws::EC2::Model::NetworkInterfaceAssociation::WithPublicDnsName
NetworkInterfaceAssociation & WithPublicDnsName(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:200
Aws::EC2::Model::NetworkInterfaceAssociation::SetCustomerOwnedIp
void SetCustomerOwnedIp(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:267
Aws::EC2::Model::NetworkInterfaceAssociation::SetCustomerOwnedIp
void SetCustomerOwnedIp(const char *value)
Definition: NetworkInterfaceAssociation.h:272
Aws::EC2::Model::NetworkInterfaceAssociation::WithPublicIp
NetworkInterfaceAssociation & WithPublicIp(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:236
Aws::EC2::Model::NetworkInterfaceAssociation::SetAllocationId
void SetAllocationId(const char *value)
Definition: NetworkInterfaceAssociation.h:67
Aws::EC2::Model::NetworkInterfaceAssociation::GetPublicDnsName
const Aws::String & GetPublicDnsName() const
Definition: NetworkInterfaceAssociation.h:170
Aws::EC2::Model::NetworkInterfaceAssociation::WithPublicIp
NetworkInterfaceAssociation & WithPublicIp(const char *value)
Definition: NetworkInterfaceAssociation.h:246
Aws::EC2::Model::NetworkInterfaceAssociation::SetCarrierIp
void SetCarrierIp(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:316
Aws::EC2::Model::NetworkInterfaceAssociation::SetPublicDnsName
void SetPublicDnsName(const char *value)
Definition: NetworkInterfaceAssociation.h:190
Aws::EC2::Model::NetworkInterfaceAssociation::WithIpOwnerId
NetworkInterfaceAssociation & WithIpOwnerId(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:154
Aws::EC2::Model::NetworkInterfaceAssociation::SetAssociationId
void SetAssociationId(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:98
Aws::EC2::Model::NetworkInterfaceAssociation::WithAssociationId
NetworkInterfaceAssociation & WithAssociationId(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:113
Aws::EC2::Model::NetworkInterfaceAssociation::SetPublicIp
void SetPublicIp(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:221
Aws::EC2::Model::NetworkInterfaceAssociation::WithCustomerOwnedIp
NetworkInterfaceAssociation & WithCustomerOwnedIp(const char *value)
Definition: NetworkInterfaceAssociation.h:287
Aws::EC2::Model::NetworkInterfaceAssociation::AssociationIdHasBeenSet
bool AssociationIdHasBeenSet() const
Definition: NetworkInterfaceAssociation.h:93
Aws::EC2::Model::NetworkInterfaceAssociation::WithAllocationId
NetworkInterfaceAssociation & WithAllocationId(const char *value)
Definition: NetworkInterfaceAssociation.h:82
Aws::EC2::Model::NetworkInterfaceAssociation
Definition: NetworkInterfaceAssociation.h:34
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NetworkInterfaceAssociation::GetCustomerOwnedIp
const Aws::String & GetCustomerOwnedIp() const
Definition: NetworkInterfaceAssociation.h:252
Aws::EC2::Model::NetworkInterfaceAssociation::SetPublicDnsName
void SetPublicDnsName(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:180
Aws::EC2::Model::NetworkInterfaceAssociation::WithCarrierIp
NetworkInterfaceAssociation & WithCarrierIp(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:337
AWSStreamFwd.h
Aws::EC2::Model::NetworkInterfaceAssociation::WithIpOwnerId
NetworkInterfaceAssociation & WithIpOwnerId(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:159
Aws::EC2::Model::NetworkInterfaceAssociation::WithCustomerOwnedIp
NetworkInterfaceAssociation & WithCustomerOwnedIp(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:277
Aws::EC2::Model::NetworkInterfaceAssociation::WithPublicDnsName
NetworkInterfaceAssociation & WithPublicDnsName(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:195
Aws::EC2::Model::NetworkInterfaceAssociation::SetAllocationId
void SetAllocationId(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:62
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NetworkInterfaceAssociation::WithCarrierIp
NetworkInterfaceAssociation & WithCarrierIp(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:330
Aws::EC2::Model::NetworkInterfaceAssociation::SetAllocationId
void SetAllocationId(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:57
Aws::EC2::Model::NetworkInterfaceAssociation::WithPublicIp
NetworkInterfaceAssociation & WithPublicIp(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:241
Aws::EC2::Model::NetworkInterfaceAssociation::GetAssociationId
const Aws::String & GetAssociationId() const
Definition: NetworkInterfaceAssociation.h:88
Aws::EC2::Model::NetworkInterfaceAssociation::WithIpOwnerId
NetworkInterfaceAssociation & WithIpOwnerId(const char *value)
Definition: NetworkInterfaceAssociation.h:164
Aws::EC2::Model::NetworkInterfaceAssociation::SetIpOwnerId
void SetIpOwnerId(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:139
Aws::EC2::Model::NetworkInterfaceAssociation::SetIpOwnerId
void SetIpOwnerId(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:144
Aws::EC2::Model::NetworkInterfaceAssociation::AllocationIdHasBeenSet
bool AllocationIdHasBeenSet() const
Definition: NetworkInterfaceAssociation.h:52
Aws::EC2::Model::NetworkInterfaceAssociation::IpOwnerIdHasBeenSet
bool IpOwnerIdHasBeenSet() const
Definition: NetworkInterfaceAssociation.h:134
AWSString.h
Aws::EC2::Model::NetworkInterfaceAssociation::SetCarrierIp
void SetCarrierIp(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:309
Aws::EC2::Model::NetworkInterfaceAssociation::GetCarrierIp
const Aws::String & GetCarrierIp() const
Definition: NetworkInterfaceAssociation.h:295
Aws::EC2::Model::NetworkInterfaceAssociation::SetAssociationId
void SetAssociationId(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:103
Aws::EC2::Model::NetworkInterfaceAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::NetworkInterfaceAssociation::SetCustomerOwnedIp
void SetCustomerOwnedIp(const Aws::String &value)
Definition: NetworkInterfaceAssociation.h:262
Aws::EC2::Model::NetworkInterfaceAssociation::WithCarrierIp
NetworkInterfaceAssociation & WithCarrierIp(const char *value)
Definition: NetworkInterfaceAssociation.h:344
Aws::EC2::Model::NetworkInterfaceAssociation::WithAllocationId
NetworkInterfaceAssociation & WithAllocationId(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:77
Aws::EC2::Model::NetworkInterfaceAssociation::operator=
NetworkInterfaceAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkInterfaceAssociation::SetIpOwnerId
void SetIpOwnerId(const char *value)
Definition: NetworkInterfaceAssociation.h:149
Aws::EC2::Model::NetworkInterfaceAssociation::SetAssociationId
void SetAssociationId(const char *value)
Definition: NetworkInterfaceAssociation.h:108
Aws::EC2::Model::NetworkInterfaceAssociation::WithAssociationId
NetworkInterfaceAssociation & WithAssociationId(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:118
Aws::EC2::Model::NetworkInterfaceAssociation::WithCustomerOwnedIp
NetworkInterfaceAssociation & WithCustomerOwnedIp(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:282
Aws::EC2::Model::NetworkInterfaceAssociation::WithPublicDnsName
NetworkInterfaceAssociation & WithPublicDnsName(const char *value)
Definition: NetworkInterfaceAssociation.h:205
Aws::EC2::Model::NetworkInterfaceAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NetworkInterfaceAssociation::GetIpOwnerId
const Aws::String & GetIpOwnerId() const
Definition: NetworkInterfaceAssociation.h:129
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::NetworkInterfaceAssociation::WithAssociationId
NetworkInterfaceAssociation & WithAssociationId(const char *value)
Definition: NetworkInterfaceAssociation.h:123
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::NetworkInterfaceAssociation::SetCarrierIp
void SetCarrierIp(const char *value)
Definition: NetworkInterfaceAssociation.h:323
Aws::EC2::Model::NetworkInterfaceAssociation::CustomerOwnedIpHasBeenSet
bool CustomerOwnedIpHasBeenSet() const
Definition: NetworkInterfaceAssociation.h:257
Aws::EC2::Model::NetworkInterfaceAssociation::PublicDnsNameHasBeenSet
bool PublicDnsNameHasBeenSet() const
Definition: NetworkInterfaceAssociation.h:175
Aws::EC2::Model::NetworkInterfaceAssociation::PublicIpHasBeenSet
bool PublicIpHasBeenSet() const
Definition: NetworkInterfaceAssociation.h:216
Aws::EC2::Model::NetworkInterfaceAssociation::NetworkInterfaceAssociation
NetworkInterfaceAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkInterfaceAssociation::NetworkInterfaceAssociation
NetworkInterfaceAssociation()
Aws::EC2::Model::NetworkInterfaceAssociation::GetPublicIp
const Aws::String & GetPublicIp() const
Definition: NetworkInterfaceAssociation.h:211
Aws::EC2::Model::NetworkInterfaceAssociation::SetPublicIp
void SetPublicIp(Aws::String &&value)
Definition: NetworkInterfaceAssociation.h:226
EC2_EXPORTS.h
Aws::EC2::Model::NetworkInterfaceAssociation::CarrierIpHasBeenSet
bool CarrierIpHasBeenSet() const
Definition: NetworkInterfaceAssociation.h:302
Aws::EC2::Model::NetworkInterfaceAssociation::SetPublicIp
void SetPublicIp(const char *value)
Definition: NetworkInterfaceAssociation.h:231