AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceNetworkInterfaceAssociation.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
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
47 inline const Aws::String& GetCarrierIp() const{ return m_carrierIp; }
48 inline bool CarrierIpHasBeenSet() const { return m_carrierIpHasBeenSet; }
49 inline void SetCarrierIp(const Aws::String& value) { m_carrierIpHasBeenSet = true; m_carrierIp = value; }
50 inline void SetCarrierIp(Aws::String&& value) { m_carrierIpHasBeenSet = true; m_carrierIp = std::move(value); }
51 inline void SetCarrierIp(const char* value) { m_carrierIpHasBeenSet = true; m_carrierIp.assign(value); }
52 inline InstanceNetworkInterfaceAssociation& WithCarrierIp(const Aws::String& value) { SetCarrierIp(value); return *this;}
53 inline InstanceNetworkInterfaceAssociation& WithCarrierIp(Aws::String&& value) { SetCarrierIp(std::move(value)); return *this;}
54 inline InstanceNetworkInterfaceAssociation& WithCarrierIp(const char* value) { SetCarrierIp(value); return *this;}
56
58
61 inline const Aws::String& GetCustomerOwnedIp() const{ return m_customerOwnedIp; }
62 inline bool CustomerOwnedIpHasBeenSet() const { return m_customerOwnedIpHasBeenSet; }
63 inline void SetCustomerOwnedIp(const Aws::String& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = value; }
64 inline void SetCustomerOwnedIp(Aws::String&& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = std::move(value); }
65 inline void SetCustomerOwnedIp(const char* value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp.assign(value); }
68 inline InstanceNetworkInterfaceAssociation& WithCustomerOwnedIp(const char* value) { SetCustomerOwnedIp(value); return *this;}
70
72
75 inline const Aws::String& GetIpOwnerId() const{ return m_ipOwnerId; }
76 inline bool IpOwnerIdHasBeenSet() const { return m_ipOwnerIdHasBeenSet; }
77 inline void SetIpOwnerId(const Aws::String& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = value; }
78 inline void SetIpOwnerId(Aws::String&& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = std::move(value); }
79 inline void SetIpOwnerId(const char* value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId.assign(value); }
80 inline InstanceNetworkInterfaceAssociation& WithIpOwnerId(const Aws::String& value) { SetIpOwnerId(value); return *this;}
81 inline InstanceNetworkInterfaceAssociation& WithIpOwnerId(Aws::String&& value) { SetIpOwnerId(std::move(value)); return *this;}
82 inline InstanceNetworkInterfaceAssociation& WithIpOwnerId(const char* value) { SetIpOwnerId(value); return *this;}
84
86
89 inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
90 inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
91 inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
92 inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); }
93 inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
95 inline InstanceNetworkInterfaceAssociation& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;}
96 inline InstanceNetworkInterfaceAssociation& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
98
100
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 InstanceNetworkInterfaceAssociation& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
110 inline InstanceNetworkInterfaceAssociation& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
111 inline InstanceNetworkInterfaceAssociation& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
113 private:
114
115 Aws::String m_carrierIp;
116 bool m_carrierIpHasBeenSet = false;
117
118 Aws::String m_customerOwnedIp;
119 bool m_customerOwnedIpHasBeenSet = false;
120
121 Aws::String m_ipOwnerId;
122 bool m_ipOwnerIdHasBeenSet = false;
123
124 Aws::String m_publicDnsName;
125 bool m_publicDnsNameHasBeenSet = false;
126
127 Aws::String m_publicIp;
128 bool m_publicIpHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
InstanceNetworkInterfaceAssociation & WithCustomerOwnedIp(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceNetworkInterfaceAssociation & WithIpOwnerId(const char *value)
InstanceNetworkInterfaceAssociation & WithPublicIp(const Aws::String &value)
InstanceNetworkInterfaceAssociation & WithCarrierIp(const char *value)
InstanceNetworkInterfaceAssociation & WithPublicDnsName(Aws::String &&value)
InstanceNetworkInterfaceAssociation & WithIpOwnerId(const Aws::String &value)
InstanceNetworkInterfaceAssociation & WithCarrierIp(const Aws::String &value)
AWS_EC2_API InstanceNetworkInterfaceAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceNetworkInterfaceAssociation & WithCustomerOwnedIp(Aws::String &&value)
InstanceNetworkInterfaceAssociation & WithIpOwnerId(Aws::String &&value)
InstanceNetworkInterfaceAssociation & WithCustomerOwnedIp(const char *value)
InstanceNetworkInterfaceAssociation & WithPublicIp(const char *value)
InstanceNetworkInterfaceAssociation & WithPublicDnsName(const char *value)
AWS_EC2_API InstanceNetworkInterfaceAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceNetworkInterfaceAssociation & WithCarrierIp(Aws::String &&value)
InstanceNetworkInterfaceAssociation & WithPublicIp(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceNetworkInterfaceAssociation & WithPublicDnsName(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