AWS SDK for C++  1.7.243
AWS SDK for C++
UnassignPrivateIpAddressesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 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 
16 #pragma once
17 #include <aws/ec2/EC2_EXPORTS.h>
18 #include <aws/ec2/EC2Request.h>
21 #include <utility>
22 
23 namespace Aws
24 {
25 namespace EC2
26 {
27 namespace Model
28 {
29 
37  {
38  public:
40 
41  // Service request name is the Operation name which will send this request out,
42  // each operation should has unique request name, so that we can get operation's name from this request.
43  // Note: this is not true for response, multiple operations may have the same response name,
44  // so we can not get operation's name from response.
45  inline virtual const char* GetServiceRequestName() const override { return "UnassignPrivateIpAddresses"; }
46 
47  Aws::String SerializePayload() const override;
48 
49  protected:
50  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
51 
52  public:
53 
57  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
58 
62  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
63 
67  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
68 
72  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
73 
77  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
78 
82  inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
83 
87  inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
88 
92  inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
93 
94 
100  inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
101 
107  inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
108 
114  inline void SetPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
115 
121  inline void SetPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); }
122 
128  inline UnassignPrivateIpAddressesRequest& WithPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { SetPrivateIpAddresses(value); return *this;}
129 
135  inline UnassignPrivateIpAddressesRequest& WithPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { SetPrivateIpAddresses(std::move(value)); return *this;}
136 
142  inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
143 
149  inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; }
150 
156  inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
157 
158  private:
159 
160  Aws::String m_networkInterfaceId;
161  bool m_networkInterfaceIdHasBeenSet;
162 
163  Aws::Vector<Aws::String> m_privateIpAddresses;
164  bool m_privateIpAddressesHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace EC2
169 } // namespace Aws
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
UnassignPrivateIpAddressesRequest & WithPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UnassignPrivateIpAddressesRequest & AddPrivateIpAddresses(const Aws::String &value)
UnassignPrivateIpAddressesRequest & AddPrivateIpAddresses(const char *value)
UnassignPrivateIpAddressesRequest & AddPrivateIpAddresses(Aws::String &&value)
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(Aws::String &&value)
UnassignPrivateIpAddressesRequest & WithPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:107
void SetPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:38
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(const Aws::String &value)
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(const char *value)