AWS SDK for C++  0.12.9
AWS SDK for C++
NetworkInterfaceAssociation.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 
38  {
39  public:
42  NetworkInterfaceAssociation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
51 
55  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
56 
60  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
61 
65  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
66 
70  inline NetworkInterfaceAssociation& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
71 
75  inline NetworkInterfaceAssociation& WithPublicIp(Aws::String&& value) { SetPublicIp(value); return *this;}
76 
80  inline NetworkInterfaceAssociation& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
81 
85  inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
86 
90  inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
91 
95  inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
96 
100  inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
101 
105  inline NetworkInterfaceAssociation& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;}
106 
110  inline NetworkInterfaceAssociation& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(value); return *this;}
111 
115  inline NetworkInterfaceAssociation& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
116 
120  inline const Aws::String& GetIpOwnerId() const{ return m_ipOwnerId; }
121 
125  inline void SetIpOwnerId(const Aws::String& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = value; }
126 
130  inline void SetIpOwnerId(Aws::String&& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = value; }
131 
135  inline void SetIpOwnerId(const char* value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId.assign(value); }
136 
140  inline NetworkInterfaceAssociation& WithIpOwnerId(const Aws::String& value) { SetIpOwnerId(value); return *this;}
141 
145  inline NetworkInterfaceAssociation& WithIpOwnerId(Aws::String&& value) { SetIpOwnerId(value); return *this;}
146 
150  inline NetworkInterfaceAssociation& WithIpOwnerId(const char* value) { SetIpOwnerId(value); return *this;}
151 
155  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
156 
160  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
161 
165  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
166 
170  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
171 
175  inline NetworkInterfaceAssociation& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
176 
180  inline NetworkInterfaceAssociation& WithAllocationId(Aws::String&& value) { SetAllocationId(value); return *this;}
181 
185  inline NetworkInterfaceAssociation& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
186 
190  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
191 
195  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
196 
200  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
201 
205  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
206 
210  inline NetworkInterfaceAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
211 
215  inline NetworkInterfaceAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(value); return *this;}
216 
220  inline NetworkInterfaceAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
221 
222  private:
223  Aws::String m_publicIp;
224  bool m_publicIpHasBeenSet;
225  Aws::String m_publicDnsName;
226  bool m_publicDnsNameHasBeenSet;
227  Aws::String m_ipOwnerId;
228  bool m_ipOwnerIdHasBeenSet;
229  Aws::String m_allocationId;
230  bool m_allocationIdHasBeenSet;
231  Aws::String m_associationId;
232  bool m_associationIdHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace EC2
237 } // namespace Aws
NetworkInterfaceAssociation & WithAllocationId(Aws::String &&value)
NetworkInterfaceAssociation & WithAllocationId(const char *value)
NetworkInterfaceAssociation & WithIpOwnerId(const char *value)
NetworkInterfaceAssociation & WithPublicDnsName(Aws::String &&value)
NetworkInterfaceAssociation & WithIpOwnerId(Aws::String &&value)
NetworkInterfaceAssociation & WithPublicIp(Aws::String &&value)
NetworkInterfaceAssociation & WithPublicIp(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
NetworkInterfaceAssociation & WithAssociationId(const Aws::String &value)
NetworkInterfaceAssociation & WithIpOwnerId(const Aws::String &value)
NetworkInterfaceAssociation & WithPublicDnsName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
NetworkInterfaceAssociation & WithPublicDnsName(const char *value)
NetworkInterfaceAssociation & WithAssociationId(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
NetworkInterfaceAssociation & WithAllocationId(const Aws::String &value)
NetworkInterfaceAssociation & WithAssociationId(Aws::String &&value)
JSON (JavaScript Object Notation).
NetworkInterfaceAssociation & WithPublicIp(const char *value)