AWS SDK for C++  1.9.104
AWS SDK for C++
InstancePrivateIpAddress.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const InstanceNetworkInterfaceAssociation& GetAssociation() const{ return m_association; }
48 
53  inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
54 
59  inline void SetAssociation(const InstanceNetworkInterfaceAssociation& value) { m_associationHasBeenSet = true; m_association = value; }
60 
65  inline void SetAssociation(InstanceNetworkInterfaceAssociation&& value) { m_associationHasBeenSet = true; m_association = std::move(value); }
66 
71  inline InstancePrivateIpAddress& WithAssociation(const InstanceNetworkInterfaceAssociation& value) { SetAssociation(value); return *this;}
72 
77  inline InstancePrivateIpAddress& WithAssociation(InstanceNetworkInterfaceAssociation&& value) { SetAssociation(std::move(value)); return *this;}
78 
79 
84  inline bool GetPrimary() const{ return m_primary; }
85 
90  inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
91 
96  inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
97 
102  inline InstancePrivateIpAddress& WithPrimary(bool value) { SetPrimary(value); return *this;}
103 
104 
108  inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
109 
113  inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
114 
118  inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
119 
123  inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
124 
128  inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
129 
133  inline InstancePrivateIpAddress& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
134 
138  inline InstancePrivateIpAddress& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
139 
143  inline InstancePrivateIpAddress& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
144 
145 
149  inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
150 
154  inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
155 
159  inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
160 
164  inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
165 
169  inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
170 
174  inline InstancePrivateIpAddress& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
175 
179  inline InstancePrivateIpAddress& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
180 
184  inline InstancePrivateIpAddress& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
185 
186  private:
187 
189  bool m_associationHasBeenSet;
190 
191  bool m_primary;
192  bool m_primaryHasBeenSet;
193 
194  Aws::String m_privateDnsName;
195  bool m_privateDnsNameHasBeenSet;
196 
197  Aws::String m_privateIpAddress;
198  bool m_privateIpAddressHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace EC2
203 } // namespace Aws
Aws::EC2::Model::InstancePrivateIpAddress::SetAssociation
void SetAssociation(const InstanceNetworkInterfaceAssociation &value)
Definition: InstancePrivateIpAddress.h:59
Aws::EC2::Model::InstancePrivateIpAddress::WithAssociation
InstancePrivateIpAddress & WithAssociation(InstanceNetworkInterfaceAssociation &&value)
Definition: InstancePrivateIpAddress.h:77
Aws::EC2::Model::InstancePrivateIpAddress::SetAssociation
void SetAssociation(InstanceNetworkInterfaceAssociation &&value)
Definition: InstancePrivateIpAddress.h:65
Aws::EC2::Model::InstancePrivateIpAddress::PrimaryHasBeenSet
bool PrimaryHasBeenSet() const
Definition: InstancePrivateIpAddress.h:90
InstanceNetworkInterfaceAssociation.h
Aws::EC2::Model::InstancePrivateIpAddress::SetPrimary
void SetPrimary(bool value)
Definition: InstancePrivateIpAddress.h:96
Aws::EC2::Model::InstancePrivateIpAddress::WithPrivateDnsName
InstancePrivateIpAddress & WithPrivateDnsName(Aws::String &&value)
Definition: InstancePrivateIpAddress.h:138
Aws::EC2::Model::InstancePrivateIpAddress::SetPrivateDnsName
void SetPrivateDnsName(const Aws::String &value)
Definition: InstancePrivateIpAddress.h:118
Aws::EC2::Model::InstancePrivateIpAddress::PrivateIpAddressHasBeenSet
bool PrivateIpAddressHasBeenSet() const
Definition: InstancePrivateIpAddress.h:154
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstancePrivateIpAddress::WithPrivateDnsName
InstancePrivateIpAddress & WithPrivateDnsName(const char *value)
Definition: InstancePrivateIpAddress.h:143
Aws::EC2::Model::InstancePrivateIpAddress::GetPrivateIpAddress
const Aws::String & GetPrivateIpAddress() const
Definition: InstancePrivateIpAddress.h:149
AWSStreamFwd.h
Aws::EC2::Model::InstancePrivateIpAddress::operator=
InstancePrivateIpAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstancePrivateIpAddress::WithAssociation
InstancePrivateIpAddress & WithAssociation(const InstanceNetworkInterfaceAssociation &value)
Definition: InstancePrivateIpAddress.h:71
Aws::EC2::Model::InstancePrivateIpAddress::PrivateDnsNameHasBeenSet
bool PrivateDnsNameHasBeenSet() const
Definition: InstancePrivateIpAddress.h:113
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstancePrivateIpAddress::SetPrivateDnsName
void SetPrivateDnsName(Aws::String &&value)
Definition: InstancePrivateIpAddress.h:123
Aws::EC2::Model::InstancePrivateIpAddress::WithPrivateIpAddress
InstancePrivateIpAddress & WithPrivateIpAddress(Aws::String &&value)
Definition: InstancePrivateIpAddress.h:179
Aws::EC2::Model::InstancePrivateIpAddress::SetPrivateIpAddress
void SetPrivateIpAddress(const char *value)
Definition: InstancePrivateIpAddress.h:169
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstancePrivateIpAddress::InstancePrivateIpAddress
InstancePrivateIpAddress()
Aws::EC2::Model::InstancePrivateIpAddress
Definition: InstancePrivateIpAddress.h:33
Aws::EC2::Model::InstancePrivateIpAddress::InstancePrivateIpAddress
InstancePrivateIpAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstancePrivateIpAddress::WithPrivateIpAddress
InstancePrivateIpAddress & WithPrivateIpAddress(const char *value)
Definition: InstancePrivateIpAddress.h:184
AWSString.h
Aws::EC2::Model::InstanceNetworkInterfaceAssociation
Definition: InstanceNetworkInterfaceAssociation.h:33
Aws::EC2::Model::InstancePrivateIpAddress::GetAssociation
const InstanceNetworkInterfaceAssociation & GetAssociation() const
Definition: InstancePrivateIpAddress.h:47
Aws::EC2::Model::InstancePrivateIpAddress::WithPrimary
InstancePrivateIpAddress & WithPrimary(bool value)
Definition: InstancePrivateIpAddress.h:102
Aws::EC2::Model::InstancePrivateIpAddress::WithPrivateIpAddress
InstancePrivateIpAddress & WithPrivateIpAddress(const Aws::String &value)
Definition: InstancePrivateIpAddress.h:174
Aws::EC2::Model::InstancePrivateIpAddress::GetPrivateDnsName
const Aws::String & GetPrivateDnsName() const
Definition: InstancePrivateIpAddress.h:108
Aws::EC2::Model::InstancePrivateIpAddress::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstancePrivateIpAddress::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstancePrivateIpAddress::GetPrimary
bool GetPrimary() const
Definition: InstancePrivateIpAddress.h:84
Aws::EC2::Model::InstancePrivateIpAddress::SetPrivateIpAddress
void SetPrivateIpAddress(const Aws::String &value)
Definition: InstancePrivateIpAddress.h:159
Aws::EC2::Model::InstancePrivateIpAddress::AssociationHasBeenSet
bool AssociationHasBeenSet() const
Definition: InstancePrivateIpAddress.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstancePrivateIpAddress::SetPrivateIpAddress
void SetPrivateIpAddress(Aws::String &&value)
Definition: InstancePrivateIpAddress.h:164
EC2_EXPORTS.h
Aws::EC2::Model::InstancePrivateIpAddress::WithPrivateDnsName
InstancePrivateIpAddress & WithPrivateDnsName(const Aws::String &value)
Definition: InstancePrivateIpAddress.h:133
Aws::EC2::Model::InstancePrivateIpAddress::SetPrivateDnsName
void SetPrivateDnsName(const char *value)
Definition: InstancePrivateIpAddress.h:128