AWS SDK for C++  0.12.9
AWS SDK for C++
InstanceNetworkInterfaceSpecification.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 InstanceNetworkInterfaceSpecification& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
73 
77  inline InstanceNetworkInterfaceSpecification& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
78 
82  inline InstanceNetworkInterfaceSpecification& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
83 
89  inline long GetDeviceIndex() const{ return m_deviceIndex; }
90 
96  inline void SetDeviceIndex(long value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
97 
103  inline InstanceNetworkInterfaceSpecification& WithDeviceIndex(long value) { SetDeviceIndex(value); return *this;}
104 
109  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
110 
115  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
116 
121  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
122 
127  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
128 
133  inline InstanceNetworkInterfaceSpecification& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
134 
139  inline InstanceNetworkInterfaceSpecification& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
140 
145  inline InstanceNetworkInterfaceSpecification& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
146 
151  inline const Aws::String& GetDescription() const{ return m_description; }
152 
157  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
158 
163  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
164 
169  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
170 
175  inline InstanceNetworkInterfaceSpecification& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
176 
181  inline InstanceNetworkInterfaceSpecification& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
182 
187  inline InstanceNetworkInterfaceSpecification& WithDescription(const char* value) { SetDescription(value); return *this;}
188 
193  inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
194 
199  inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
200 
205  inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
206 
211  inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
212 
217  inline InstanceNetworkInterfaceSpecification& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
218 
223  inline InstanceNetworkInterfaceSpecification& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(value); return *this;}
224 
229  inline InstanceNetworkInterfaceSpecification& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
230 
235  inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
236 
241  inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
242 
247  inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = value; }
248 
253  inline InstanceNetworkInterfaceSpecification& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
254 
259  inline InstanceNetworkInterfaceSpecification& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(value); return *this;}
260 
265  inline InstanceNetworkInterfaceSpecification& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
266 
271  inline InstanceNetworkInterfaceSpecification& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
272 
277  inline InstanceNetworkInterfaceSpecification& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
278 
284  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
285 
291  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
292 
298  inline InstanceNetworkInterfaceSpecification& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
299 
304  inline const Aws::Vector<PrivateIpAddressSpecification>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
305 
310  inline void SetPrivateIpAddresses(const Aws::Vector<PrivateIpAddressSpecification>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
311 
316  inline void SetPrivateIpAddresses(Aws::Vector<PrivateIpAddressSpecification>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
317 
322  inline InstanceNetworkInterfaceSpecification& WithPrivateIpAddresses(const Aws::Vector<PrivateIpAddressSpecification>& value) { SetPrivateIpAddresses(value); return *this;}
323 
329 
334  inline InstanceNetworkInterfaceSpecification& AddPrivateIpAddresses(const PrivateIpAddressSpecification& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
335 
340  inline InstanceNetworkInterfaceSpecification& AddPrivateIpAddresses(PrivateIpAddressSpecification&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
341 
347  inline long GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; }
348 
354  inline void SetSecondaryPrivateIpAddressCount(long value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
355 
361  inline InstanceNetworkInterfaceSpecification& WithSecondaryPrivateIpAddressCount(long value) { SetSecondaryPrivateIpAddressCount(value); return *this;}
362 
370  inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; }
371 
379  inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
380 
388  inline InstanceNetworkInterfaceSpecification& WithAssociatePublicIpAddress(bool value) { SetAssociatePublicIpAddress(value); return *this;}
389 
390  private:
391  Aws::String m_networkInterfaceId;
392  bool m_networkInterfaceIdHasBeenSet;
393  long m_deviceIndex;
394  bool m_deviceIndexHasBeenSet;
395  Aws::String m_subnetId;
396  bool m_subnetIdHasBeenSet;
397  Aws::String m_description;
398  bool m_descriptionHasBeenSet;
399  Aws::String m_privateIpAddress;
400  bool m_privateIpAddressHasBeenSet;
401  Aws::Vector<Aws::String> m_groups;
402  bool m_groupsHasBeenSet;
403  bool m_deleteOnTermination;
404  bool m_deleteOnTerminationHasBeenSet;
405  Aws::Vector<PrivateIpAddressSpecification> m_privateIpAddresses;
406  bool m_privateIpAddressesHasBeenSet;
407  long m_secondaryPrivateIpAddressCount;
408  bool m_secondaryPrivateIpAddressCountHasBeenSet;
409  bool m_associatePublicIpAddress;
410  bool m_associatePublicIpAddressHasBeenSet;
411  };
412 
413 } // namespace Model
414 } // namespace EC2
415 } // namespace Aws
InstanceNetworkInterfaceSpecification & WithNetworkInterfaceId(const Aws::String &value)
InstanceNetworkInterfaceSpecification & WithAssociatePublicIpAddress(bool value)
InstanceNetworkInterfaceSpecification & WithNetworkInterfaceId(const char *value)
void SetPrivateIpAddresses(const Aws::Vector< PrivateIpAddressSpecification > &value)
InstanceNetworkInterfaceSpecification & AddGroups(const char *value)
InstanceNetworkInterfaceSpecification & WithSubnetId(Aws::String &&value)
InstanceNetworkInterfaceSpecification & AddPrivateIpAddresses(PrivateIpAddressSpecification &&value)
InstanceNetworkInterfaceSpecification & WithGroups(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
InstanceNetworkInterfaceSpecification & WithDeviceIndex(long value)
InstanceNetworkInterfaceSpecification & WithDescription(const Aws::String &value)
InstanceNetworkInterfaceSpecification & WithPrivateIpAddress(const Aws::String &value)
InstanceNetworkInterfaceSpecification & WithDeleteOnTermination(bool value)
InstanceNetworkInterfaceSpecification & WithPrivateIpAddresses(const Aws::Vector< PrivateIpAddressSpecification > &value)
InstanceNetworkInterfaceSpecification & WithDescription(const char *value)
InstanceNetworkInterfaceSpecification & WithGroups(const Aws::Vector< Aws::String > &value)
InstanceNetworkInterfaceSpecification & AddGroups(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::Vector< PrivateIpAddressSpecification > & GetPrivateIpAddresses() const
void SetPrivateIpAddresses(Aws::Vector< PrivateIpAddressSpecification > &&value)
InstanceNetworkInterfaceSpecification & AddPrivateIpAddresses(const PrivateIpAddressSpecification &value)
InstanceNetworkInterfaceSpecification & WithPrivateIpAddresses(Aws::Vector< PrivateIpAddressSpecification > &&value)
InstanceNetworkInterfaceSpecification & AddGroups(Aws::String &&value)
InstanceNetworkInterfaceSpecification & WithDescription(Aws::String &&value)
InstanceNetworkInterfaceSpecification & WithSubnetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InstanceNetworkInterfaceSpecification & WithSecondaryPrivateIpAddressCount(long value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
InstanceNetworkInterfaceSpecification & WithPrivateIpAddress(const char *value)
InstanceNetworkInterfaceSpecification & WithSubnetId(const char *value)
InstanceNetworkInterfaceSpecification & WithPrivateIpAddress(Aws::String &&value)
JSON (JavaScript Object Notation).
InstanceNetworkInterfaceSpecification & WithNetworkInterfaceId(Aws::String &&value)