AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
51 inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
52 inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
53 inline NetworkInterfaceAssociation& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
54 inline NetworkInterfaceAssociation& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
55 inline NetworkInterfaceAssociation& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
57
59
62 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
63 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
64 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
65 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
66 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
67 inline NetworkInterfaceAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
68 inline NetworkInterfaceAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
69 inline NetworkInterfaceAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
71
73
76 inline const Aws::String& GetIpOwnerId() const{ return m_ipOwnerId; }
77 inline bool IpOwnerIdHasBeenSet() const { return m_ipOwnerIdHasBeenSet; }
78 inline void SetIpOwnerId(const Aws::String& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = value; }
79 inline void SetIpOwnerId(Aws::String&& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = std::move(value); }
80 inline void SetIpOwnerId(const char* value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId.assign(value); }
81 inline NetworkInterfaceAssociation& WithIpOwnerId(const Aws::String& value) { SetIpOwnerId(value); return *this;}
82 inline NetworkInterfaceAssociation& WithIpOwnerId(Aws::String&& value) { SetIpOwnerId(std::move(value)); return *this;}
83 inline NetworkInterfaceAssociation& WithIpOwnerId(const char* value) { SetIpOwnerId(value); return *this;}
85
87
90 inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
91 inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
92 inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
93 inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); }
94 inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
95 inline NetworkInterfaceAssociation& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;}
96 inline NetworkInterfaceAssociation& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;}
97 inline NetworkInterfaceAssociation& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
99
101
104 inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
105 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
106 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
107 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
108 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
109 inline NetworkInterfaceAssociation& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
110 inline NetworkInterfaceAssociation& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
111 inline NetworkInterfaceAssociation& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
113
115
118 inline const Aws::String& GetCustomerOwnedIp() const{ return m_customerOwnedIp; }
119 inline bool CustomerOwnedIpHasBeenSet() const { return m_customerOwnedIpHasBeenSet; }
120 inline void SetCustomerOwnedIp(const Aws::String& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = value; }
121 inline void SetCustomerOwnedIp(Aws::String&& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = std::move(value); }
122 inline void SetCustomerOwnedIp(const char* value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp.assign(value); }
124 inline NetworkInterfaceAssociation& WithCustomerOwnedIp(Aws::String&& value) { SetCustomerOwnedIp(std::move(value)); return *this;}
125 inline NetworkInterfaceAssociation& WithCustomerOwnedIp(const char* value) { SetCustomerOwnedIp(value); return *this;}
127
129
134 inline const Aws::String& GetCarrierIp() const{ return m_carrierIp; }
135 inline bool CarrierIpHasBeenSet() const { return m_carrierIpHasBeenSet; }
136 inline void SetCarrierIp(const Aws::String& value) { m_carrierIpHasBeenSet = true; m_carrierIp = value; }
137 inline void SetCarrierIp(Aws::String&& value) { m_carrierIpHasBeenSet = true; m_carrierIp = std::move(value); }
138 inline void SetCarrierIp(const char* value) { m_carrierIpHasBeenSet = true; m_carrierIp.assign(value); }
139 inline NetworkInterfaceAssociation& WithCarrierIp(const Aws::String& value) { SetCarrierIp(value); return *this;}
140 inline NetworkInterfaceAssociation& WithCarrierIp(Aws::String&& value) { SetCarrierIp(std::move(value)); return *this;}
141 inline NetworkInterfaceAssociation& WithCarrierIp(const char* value) { SetCarrierIp(value); return *this;}
143 private:
144
145 Aws::String m_allocationId;
146 bool m_allocationIdHasBeenSet = false;
147
148 Aws::String m_associationId;
149 bool m_associationIdHasBeenSet = false;
150
151 Aws::String m_ipOwnerId;
152 bool m_ipOwnerIdHasBeenSet = false;
153
154 Aws::String m_publicDnsName;
155 bool m_publicDnsNameHasBeenSet = false;
156
157 Aws::String m_publicIp;
158 bool m_publicIpHasBeenSet = false;
159
160 Aws::String m_customerOwnedIp;
161 bool m_customerOwnedIpHasBeenSet = false;
162
163 Aws::String m_carrierIp;
164 bool m_carrierIpHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace EC2
169} // namespace Aws
NetworkInterfaceAssociation & WithPublicDnsName(const Aws::String &value)
NetworkInterfaceAssociation & WithIpOwnerId(const Aws::String &value)
NetworkInterfaceAssociation & WithAllocationId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkInterfaceAssociation & WithAssociationId(const Aws::String &value)
NetworkInterfaceAssociation & WithCustomerOwnedIp(const Aws::String &value)
NetworkInterfaceAssociation & WithAssociationId(Aws::String &&value)
NetworkInterfaceAssociation & WithCustomerOwnedIp(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NetworkInterfaceAssociation & WithCarrierIp(const Aws::String &value)
NetworkInterfaceAssociation & WithPublicIp(Aws::String &&value)
NetworkInterfaceAssociation & WithPublicIp(const Aws::String &value)
NetworkInterfaceAssociation & WithPublicDnsName(const char *value)
AWS_EC2_API NetworkInterfaceAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAssociation & WithPublicIp(const char *value)
NetworkInterfaceAssociation & WithAllocationId(Aws::String &&value)
NetworkInterfaceAssociation & WithCustomerOwnedIp(Aws::String &&value)
NetworkInterfaceAssociation & WithIpOwnerId(Aws::String &&value)
NetworkInterfaceAssociation & WithCarrierIp(Aws::String &&value)
NetworkInterfaceAssociation & WithAssociationId(const char *value)
NetworkInterfaceAssociation & WithCarrierIp(const char *value)
NetworkInterfaceAssociation & WithAllocationId(const char *value)
NetworkInterfaceAssociation & WithPublicDnsName(Aws::String &&value)
AWS_EC2_API NetworkInterfaceAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAssociation & WithIpOwnerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream