AWS SDK for C++  0.12.9
AWS SDK for C++
CreateNetworkInterfaceRequest.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>
17 #include <aws/ec2/EC2Request.h>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
42 
46  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
47 
51  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
52 
56  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
57 
61  inline CreateNetworkInterfaceRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
62 
66  inline CreateNetworkInterfaceRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
67 
71  inline CreateNetworkInterfaceRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
72 
76  inline const Aws::String& GetDescription() const{ return m_description; }
77 
81  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 
86  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 
91  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
92 
96  inline CreateNetworkInterfaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 
101  inline CreateNetworkInterfaceRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
102 
106  inline CreateNetworkInterfaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
107 
115  inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
116 
124  inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
125 
133  inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
134 
142  inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
143 
151  inline CreateNetworkInterfaceRequest& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
152 
160  inline CreateNetworkInterfaceRequest& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(value); return *this;}
161 
169  inline CreateNetworkInterfaceRequest& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
170 
174  inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
175 
179  inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
180 
184  inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = value; }
185 
189  inline CreateNetworkInterfaceRequest& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
190 
194  inline CreateNetworkInterfaceRequest& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(value); return *this;}
195 
199  inline CreateNetworkInterfaceRequest& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
200 
204  inline CreateNetworkInterfaceRequest& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
205 
209  inline CreateNetworkInterfaceRequest& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
210 
214  inline const Aws::Vector<PrivateIpAddressSpecification>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
215 
219  inline void SetPrivateIpAddresses(const Aws::Vector<PrivateIpAddressSpecification>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
220 
224  inline void SetPrivateIpAddresses(Aws::Vector<PrivateIpAddressSpecification>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
225 
229  inline CreateNetworkInterfaceRequest& WithPrivateIpAddresses(const Aws::Vector<PrivateIpAddressSpecification>& value) { SetPrivateIpAddresses(value); return *this;}
230 
234  inline CreateNetworkInterfaceRequest& WithPrivateIpAddresses(Aws::Vector<PrivateIpAddressSpecification>&& value) { SetPrivateIpAddresses(value); return *this;}
235 
239  inline CreateNetworkInterfaceRequest& AddPrivateIpAddresses(const PrivateIpAddressSpecification& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
240 
244  inline CreateNetworkInterfaceRequest& AddPrivateIpAddresses(PrivateIpAddressSpecification&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
245 
258  inline long GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; }
259 
272  inline void SetSecondaryPrivateIpAddressCount(long value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
273 
286  inline CreateNetworkInterfaceRequest& WithSecondaryPrivateIpAddressCount(long value) { SetSecondaryPrivateIpAddressCount(value); return *this;}
287 
294  inline bool GetDryRun() const{ return m_dryRun; }
295 
302  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
303 
310  inline CreateNetworkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
311 
312  private:
313  Aws::String m_subnetId;
314  bool m_subnetIdHasBeenSet;
315  Aws::String m_description;
316  bool m_descriptionHasBeenSet;
317  Aws::String m_privateIpAddress;
318  bool m_privateIpAddressHasBeenSet;
319  Aws::Vector<Aws::String> m_groups;
320  bool m_groupsHasBeenSet;
321  Aws::Vector<PrivateIpAddressSpecification> m_privateIpAddresses;
322  bool m_privateIpAddressesHasBeenSet;
323  long m_secondaryPrivateIpAddressCount;
324  bool m_secondaryPrivateIpAddressCountHasBeenSet;
325  bool m_dryRun;
326  bool m_dryRunHasBeenSet;
327  };
328 
329 } // namespace Model
330 } // namespace EC2
331 } // namespace Aws
CreateNetworkInterfaceRequest & AddGroups(const Aws::String &value)
CreateNetworkInterfaceRequest & AddGroups(const char *value)
CreateNetworkInterfaceRequest & WithPrivateIpAddress(const char *value)
CreateNetworkInterfaceRequest & WithPrivateIpAddress(Aws::String &&value)
CreateNetworkInterfaceRequest & WithSubnetId(const Aws::String &value)
CreateNetworkInterfaceRequest & AddPrivateIpAddresses(PrivateIpAddressSpecification &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< PrivateIpAddressSpecification > & GetPrivateIpAddresses() const
CreateNetworkInterfaceRequest & WithSecondaryPrivateIpAddressCount(long value)
const Aws::Vector< Aws::String > & GetGroups() const
CreateNetworkInterfaceRequest & WithGroups(const Aws::Vector< Aws::String > &value)
CreateNetworkInterfaceRequest & WithDescription(Aws::String &&value)
CreateNetworkInterfaceRequest & WithSubnetId(const char *value)
CreateNetworkInterfaceRequest & WithPrivateIpAddresses(Aws::Vector< PrivateIpAddressSpecification > &&value)
CreateNetworkInterfaceRequest & AddPrivateIpAddresses(const PrivateIpAddressSpecification &value)
void SetGroups(Aws::Vector< Aws::String > &&value)
void SetPrivateIpAddresses(Aws::Vector< PrivateIpAddressSpecification > &&value)
void SetGroups(const Aws::Vector< Aws::String > &value)
CreateNetworkInterfaceRequest & WithPrivateIpAddresses(const Aws::Vector< PrivateIpAddressSpecification > &value)
void SetPrivateIpAddresses(const Aws::Vector< PrivateIpAddressSpecification > &value)
CreateNetworkInterfaceRequest & WithGroups(Aws::Vector< Aws::String > &&value)
CreateNetworkInterfaceRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateNetworkInterfaceRequest & WithPrivateIpAddress(const Aws::String &value)
CreateNetworkInterfaceRequest & AddGroups(Aws::String &&value)
CreateNetworkInterfaceRequest & WithSubnetId(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
CreateNetworkInterfaceRequest & WithDescription(const char *value)
CreateNetworkInterfaceRequest & WithDescription(const Aws::String &value)
JSON (JavaScript Object Notation).