AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
NetworkInterface.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift
22{
23namespace Model
24{
25
32 {
33 public:
37
38 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
45 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
46
50 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
51
55 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
56
60 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
61
65 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
66
70 inline NetworkInterface& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
71
75 inline NetworkInterface& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
76
80 inline NetworkInterface& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
81
82
86 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
87
91 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
92
96 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
97
101 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
102
106 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
107
111 inline NetworkInterface& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
112
116 inline NetworkInterface& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
117
121 inline NetworkInterface& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
122
123
127 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
128
132 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
133
137 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
138
142 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
143
147 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
148
152 inline NetworkInterface& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
153
157 inline NetworkInterface& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
158
162 inline NetworkInterface& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
163
164
168 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
169
173 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
174
178 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
179
183 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
184
188 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
189
193 inline NetworkInterface& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
194
198 inline NetworkInterface& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
199
203 inline NetworkInterface& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
204
205 private:
206
207 Aws::String m_networkInterfaceId;
208 bool m_networkInterfaceIdHasBeenSet = false;
209
210 Aws::String m_subnetId;
211 bool m_subnetIdHasBeenSet = false;
212
213 Aws::String m_privateIpAddress;
214 bool m_privateIpAddressHasBeenSet = false;
215
216 Aws::String m_availabilityZone;
217 bool m_availabilityZoneHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace Redshift
222} // namespace Aws
#define AWS_REDSHIFT_API
void SetPrivateIpAddress(Aws::String &&value)
void SetAvailabilityZone(const Aws::String &value)
void SetNetworkInterfaceId(const Aws::String &value)
NetworkInterface & WithPrivateIpAddress(Aws::String &&value)
NetworkInterface & WithAvailabilityZone(const char *value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetNetworkInterfaceId(const char *value)
NetworkInterface & WithNetworkInterfaceId(const Aws::String &value)
void SetSubnetId(Aws::String &&value)
NetworkInterface & WithNetworkInterfaceId(const char *value)
NetworkInterface & WithNetworkInterfaceId(Aws::String &&value)
const Aws::String & GetNetworkInterfaceId() const
NetworkInterface & WithAvailabilityZone(const Aws::String &value)
AWS_REDSHIFT_API NetworkInterface(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAvailabilityZone(const char *value)
const Aws::String & GetSubnetId() const
NetworkInterface & WithPrivateIpAddress(const Aws::String &value)
void SetPrivateIpAddress(const Aws::String &value)
NetworkInterface & WithPrivateIpAddress(const char *value)
NetworkInterface & WithSubnetId(const char *value)
AWS_REDSHIFT_API NetworkInterface & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubnetId(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetPrivateIpAddress() const
void SetPrivateIpAddress(const char *value)
NetworkInterface & WithSubnetId(Aws::String &&value)
NetworkInterface & WithAvailabilityZone(Aws::String &&value)
void SetAvailabilityZone(Aws::String &&value)
const Aws::String & GetAvailabilityZone() const
void SetNetworkInterfaceId(Aws::String &&value)
NetworkInterface & WithSubnetId(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