AWS SDK for C++  0.12.9
AWS SDK for C++
UnassignPrivateIpAddressesRequest.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 UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
61 
65  inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
66 
70  inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
71 
77  inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
78 
84  inline void SetPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
85 
91  inline void SetPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
92 
98  inline UnassignPrivateIpAddressesRequest& WithPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { SetPrivateIpAddresses(value); return *this;}
99 
105  inline UnassignPrivateIpAddressesRequest& WithPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { SetPrivateIpAddresses(value); return *this;}
106 
112  inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
113 
119  inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
120 
126  inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
127 
128  private:
129  Aws::String m_networkInterfaceId;
130  bool m_networkInterfaceIdHasBeenSet;
131  Aws::Vector<Aws::String> m_privateIpAddresses;
132  bool m_privateIpAddressesHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace EC2
137 } // namespace Aws
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)
void SetPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(const Aws::String &value)
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(const char *value)
JSON (JavaScript Object Notation).