AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkInterfacePrivateIpAddress.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/NetworkInterfaceAssociation.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
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
49 inline const NetworkInterfaceAssociation& GetAssociation() const{ return m_association; }
50 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
51 inline void SetAssociation(const NetworkInterfaceAssociation& value) { m_associationHasBeenSet = true; m_association = value; }
52 inline void SetAssociation(NetworkInterfaceAssociation&& value) { m_associationHasBeenSet = true; m_association = std::move(value); }
56
58
62 inline bool GetPrimary() const{ return m_primary; }
63 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
64 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
65 inline NetworkInterfacePrivateIpAddress& WithPrimary(bool value) { SetPrimary(value); return *this;}
67
69
72 inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
73 inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
74 inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
75 inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
76 inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
78 inline NetworkInterfacePrivateIpAddress& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
79 inline NetworkInterfacePrivateIpAddress& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
81
83
86 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
87 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
88 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
89 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
90 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
92 inline NetworkInterfacePrivateIpAddress& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
93 inline NetworkInterfacePrivateIpAddress& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
95 private:
96
97 NetworkInterfaceAssociation m_association;
98 bool m_associationHasBeenSet = false;
99
100 bool m_primary;
101 bool m_primaryHasBeenSet = false;
102
103 Aws::String m_privateDnsName;
104 bool m_privateDnsNameHasBeenSet = false;
105
106 Aws::String m_privateIpAddress;
107 bool m_privateIpAddressHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace EC2
112} // namespace Aws
AWS_EC2_API NetworkInterfacePrivateIpAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfacePrivateIpAddress & WithPrivateIpAddress(const char *value)
NetworkInterfacePrivateIpAddress & WithPrivateIpAddress(Aws::String &&value)
AWS_EC2_API NetworkInterfacePrivateIpAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NetworkInterfacePrivateIpAddress & WithPrivateDnsName(const char *value)
void SetAssociation(const NetworkInterfaceAssociation &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkInterfacePrivateIpAddress & WithPrivateDnsName(Aws::String &&value)
NetworkInterfacePrivateIpAddress & WithPrimary(bool value)
const NetworkInterfaceAssociation & GetAssociation() const
NetworkInterfacePrivateIpAddress & WithAssociation(const NetworkInterfaceAssociation &value)
NetworkInterfacePrivateIpAddress & WithAssociation(NetworkInterfaceAssociation &&value)
NetworkInterfacePrivateIpAddress & WithPrivateDnsName(const Aws::String &value)
NetworkInterfacePrivateIpAddress & 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