AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeNetworkInterfaceAttributeResponse.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>
24 
25 namespace Aws
26 {
27 template<typename RESULT_TYPE>
28 class AmazonWebServiceResult;
29 
30 namespace Utils
31 {
32 namespace Xml
33 {
34  class XmlDocument;
35 } // namespace Xml
36 } // namespace Utils
37 namespace EC2
38 {
39 namespace Model
40 {
45  {
46  public:
50 
54  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
55 
59  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceId = value; }
60 
64  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceId = value; }
65 
69  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceId.assign(value); }
70 
74  inline DescribeNetworkInterfaceAttributeResponse& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
75 
79  inline DescribeNetworkInterfaceAttributeResponse& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
80 
84  inline DescribeNetworkInterfaceAttributeResponse& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
85 
89  inline const AttributeValue& GetDescription() const{ return m_description; }
90 
94  inline void SetDescription(const AttributeValue& value) { m_description = value; }
95 
99  inline void SetDescription(AttributeValue&& value) { m_description = value; }
100 
104  inline DescribeNetworkInterfaceAttributeResponse& WithDescription(const AttributeValue& value) { SetDescription(value); return *this;}
105 
109  inline DescribeNetworkInterfaceAttributeResponse& WithDescription(AttributeValue&& value) { SetDescription(value); return *this;}
110 
114  inline const AttributeBooleanValue& GetSourceDestCheck() const{ return m_sourceDestCheck; }
115 
119  inline void SetSourceDestCheck(const AttributeBooleanValue& value) { m_sourceDestCheck = value; }
120 
124  inline void SetSourceDestCheck(AttributeBooleanValue&& value) { m_sourceDestCheck = value; }
125 
129  inline DescribeNetworkInterfaceAttributeResponse& WithSourceDestCheck(const AttributeBooleanValue& value) { SetSourceDestCheck(value); return *this;}
130 
134  inline DescribeNetworkInterfaceAttributeResponse& WithSourceDestCheck(AttributeBooleanValue&& value) { SetSourceDestCheck(value); return *this;}
135 
139  inline const Aws::Vector<GroupIdentifier>& GetGroups() const{ return m_groups; }
140 
144  inline void SetGroups(const Aws::Vector<GroupIdentifier>& value) { m_groups = value; }
145 
149  inline void SetGroups(Aws::Vector<GroupIdentifier>&& value) { m_groups = value; }
150 
154  inline DescribeNetworkInterfaceAttributeResponse& WithGroups(const Aws::Vector<GroupIdentifier>& value) { SetGroups(value); return *this;}
155 
159  inline DescribeNetworkInterfaceAttributeResponse& WithGroups(Aws::Vector<GroupIdentifier>&& value) { SetGroups(value); return *this;}
160 
164  inline DescribeNetworkInterfaceAttributeResponse& AddGroups(const GroupIdentifier& value) { m_groups.push_back(value); return *this; }
165 
169  inline DescribeNetworkInterfaceAttributeResponse& AddGroups(GroupIdentifier&& value) { m_groups.push_back(value); return *this; }
170 
174  inline const NetworkInterfaceAttachment& GetAttachment() const{ return m_attachment; }
175 
179  inline void SetAttachment(const NetworkInterfaceAttachment& value) { m_attachment = value; }
180 
184  inline void SetAttachment(NetworkInterfaceAttachment&& value) { m_attachment = value; }
185 
189  inline DescribeNetworkInterfaceAttributeResponse& WithAttachment(const NetworkInterfaceAttachment& value) { SetAttachment(value); return *this;}
190 
194  inline DescribeNetworkInterfaceAttributeResponse& WithAttachment(NetworkInterfaceAttachment&& value) { SetAttachment(value); return *this;}
195 
196 
197  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
198 
199 
200  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
201 
202 
203  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
204 
205 
206  inline DescribeNetworkInterfaceAttributeResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
207 
208 
209  inline DescribeNetworkInterfaceAttributeResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
210 
211  private:
212  Aws::String m_networkInterfaceId;
213  AttributeValue m_description;
214  AttributeBooleanValue m_sourceDestCheck;
216  NetworkInterfaceAttachment m_attachment;
217  ResponseMetadata m_responseMetadata;
218  };
219 
220 } // namespace Model
221 } // namespace EC2
222 } // namespace Aws
DescribeNetworkInterfaceAttributeResponse & WithSourceDestCheck(const AttributeBooleanValue &value)
DescribeNetworkInterfaceAttributeResponse & WithAttachment(const NetworkInterfaceAttachment &value)
DescribeNetworkInterfaceAttributeResponse & WithGroups(const Aws::Vector< GroupIdentifier > &value)
DescribeNetworkInterfaceAttributeResponse & WithResponseMetadata(const ResponseMetadata &value)
DescribeNetworkInterfaceAttributeResponse & WithNetworkInterfaceId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeNetworkInterfaceAttributeResponse & WithNetworkInterfaceId(const Aws::String &value)
DescribeNetworkInterfaceAttributeResponse & WithSourceDestCheck(AttributeBooleanValue &&value)
DescribeNetworkInterfaceAttributeResponse & AddGroups(GroupIdentifier &&value)
DescribeNetworkInterfaceAttributeResponse & WithDescription(AttributeValue &&value)
DescribeNetworkInterfaceAttributeResponse & WithNetworkInterfaceId(Aws::String &&value)
DescribeNetworkInterfaceAttributeResponse & WithGroups(Aws::Vector< GroupIdentifier > &&value)
DescribeNetworkInterfaceAttributeResponse & WithAttachment(NetworkInterfaceAttachment &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeNetworkInterfaceAttributeResponse & AddGroups(const GroupIdentifier &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
DescribeNetworkInterfaceAttributeResponse & WithResponseMetadata(ResponseMetadata &&value)
DescribeNetworkInterfaceAttributeResponse & WithDescription(const AttributeValue &value)
JSON (JavaScript Object Notation).