AWS SDK for C++  1.9.70
AWS SDK for C++
NetworkInterfacePrivateIpAddress.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
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 
48  inline const NetworkInterfaceAssociation& GetAssociation() const{ return m_association; }
49 
54  inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
55 
60  inline void SetAssociation(const NetworkInterfaceAssociation& value) { m_associationHasBeenSet = true; m_association = value; }
61 
66  inline void SetAssociation(NetworkInterfaceAssociation&& value) { m_associationHasBeenSet = true; m_association = std::move(value); }
67 
72  inline NetworkInterfacePrivateIpAddress& WithAssociation(const NetworkInterfaceAssociation& value) { SetAssociation(value); return *this;}
73 
78  inline NetworkInterfacePrivateIpAddress& WithAssociation(NetworkInterfaceAssociation&& value) { SetAssociation(std::move(value)); return *this;}
79 
80 
85  inline bool GetPrimary() const{ return m_primary; }
86 
91  inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
92 
97  inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
98 
103  inline NetworkInterfacePrivateIpAddress& WithPrimary(bool value) { SetPrimary(value); return *this;}
104 
105 
109  inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
110 
114  inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
115 
119  inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
120 
124  inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
125 
129  inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
130 
134  inline NetworkInterfacePrivateIpAddress& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
135 
139  inline NetworkInterfacePrivateIpAddress& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
140 
144  inline NetworkInterfacePrivateIpAddress& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
145 
146 
150  inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
151 
155  inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
156 
160  inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
161 
165  inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
166 
170  inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
171 
175  inline NetworkInterfacePrivateIpAddress& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
176 
180  inline NetworkInterfacePrivateIpAddress& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
181 
185  inline NetworkInterfacePrivateIpAddress& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
186 
187  private:
188 
189  NetworkInterfaceAssociation m_association;
190  bool m_associationHasBeenSet;
191 
192  bool m_primary;
193  bool m_primaryHasBeenSet;
194 
195  Aws::String m_privateDnsName;
196  bool m_privateDnsNameHasBeenSet;
197 
198  Aws::String m_privateIpAddress;
199  bool m_privateIpAddressHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace EC2
204 } // namespace Aws
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::SetPrivateIpAddress
void SetPrivateIpAddress(const Aws::String &value)
Definition: NetworkInterfacePrivateIpAddress.h:160
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::SetPrimary
void SetPrimary(bool value)
Definition: NetworkInterfacePrivateIpAddress.h:97
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::GetPrimary
bool GetPrimary() const
Definition: NetworkInterfacePrivateIpAddress.h:85
NetworkInterfaceAssociation.h
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::SetPrivateIpAddress
void SetPrivateIpAddress(const char *value)
Definition: NetworkInterfacePrivateIpAddress.h:170
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::PrimaryHasBeenSet
bool PrimaryHasBeenSet() const
Definition: NetworkInterfacePrivateIpAddress.h:91
Aws::EC2::Model::NetworkInterfaceAssociation
Definition: NetworkInterfaceAssociation.h:34
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::operator=
NetworkInterfacePrivateIpAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::SetAssociation
void SetAssociation(NetworkInterfaceAssociation &&value)
Definition: NetworkInterfacePrivateIpAddress.h:66
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::PrivateDnsNameHasBeenSet
bool PrivateDnsNameHasBeenSet() const
Definition: NetworkInterfacePrivateIpAddress.h:114
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::SetPrivateDnsName
void SetPrivateDnsName(const Aws::String &value)
Definition: NetworkInterfacePrivateIpAddress.h:119
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::GetAssociation
const NetworkInterfaceAssociation & GetAssociation() const
Definition: NetworkInterfacePrivateIpAddress.h:48
Aws::EC2::Model::NetworkInterfacePrivateIpAddress
Definition: NetworkInterfacePrivateIpAddress.h:34
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::WithPrimary
NetworkInterfacePrivateIpAddress & WithPrimary(bool value)
Definition: NetworkInterfacePrivateIpAddress.h:103
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::SetPrivateIpAddress
void SetPrivateIpAddress(Aws::String &&value)
Definition: NetworkInterfacePrivateIpAddress.h:165
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::SetAssociation
void SetAssociation(const NetworkInterfaceAssociation &value)
Definition: NetworkInterfacePrivateIpAddress.h:60
AWSString.h
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::WithPrivateIpAddress
NetworkInterfacePrivateIpAddress & WithPrivateIpAddress(const char *value)
Definition: NetworkInterfacePrivateIpAddress.h:185
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::WithAssociation
NetworkInterfacePrivateIpAddress & WithAssociation(NetworkInterfaceAssociation &&value)
Definition: NetworkInterfacePrivateIpAddress.h:78
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::GetPrivateIpAddress
const Aws::String & GetPrivateIpAddress() const
Definition: NetworkInterfacePrivateIpAddress.h:150
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::WithAssociation
NetworkInterfacePrivateIpAddress & WithAssociation(const NetworkInterfaceAssociation &value)
Definition: NetworkInterfacePrivateIpAddress.h:72
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::SetPrivateDnsName
void SetPrivateDnsName(const char *value)
Definition: NetworkInterfacePrivateIpAddress.h:129
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::PrivateIpAddressHasBeenSet
bool PrivateIpAddressHasBeenSet() const
Definition: NetworkInterfacePrivateIpAddress.h:155
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::WithPrivateDnsName
NetworkInterfacePrivateIpAddress & WithPrivateDnsName(const Aws::String &value)
Definition: NetworkInterfacePrivateIpAddress.h:134
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::SetPrivateDnsName
void SetPrivateDnsName(Aws::String &&value)
Definition: NetworkInterfacePrivateIpAddress.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::WithPrivateIpAddress
NetworkInterfacePrivateIpAddress & WithPrivateIpAddress(Aws::String &&value)
Definition: NetworkInterfacePrivateIpAddress.h:180
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::WithPrivateDnsName
NetworkInterfacePrivateIpAddress & WithPrivateDnsName(Aws::String &&value)
Definition: NetworkInterfacePrivateIpAddress.h:139
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::NetworkInterfacePrivateIpAddress
NetworkInterfacePrivateIpAddress()
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::WithPrivateDnsName
NetworkInterfacePrivateIpAddress & WithPrivateDnsName(const char *value)
Definition: NetworkInterfacePrivateIpAddress.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::NetworkInterfacePrivateIpAddress
NetworkInterfacePrivateIpAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::GetPrivateDnsName
const Aws::String & GetPrivateDnsName() const
Definition: NetworkInterfacePrivateIpAddress.h:109
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::WithPrivateIpAddress
NetworkInterfacePrivateIpAddress & WithPrivateIpAddress(const Aws::String &value)
Definition: NetworkInterfacePrivateIpAddress.h:175
EC2_EXPORTS.h
Aws::EC2::Model::NetworkInterfacePrivateIpAddress::AssociationHasBeenSet
bool AssociationHasBeenSet() const
Definition: NetworkInterfacePrivateIpAddress.h:54