AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstancePrivateIpAddress.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/InstanceNetworkInterfaceAssociation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline const InstanceNetworkInterfaceAssociation& GetAssociation() const{ return m_association; }
49 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
50 inline void SetAssociation(const InstanceNetworkInterfaceAssociation& value) { m_associationHasBeenSet = true; m_association = value; }
51 inline void SetAssociation(InstanceNetworkInterfaceAssociation&& value) { m_associationHasBeenSet = true; m_association = std::move(value); }
55
57
61 inline bool GetPrimary() const{ return m_primary; }
62 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
63 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
64 inline InstancePrivateIpAddress& WithPrimary(bool value) { SetPrimary(value); return *this;}
66
68
71 inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
72 inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
73 inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
74 inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
75 inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
76 inline InstancePrivateIpAddress& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
77 inline InstancePrivateIpAddress& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
78 inline InstancePrivateIpAddress& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
80
82
85 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
86 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
87 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
88 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
89 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
91 inline InstancePrivateIpAddress& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
92 inline InstancePrivateIpAddress& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
94 private:
95
97 bool m_associationHasBeenSet = false;
98
99 bool m_primary;
100 bool m_primaryHasBeenSet = false;
101
102 Aws::String m_privateDnsName;
103 bool m_privateDnsNameHasBeenSet = false;
104
105 Aws::String m_privateIpAddress;
106 bool m_privateIpAddressHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
InstancePrivateIpAddress & WithPrivateDnsName(const char *value)
const InstanceNetworkInterfaceAssociation & GetAssociation() const
void SetAssociation(InstanceNetworkInterfaceAssociation &&value)
InstancePrivateIpAddress & WithPrivateIpAddress(Aws::String &&value)
InstancePrivateIpAddress & WithAssociation(InstanceNetworkInterfaceAssociation &&value)
AWS_EC2_API InstancePrivateIpAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAssociation(const InstanceNetworkInterfaceAssociation &value)
void SetPrivateIpAddress(const Aws::String &value)
InstancePrivateIpAddress & WithPrivateDnsName(Aws::String &&value)
InstancePrivateIpAddress & WithPrivateIpAddress(const char *value)
InstancePrivateIpAddress & WithAssociation(const InstanceNetworkInterfaceAssociation &value)
InstancePrivateIpAddress & WithPrivateDnsName(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstancePrivateIpAddress & WithPrimary(bool value)
AWS_EC2_API InstancePrivateIpAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstancePrivateIpAddress & WithPrivateIpAddress(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream