AWS SDK for C++  0.12.9
AWS SDK for C++
ScheduledInstancesNetworkInterface.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
53 
57  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
58 
62  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
63 
67  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
68 
72  inline ScheduledInstancesNetworkInterface& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
73 
77  inline ScheduledInstancesNetworkInterface& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
78 
82  inline ScheduledInstancesNetworkInterface& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
83 
87  inline long GetDeviceIndex() const{ return m_deviceIndex; }
88 
92  inline void SetDeviceIndex(long value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
93 
97  inline ScheduledInstancesNetworkInterface& WithDeviceIndex(long value) { SetDeviceIndex(value); return *this;}
98 
102  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
103 
107  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
108 
112  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
113 
117  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
118 
122  inline ScheduledInstancesNetworkInterface& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
123 
127  inline ScheduledInstancesNetworkInterface& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
128 
132  inline ScheduledInstancesNetworkInterface& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
133 
137  inline const Aws::String& GetDescription() const{ return m_description; }
138 
142  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
143 
147  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
148 
152  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
153 
157  inline ScheduledInstancesNetworkInterface& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
158 
162  inline ScheduledInstancesNetworkInterface& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
163 
167  inline ScheduledInstancesNetworkInterface& WithDescription(const char* value) { SetDescription(value); return *this;}
168 
172  inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
173 
177  inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
178 
182  inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
183 
187  inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
188 
192  inline ScheduledInstancesNetworkInterface& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
193 
197  inline ScheduledInstancesNetworkInterface& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(value); return *this;}
198 
202  inline ScheduledInstancesNetworkInterface& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
203 
207  inline const Aws::Vector<ScheduledInstancesPrivateIpAddressConfig>& GetPrivateIpAddressConfigs() const{ return m_privateIpAddressConfigs; }
208 
212  inline void SetPrivateIpAddressConfigs(const Aws::Vector<ScheduledInstancesPrivateIpAddressConfig>& value) { m_privateIpAddressConfigsHasBeenSet = true; m_privateIpAddressConfigs = value; }
213 
217  inline void SetPrivateIpAddressConfigs(Aws::Vector<ScheduledInstancesPrivateIpAddressConfig>&& value) { m_privateIpAddressConfigsHasBeenSet = true; m_privateIpAddressConfigs = value; }
218 
222  inline ScheduledInstancesNetworkInterface& WithPrivateIpAddressConfigs(const Aws::Vector<ScheduledInstancesPrivateIpAddressConfig>& value) { SetPrivateIpAddressConfigs(value); return *this;}
223 
228 
232  inline ScheduledInstancesNetworkInterface& AddPrivateIpAddressConfigs(const ScheduledInstancesPrivateIpAddressConfig& value) { m_privateIpAddressConfigsHasBeenSet = true; m_privateIpAddressConfigs.push_back(value); return *this; }
233 
237  inline ScheduledInstancesNetworkInterface& AddPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig&& value) { m_privateIpAddressConfigsHasBeenSet = true; m_privateIpAddressConfigs.push_back(value); return *this; }
238 
242  inline long GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; }
243 
247  inline void SetSecondaryPrivateIpAddressCount(long value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
248 
252  inline ScheduledInstancesNetworkInterface& WithSecondaryPrivateIpAddressCount(long value) { SetSecondaryPrivateIpAddressCount(value); return *this;}
253 
261  inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; }
262 
270  inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
271 
279  inline ScheduledInstancesNetworkInterface& WithAssociatePublicIpAddress(bool value) { SetAssociatePublicIpAddress(value); return *this;}
280 
284  inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
285 
289  inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
290 
294  inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = value; }
295 
299  inline ScheduledInstancesNetworkInterface& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
300 
304  inline ScheduledInstancesNetworkInterface& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(value); return *this;}
305 
309  inline ScheduledInstancesNetworkInterface& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
310 
314  inline ScheduledInstancesNetworkInterface& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
315 
319  inline ScheduledInstancesNetworkInterface& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
320 
325  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
326 
331  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
332 
337  inline ScheduledInstancesNetworkInterface& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
338 
339  private:
340  Aws::String m_networkInterfaceId;
341  bool m_networkInterfaceIdHasBeenSet;
342  long m_deviceIndex;
343  bool m_deviceIndexHasBeenSet;
344  Aws::String m_subnetId;
345  bool m_subnetIdHasBeenSet;
346  Aws::String m_description;
347  bool m_descriptionHasBeenSet;
348  Aws::String m_privateIpAddress;
349  bool m_privateIpAddressHasBeenSet;
351  bool m_privateIpAddressConfigsHasBeenSet;
352  long m_secondaryPrivateIpAddressCount;
353  bool m_secondaryPrivateIpAddressCountHasBeenSet;
354  bool m_associatePublicIpAddress;
355  bool m_associatePublicIpAddressHasBeenSet;
356  Aws::Vector<Aws::String> m_groups;
357  bool m_groupsHasBeenSet;
358  bool m_deleteOnTermination;
359  bool m_deleteOnTerminationHasBeenSet;
360  };
361 
362 } // namespace Model
363 } // namespace EC2
364 } // namespace Aws
ScheduledInstancesNetworkInterface & WithAssociatePublicIpAddress(bool value)
ScheduledInstancesNetworkInterface & AddPrivateIpAddressConfigs(const ScheduledInstancesPrivateIpAddressConfig &value)
ScheduledInstancesNetworkInterface & WithDescription(const char *value)
ScheduledInstancesNetworkInterface & WithDeviceIndex(long value)
void SetPrivateIpAddressConfigs(const Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > &value)
ScheduledInstancesNetworkInterface & WithPrivateIpAddressConfigs(Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > &&value)
ScheduledInstancesNetworkInterface & WithGroups(const Aws::Vector< Aws::String > &value)
ScheduledInstancesNetworkInterface & WithNetworkInterfaceId(Aws::String &&value)
ScheduledInstancesNetworkInterface & WithDescription(Aws::String &&value)
ScheduledInstancesNetworkInterface & WithNetworkInterfaceId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ScheduledInstancesNetworkInterface & WithSubnetId(const char *value)
ScheduledInstancesNetworkInterface & WithPrivateIpAddressConfigs(const Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > &value)
ScheduledInstancesNetworkInterface & AddGroups(Aws::String &&value)
ScheduledInstancesNetworkInterface & WithPrivateIpAddress(const char *value)
void SetPrivateIpAddressConfigs(Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ScheduledInstancesNetworkInterface & AddGroups(const char *value)
const Aws::Vector< ScheduledInstancesPrivateIpAddressConfig > & GetPrivateIpAddressConfigs() const
ScheduledInstancesNetworkInterface & WithDeleteOnTermination(bool value)
ScheduledInstancesNetworkInterface & AddPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig &&value)
ScheduledInstancesNetworkInterface & WithPrivateIpAddress(const Aws::String &value)
ScheduledInstancesNetworkInterface & WithSubnetId(Aws::String &&value)
ScheduledInstancesNetworkInterface & WithNetworkInterfaceId(const char *value)
ScheduledInstancesNetworkInterface & AddGroups(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ScheduledInstancesNetworkInterface & WithPrivateIpAddress(Aws::String &&value)
ScheduledInstancesNetworkInterface & WithGroups(Aws::Vector< Aws::String > &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
ScheduledInstancesNetworkInterface & WithDescription(const Aws::String &value)
ScheduledInstancesNetworkInterface & WithSubnetId(const Aws::String &value)
ScheduledInstancesNetworkInterface & WithSecondaryPrivateIpAddressCount(long value)
JSON (JavaScript Object Notation).