AWS SDK for C++  0.14.3
AWS SDK for C++
AssignPrivateIpAddressesRequest.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>
20 
21 namespace Aws
22 {
23 namespace EC2
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
41 
45  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
46 
50  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
51 
55  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
56 
60  inline AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
61 
65  inline AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
66 
70  inline AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
71 
78  inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
79 
86  inline void SetPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
87 
94  inline void SetPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
95 
102  inline AssignPrivateIpAddressesRequest& WithPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { SetPrivateIpAddresses(value); return *this;}
103 
110  inline AssignPrivateIpAddressesRequest& WithPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { SetPrivateIpAddresses(value); return *this;}
111 
118  inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
119 
126  inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
127 
134  inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
135 
140  inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; }
141 
146  inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
147 
152  inline AssignPrivateIpAddressesRequest& WithSecondaryPrivateIpAddressCount(int value) { SetSecondaryPrivateIpAddressCount(value); return *this;}
153 
159  inline bool GetAllowReassignment() const{ return m_allowReassignment; }
160 
166  inline void SetAllowReassignment(bool value) { m_allowReassignmentHasBeenSet = true; m_allowReassignment = value; }
167 
173  inline AssignPrivateIpAddressesRequest& WithAllowReassignment(bool value) { SetAllowReassignment(value); return *this;}
174 
175  private:
176  Aws::String m_networkInterfaceId;
177  bool m_networkInterfaceIdHasBeenSet;
178  Aws::Vector<Aws::String> m_privateIpAddresses;
179  bool m_privateIpAddressesHasBeenSet;
180  int m_secondaryPrivateIpAddressCount;
181  bool m_secondaryPrivateIpAddressCountHasBeenSet;
182  bool m_allowReassignment;
183  bool m_allowReassignmentHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace EC2
188 } // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(const Aws::String &value)
AssignPrivateIpAddressesRequest & WithAllowReassignment(bool value)
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(Aws::String &&value)
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(Aws::String &&value)
AssignPrivateIpAddressesRequest & WithPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AssignPrivateIpAddressesRequest & WithPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(const Aws::String &value)
AssignPrivateIpAddressesRequest & WithSecondaryPrivateIpAddressCount(int value)
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(const char *value)
void SetPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(const char *value)
void SetPrivateIpAddresses(Aws::Vector< Aws::String > &&value)