AWS SDK for C++  0.14.3
AWS SDK for C++
InstancePrivateIpAddress.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace EC2
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  InstancePrivateIpAddress& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
52 
56  inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
57 
61  inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
62 
66  inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
67 
71  inline InstancePrivateIpAddress& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
72 
76  inline InstancePrivateIpAddress& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(value); return *this;}
77 
81  inline InstancePrivateIpAddress& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
82 
86  inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
87 
91  inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
92 
96  inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
97 
101  inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
102 
106  inline InstancePrivateIpAddress& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
107 
111  inline InstancePrivateIpAddress& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(value); return *this;}
112 
116  inline InstancePrivateIpAddress& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
117 
122  inline bool GetPrimary() const{ return m_primary; }
123 
128  inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
129 
134  inline InstancePrivateIpAddress& WithPrimary(bool value) { SetPrimary(value); return *this;}
135 
140  inline const InstanceNetworkInterfaceAssociation& GetAssociation() const{ return m_association; }
141 
146  inline void SetAssociation(const InstanceNetworkInterfaceAssociation& value) { m_associationHasBeenSet = true; m_association = value; }
147 
152  inline void SetAssociation(InstanceNetworkInterfaceAssociation&& value) { m_associationHasBeenSet = true; m_association = value; }
153 
158  inline InstancePrivateIpAddress& WithAssociation(const InstanceNetworkInterfaceAssociation& value) { SetAssociation(value); return *this;}
159 
164  inline InstancePrivateIpAddress& WithAssociation(InstanceNetworkInterfaceAssociation&& value) { SetAssociation(value); return *this;}
165 
166  private:
167  Aws::String m_privateIpAddress;
168  bool m_privateIpAddressHasBeenSet;
169  Aws::String m_privateDnsName;
170  bool m_privateDnsNameHasBeenSet;
171  bool m_primary;
172  bool m_primaryHasBeenSet;
174  bool m_associationHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace EC2
179 } // namespace Aws
void SetAssociation(InstanceNetworkInterfaceAssociation &&value)
void SetPrivateIpAddress(const Aws::String &value)
InstancePrivateIpAddress & WithPrivateIpAddress(Aws::String &&value)
InstancePrivateIpAddress & WithAssociation(InstanceNetworkInterfaceAssociation &&value)
InstancePrivateIpAddress & WithPrivateIpAddress(const Aws::String &value)
InstancePrivateIpAddress & WithPrivateDnsName(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
InstancePrivateIpAddress & WithAssociation(const InstanceNetworkInterfaceAssociation &value)
void SetAssociation(const InstanceNetworkInterfaceAssociation &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const InstanceNetworkInterfaceAssociation & GetAssociation() const
InstancePrivateIpAddress & WithPrimary(bool value)
InstancePrivateIpAddress & WithPrivateDnsName(Aws::String &&value)
InstancePrivateIpAddress & WithPrivateIpAddress(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
void SetPrivateDnsName(const Aws::String &value)
InstancePrivateIpAddress & WithPrivateDnsName(const char *value)
JSON (JavaScript Object Notation).