AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledInstancesNetworkInterface.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ScheduledInstancesIpv6Address.h>
12#include <aws/ec2/model/ScheduledInstancesPrivateIpAddressConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
58 inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; }
59 inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; }
60 inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
63
65
69 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
70 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
71 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
74
76
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
85 inline ScheduledInstancesNetworkInterface& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline ScheduledInstancesNetworkInterface& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
93 inline int GetDeviceIndex() const{ return m_deviceIndex; }
94 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
95 inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
96 inline ScheduledInstancesNetworkInterface& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
98
100
103 inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
104 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
105 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
106 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
108 inline ScheduledInstancesNetworkInterface& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
109 inline ScheduledInstancesNetworkInterface& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
110 inline ScheduledInstancesNetworkInterface& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
111 inline ScheduledInstancesNetworkInterface& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
113
115
119 inline int GetIpv6AddressCount() const{ return m_ipv6AddressCount; }
120 inline bool Ipv6AddressCountHasBeenSet() const { return m_ipv6AddressCountHasBeenSet; }
121 inline void SetIpv6AddressCount(int value) { m_ipv6AddressCountHasBeenSet = true; m_ipv6AddressCount = value; }
124
126
129 inline const Aws::Vector<ScheduledInstancesIpv6Address>& GetIpv6Addresses() const{ return m_ipv6Addresses; }
130 inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
131 inline void SetIpv6Addresses(const Aws::Vector<ScheduledInstancesIpv6Address>& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; }
132 inline void SetIpv6Addresses(Aws::Vector<ScheduledInstancesIpv6Address>&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); }
135 inline ScheduledInstancesNetworkInterface& AddIpv6Addresses(const ScheduledInstancesIpv6Address& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
136 inline ScheduledInstancesNetworkInterface& AddIpv6Addresses(ScheduledInstancesIpv6Address&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; }
138
140
143 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
144 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
145 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
146 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
147 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
150 inline ScheduledInstancesNetworkInterface& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
152
154
157 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
158 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
159 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
160 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
161 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
164 inline ScheduledInstancesNetworkInterface& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
166
168
171 inline const Aws::Vector<ScheduledInstancesPrivateIpAddressConfig>& GetPrivateIpAddressConfigs() const{ return m_privateIpAddressConfigs; }
172 inline bool PrivateIpAddressConfigsHasBeenSet() const { return m_privateIpAddressConfigsHasBeenSet; }
173 inline void SetPrivateIpAddressConfigs(const Aws::Vector<ScheduledInstancesPrivateIpAddressConfig>& value) { m_privateIpAddressConfigsHasBeenSet = true; m_privateIpAddressConfigs = value; }
174 inline void SetPrivateIpAddressConfigs(Aws::Vector<ScheduledInstancesPrivateIpAddressConfig>&& value) { m_privateIpAddressConfigsHasBeenSet = true; m_privateIpAddressConfigs = std::move(value); }
177 inline ScheduledInstancesNetworkInterface& AddPrivateIpAddressConfigs(const ScheduledInstancesPrivateIpAddressConfig& value) { m_privateIpAddressConfigsHasBeenSet = true; m_privateIpAddressConfigs.push_back(value); return *this; }
178 inline ScheduledInstancesNetworkInterface& AddPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig&& value) { m_privateIpAddressConfigsHasBeenSet = true; m_privateIpAddressConfigs.push_back(std::move(value)); return *this; }
180
182
185 inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; }
186 inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; }
187 inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
190
192
195 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
196 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
197 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
198 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
199 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
200 inline ScheduledInstancesNetworkInterface& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
201 inline ScheduledInstancesNetworkInterface& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
202 inline ScheduledInstancesNetworkInterface& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
204 private:
205
206 bool m_associatePublicIpAddress;
207 bool m_associatePublicIpAddressHasBeenSet = false;
208
209 bool m_deleteOnTermination;
210 bool m_deleteOnTerminationHasBeenSet = false;
211
212 Aws::String m_description;
213 bool m_descriptionHasBeenSet = false;
214
215 int m_deviceIndex;
216 bool m_deviceIndexHasBeenSet = false;
217
219 bool m_groupsHasBeenSet = false;
220
221 int m_ipv6AddressCount;
222 bool m_ipv6AddressCountHasBeenSet = false;
223
225 bool m_ipv6AddressesHasBeenSet = false;
226
227 Aws::String m_networkInterfaceId;
228 bool m_networkInterfaceIdHasBeenSet = false;
229
230 Aws::String m_privateIpAddress;
231 bool m_privateIpAddressHasBeenSet = false;
232
234 bool m_privateIpAddressConfigsHasBeenSet = false;
235
236 int m_secondaryPrivateIpAddressCount;
237 bool m_secondaryPrivateIpAddressCountHasBeenSet = false;
238
239 Aws::String m_subnetId;
240 bool m_subnetIdHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace EC2
245} // namespace Aws
ScheduledInstancesNetworkInterface & WithIpv6Addresses(Aws::Vector< ScheduledInstancesIpv6Address > &&value)
void SetIpv6Addresses(Aws::Vector< ScheduledInstancesIpv6Address > &&value)
ScheduledInstancesNetworkInterface & WithDeleteOnTermination(bool value)
ScheduledInstancesNetworkInterface & WithPrivateIpAddress(const Aws::String &value)
ScheduledInstancesNetworkInterface & WithAssociatePublicIpAddress(bool value)
ScheduledInstancesNetworkInterface & WithGroups(const Aws::Vector< Aws::String > &value)
ScheduledInstancesNetworkInterface & AddIpv6Addresses(const ScheduledInstancesIpv6Address &value)
ScheduledInstancesNetworkInterface & WithPrivateIpAddress(const char *value)
ScheduledInstancesNetworkInterface & WithDescription(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledInstancesNetworkInterface & WithSubnetId(const char *value)
ScheduledInstancesNetworkInterface & WithDescription(Aws::String &&value)
ScheduledInstancesNetworkInterface & WithIpv6Addresses(const Aws::Vector< ScheduledInstancesIpv6Address > &value)
ScheduledInstancesNetworkInterface & WithNetworkInterfaceId(Aws::String &&value)
ScheduledInstancesNetworkInterface & AddPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig &&value)
AWS_EC2_API ScheduledInstancesNetworkInterface & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstancesNetworkInterface & WithNetworkInterfaceId(const char *value)
ScheduledInstancesNetworkInterface & AddGroups(const char *value)
void SetPrivateIpAddressConfigs(Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > &&value)
ScheduledInstancesNetworkInterface & WithDeviceIndex(int value)
ScheduledInstancesNetworkInterface & WithSecondaryPrivateIpAddressCount(int value)
ScheduledInstancesNetworkInterface & WithPrivateIpAddressConfigs(Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > &&value)
ScheduledInstancesNetworkInterface & AddGroups(Aws::String &&value)
const Aws::Vector< ScheduledInstancesIpv6Address > & GetIpv6Addresses() const
const Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > & GetPrivateIpAddressConfigs() const
ScheduledInstancesNetworkInterface & WithDescription(const Aws::String &value)
ScheduledInstancesNetworkInterface & WithPrivateIpAddressConfigs(const Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > &value)
void SetPrivateIpAddressConfigs(const Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScheduledInstancesNetworkInterface & AddGroups(const Aws::String &value)
AWS_EC2_API ScheduledInstancesNetworkInterface(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstancesNetworkInterface & WithIpv6AddressCount(int value)
ScheduledInstancesNetworkInterface & WithSubnetId(Aws::String &&value)
ScheduledInstancesNetworkInterface & WithGroups(Aws::Vector< Aws::String > &&value)
ScheduledInstancesNetworkInterface & AddPrivateIpAddressConfigs(const ScheduledInstancesPrivateIpAddressConfig &value)
ScheduledInstancesNetworkInterface & WithSubnetId(const Aws::String &value)
ScheduledInstancesNetworkInterface & AddIpv6Addresses(ScheduledInstancesIpv6Address &&value)
ScheduledInstancesNetworkInterface & WithNetworkInterfaceId(const Aws::String &value)
ScheduledInstancesNetworkInterface & WithPrivateIpAddress(Aws::String &&value)
void SetIpv6Addresses(const Aws::Vector< ScheduledInstancesIpv6Address > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream