AWS SDK for C++  0.14.3
AWS SDK for C++
Address.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:
41  Address();
42  Address(const Aws::Utils::Xml::XmlNode& xmlNode);
43  Address& 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& GetInstanceId() const{ return m_instanceId; }
52 
56  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
57 
61  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
62 
66  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
67 
71  inline Address& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 
76  inline Address& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
77 
81  inline Address& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
82 
86  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
87 
91  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
92 
96  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
97 
101  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
102 
106  inline Address& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
107 
111  inline Address& WithPublicIp(Aws::String&& value) { SetPublicIp(value); return *this;}
112 
116  inline Address& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
117 
121  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
122 
126  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
127 
131  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
132 
136  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
137 
141  inline Address& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
142 
146  inline Address& WithAllocationId(Aws::String&& value) { SetAllocationId(value); return *this;}
147 
151  inline Address& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
152 
157  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
158 
163  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
164 
169  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
170 
175  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
176 
181  inline Address& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
182 
187  inline Address& WithAssociationId(Aws::String&& value) { SetAssociationId(value); return *this;}
188 
193  inline Address& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
194 
200  inline const DomainType& GetDomain() const{ return m_domain; }
201 
207  inline void SetDomain(const DomainType& value) { m_domainHasBeenSet = true; m_domain = value; }
208 
214  inline void SetDomain(DomainType&& value) { m_domainHasBeenSet = true; m_domain = value; }
215 
221  inline Address& WithDomain(const DomainType& value) { SetDomain(value); return *this;}
222 
228  inline Address& WithDomain(DomainType&& value) { SetDomain(value); return *this;}
229 
233  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
234 
238  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
239 
243  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
244 
248  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
249 
253  inline Address& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
254 
258  inline Address& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
259 
263  inline Address& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
264 
268  inline const Aws::String& GetNetworkInterfaceOwnerId() const{ return m_networkInterfaceOwnerId; }
269 
273  inline void SetNetworkInterfaceOwnerId(const Aws::String& value) { m_networkInterfaceOwnerIdHasBeenSet = true; m_networkInterfaceOwnerId = value; }
274 
278  inline void SetNetworkInterfaceOwnerId(Aws::String&& value) { m_networkInterfaceOwnerIdHasBeenSet = true; m_networkInterfaceOwnerId = value; }
279 
283  inline void SetNetworkInterfaceOwnerId(const char* value) { m_networkInterfaceOwnerIdHasBeenSet = true; m_networkInterfaceOwnerId.assign(value); }
284 
288  inline Address& WithNetworkInterfaceOwnerId(const Aws::String& value) { SetNetworkInterfaceOwnerId(value); return *this;}
289 
293  inline Address& WithNetworkInterfaceOwnerId(Aws::String&& value) { SetNetworkInterfaceOwnerId(value); return *this;}
294 
298  inline Address& WithNetworkInterfaceOwnerId(const char* value) { SetNetworkInterfaceOwnerId(value); return *this;}
299 
303  inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
304 
308  inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
309 
313  inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
314 
318  inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
319 
323  inline Address& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
324 
328  inline Address& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(value); return *this;}
329 
333  inline Address& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
334 
335  private:
336  Aws::String m_instanceId;
337  bool m_instanceIdHasBeenSet;
338  Aws::String m_publicIp;
339  bool m_publicIpHasBeenSet;
340  Aws::String m_allocationId;
341  bool m_allocationIdHasBeenSet;
342  Aws::String m_associationId;
343  bool m_associationIdHasBeenSet;
344  DomainType m_domain;
345  bool m_domainHasBeenSet;
346  Aws::String m_networkInterfaceId;
347  bool m_networkInterfaceIdHasBeenSet;
348  Aws::String m_networkInterfaceOwnerId;
349  bool m_networkInterfaceOwnerIdHasBeenSet;
350  Aws::String m_privateIpAddress;
351  bool m_privateIpAddressHasBeenSet;
352  };
353 
354 } // namespace Model
355 } // namespace EC2
356 } // namespace Aws
Address & WithNetworkInterfaceOwnerId(const char *value)
Definition: Address.h:298
void SetInstanceId(const Aws::String &value)
Definition: Address.h:56
void SetInstanceId(Aws::String &&value)
Definition: Address.h:61
Address & WithNetworkInterfaceOwnerId(const Aws::String &value)
Definition: Address.h:288
void SetNetworkInterfaceOwnerId(const Aws::String &value)
Definition: Address.h:273
void SetAssociationId(const Aws::String &value)
Definition: Address.h:163
Address & WithPublicIp(const Aws::String &value)
Definition: Address.h:106
void SetNetworkInterfaceId(const char *value)
Definition: Address.h:248
void SetAssociationId(Aws::String &&value)
Definition: Address.h:169
const Aws::String & GetPublicIp() const
Definition: Address.h:86
Address & WithAllocationId(Aws::String &&value)
Definition: Address.h:146
void SetAllocationId(Aws::String &&value)
Definition: Address.h:131
Address & WithDomain(const DomainType &value)
Definition: Address.h:221
const Aws::String & GetNetworkInterfaceId() const
Definition: Address.h:233
void SetDomain(const DomainType &value)
Definition: Address.h:207
Address & WithDomain(DomainType &&value)
Definition: Address.h:228
Address & WithPrivateIpAddress(Aws::String &&value)
Definition: Address.h:328
Address & WithPublicIp(Aws::String &&value)
Definition: Address.h:111
const DomainType & GetDomain() const
Definition: Address.h:200
Address & WithInstanceId(const char *value)
Definition: Address.h:81
void SetNetworkInterfaceOwnerId(Aws::String &&value)
Definition: Address.h:278
Address & WithAllocationId(const Aws::String &value)
Definition: Address.h:141
void SetPrivateIpAddress(const Aws::String &value)
Definition: Address.h:308
Address & WithPrivateIpAddress(const Aws::String &value)
Definition: Address.h:323
Address & WithNetworkInterfaceOwnerId(Aws::String &&value)
Definition: Address.h:293
Address & WithInstanceId(Aws::String &&value)
Definition: Address.h:76
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Address & WithAssociationId(const Aws::String &value)
Definition: Address.h:181
const Aws::String & GetAllocationId() const
Definition: Address.h:121
void SetAllocationId(const Aws::String &value)
Definition: Address.h:126
Address & WithNetworkInterfaceId(const Aws::String &value)
Definition: Address.h:253
void SetNetworkInterfaceOwnerId(const char *value)
Definition: Address.h:283
const Aws::String & GetNetworkInterfaceOwnerId() const
Definition: Address.h:268
void SetPrivateIpAddress(Aws::String &&value)
Definition: Address.h:313
Address & WithAssociationId(Aws::String &&value)
Definition: Address.h:187
void SetPublicIp(const char *value)
Definition: Address.h:101
Address & WithAllocationId(const char *value)
Definition: Address.h:151
void SetAllocationId(const char *value)
Definition: Address.h:136
void SetInstanceId(const char *value)
Definition: Address.h:66
void SetPublicIp(const Aws::String &value)
Definition: Address.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetInstanceId() const
Definition: Address.h:51
void SetPrivateIpAddress(const char *value)
Definition: Address.h:318
void SetPublicIp(Aws::String &&value)
Definition: Address.h:96
void SetNetworkInterfaceId(Aws::String &&value)
Definition: Address.h:243
Address & WithPrivateIpAddress(const char *value)
Definition: Address.h:333
const Aws::String & GetAssociationId() const
Definition: Address.h:157
void SetDomain(DomainType &&value)
Definition: Address.h:214
Address & WithPublicIp(const char *value)
Definition: Address.h:116
void SetNetworkInterfaceId(const Aws::String &value)
Definition: Address.h:238
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
Address & WithNetworkInterfaceId(const char *value)
Definition: Address.h:263
Address & WithNetworkInterfaceId(Aws::String &&value)
Definition: Address.h:258
void SetAssociationId(const char *value)
Definition: Address.h:175
Address & WithAssociationId(const char *value)
Definition: Address.h:193
JSON (JavaScript Object Notation).
const Aws::String & GetPrivateIpAddress() const
Definition: Address.h:303
Address & WithInstanceId(const Aws::String &value)
Definition: Address.h:71