AWS SDK for C++  1.8.7
AWS SDK for C++
UnassignPrivateIpAddressesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UnassignPrivateIpAddresses"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
48 
52  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
53 
57  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
58 
62  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
63 
67  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
68 
72  inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
73 
77  inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
78 
82  inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
83 
84 
90  inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
91 
97  inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
98 
104  inline void SetPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
105 
111  inline void SetPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); }
112 
118  inline UnassignPrivateIpAddressesRequest& WithPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { SetPrivateIpAddresses(value); return *this;}
119 
125  inline UnassignPrivateIpAddressesRequest& WithPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { SetPrivateIpAddresses(std::move(value)); return *this;}
126 
132  inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
133 
139  inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; }
140 
146  inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
147 
148  private:
149 
150  Aws::String m_networkInterfaceId;
151  bool m_networkInterfaceIdHasBeenSet;
152 
153  Aws::Vector<Aws::String> m_privateIpAddresses;
154  bool m_privateIpAddressesHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace EC2
159 } // 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:17
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:97
void SetPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(const Aws::String &value)
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(const char *value)