AWS SDK for C++  0.12.9
AWS SDK for C++
NatGatewayAddress.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  NatGatewayAddress& 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& GetPublicIp() const{ return m_publicIp; }
52 
56  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
57 
61  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
62 
66  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
67 
71  inline NatGatewayAddress& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
72 
76  inline NatGatewayAddress& WithPublicIp(Aws::String&& value) { SetPublicIp(value); return *this;}
77 
81  inline NatGatewayAddress& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
82 
87  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
88 
93  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
94 
99  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
100 
105  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
106 
111  inline NatGatewayAddress& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
112 
117  inline NatGatewayAddress& WithAllocationId(Aws::String&& value) { SetAllocationId(value); return *this;}
118 
123  inline NatGatewayAddress& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
124 
128  inline const Aws::String& GetPrivateIp() const{ return m_privateIp; }
129 
133  inline void SetPrivateIp(const Aws::String& value) { m_privateIpHasBeenSet = true; m_privateIp = value; }
134 
138  inline void SetPrivateIp(Aws::String&& value) { m_privateIpHasBeenSet = true; m_privateIp = value; }
139 
143  inline void SetPrivateIp(const char* value) { m_privateIpHasBeenSet = true; m_privateIp.assign(value); }
144 
148  inline NatGatewayAddress& WithPrivateIp(const Aws::String& value) { SetPrivateIp(value); return *this;}
149 
153  inline NatGatewayAddress& WithPrivateIp(Aws::String&& value) { SetPrivateIp(value); return *this;}
154 
158  inline NatGatewayAddress& WithPrivateIp(const char* value) { SetPrivateIp(value); return *this;}
159 
163  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
164 
168  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
169 
173  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
174 
178  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
179 
183  inline NatGatewayAddress& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
184 
188  inline NatGatewayAddress& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
189 
193  inline NatGatewayAddress& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
194 
195  private:
196  Aws::String m_publicIp;
197  bool m_publicIpHasBeenSet;
198  Aws::String m_allocationId;
199  bool m_allocationIdHasBeenSet;
200  Aws::String m_privateIp;
201  bool m_privateIpHasBeenSet;
202  Aws::String m_networkInterfaceId;
203  bool m_networkInterfaceIdHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace EC2
208 } // namespace Aws
void SetAllocationId(const char *value)
NatGatewayAddress & WithNetworkInterfaceId(Aws::String &&value)
void SetPublicIp(Aws::String &&value)
const Aws::String & GetPublicIp() const
NatGatewayAddress & WithPublicIp(const Aws::String &value)
void SetAllocationId(Aws::String &&value)
void SetNetworkInterfaceId(Aws::String &&value)
NatGatewayAddress & WithPrivateIp(const Aws::String &value)
NatGatewayAddress & WithNetworkInterfaceId(const Aws::String &value)
NatGatewayAddress & WithNetworkInterfaceId(const char *value)
void SetPublicIp(const char *value)
NatGatewayAddress & WithAllocationId(const char *value)
void SetPublicIp(const Aws::String &value)
const Aws::String & GetNetworkInterfaceId() const
NatGatewayAddress & WithPublicIp(const char *value)
void SetNetworkInterfaceId(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
NatGatewayAddress & WithAllocationId(const Aws::String &value)
void SetPrivateIp(Aws::String &&value)
NatGatewayAddress & WithPrivateIp(const char *value)
const Aws::String & GetPrivateIp() const
void SetPrivateIp(const char *value)
NatGatewayAddress & WithPublicIp(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
NatGatewayAddress & WithPrivateIp(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetPrivateIp(const Aws::String &value)
NatGatewayAddress & WithAllocationId(Aws::String &&value)
void SetAllocationId(const Aws::String &value)
const Aws::String & GetAllocationId() const
JSON (JavaScript Object Notation).
void SetNetworkInterfaceId(const Aws::String &value)