AWS SDK for C++  0.12.9
AWS SDK for C++
InstanceNetworkInterfaceAssociation.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:
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 
51  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
52 
57  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
58 
63  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
64 
69  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
70 
75  inline InstanceNetworkInterfaceAssociation& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
76 
81  inline InstanceNetworkInterfaceAssociation& WithPublicIp(Aws::String&& value) { SetPublicIp(value); return *this;}
82 
87  inline InstanceNetworkInterfaceAssociation& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
88 
92  inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
93 
97  inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
98 
102  inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
103 
107  inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
108 
112  inline InstanceNetworkInterfaceAssociation& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;}
113 
117  inline InstanceNetworkInterfaceAssociation& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(value); return *this;}
118 
122  inline InstanceNetworkInterfaceAssociation& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
123 
127  inline const Aws::String& GetIpOwnerId() const{ return m_ipOwnerId; }
128 
132  inline void SetIpOwnerId(const Aws::String& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = value; }
133 
137  inline void SetIpOwnerId(Aws::String&& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = value; }
138 
142  inline void SetIpOwnerId(const char* value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId.assign(value); }
143 
147  inline InstanceNetworkInterfaceAssociation& WithIpOwnerId(const Aws::String& value) { SetIpOwnerId(value); return *this;}
148 
152  inline InstanceNetworkInterfaceAssociation& WithIpOwnerId(Aws::String&& value) { SetIpOwnerId(value); return *this;}
153 
157  inline InstanceNetworkInterfaceAssociation& WithIpOwnerId(const char* value) { SetIpOwnerId(value); return *this;}
158 
159  private:
160  Aws::String m_publicIp;
161  bool m_publicIpHasBeenSet;
162  Aws::String m_publicDnsName;
163  bool m_publicDnsNameHasBeenSet;
164  Aws::String m_ipOwnerId;
165  bool m_ipOwnerIdHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace EC2
170 } // namespace Aws
InstanceNetworkInterfaceAssociation & WithIpOwnerId(const Aws::String &value)
InstanceNetworkInterfaceAssociation & WithPublicDnsName(const Aws::String &value)
InstanceNetworkInterfaceAssociation & WithPublicIp(const char *value)
InstanceNetworkInterfaceAssociation & WithIpOwnerId(Aws::String &&value)
InstanceNetworkInterfaceAssociation & WithIpOwnerId(const char *value)
InstanceNetworkInterfaceAssociation & WithPublicIp(const Aws::String &value)
InstanceNetworkInterfaceAssociation & WithPublicDnsName(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
InstanceNetworkInterfaceAssociation & WithPublicDnsName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InstanceNetworkInterfaceAssociation & WithPublicIp(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).