AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UnassignPrivateIpAddressesRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::Vector<Aws::String>& GetIpv4Prefixes() const{ return m_ipv4Prefixes; }
49 inline bool Ipv4PrefixesHasBeenSet() const { return m_ipv4PrefixesHasBeenSet; }
50 inline void SetIpv4Prefixes(const Aws::Vector<Aws::String>& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = value; }
51 inline void SetIpv4Prefixes(Aws::Vector<Aws::String>&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = std::move(value); }
54 inline UnassignPrivateIpAddressesRequest& AddIpv4Prefixes(const Aws::String& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; }
55 inline UnassignPrivateIpAddressesRequest& AddIpv4Prefixes(Aws::String&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(std::move(value)); return *this; }
56 inline UnassignPrivateIpAddressesRequest& AddIpv4Prefixes(const char* value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; }
58
60
63 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
64 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
65 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
66 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
67 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
70 inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
72
74
79 inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
80 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
81 inline void SetPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
82 inline void SetPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); }
85 inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
86 inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; }
87 inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
89 private:
90
91 Aws::Vector<Aws::String> m_ipv4Prefixes;
92 bool m_ipv4PrefixesHasBeenSet = false;
93
94 Aws::String m_networkInterfaceId;
95 bool m_networkInterfaceIdHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_privateIpAddresses;
98 bool m_privateIpAddressesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(const Aws::String &value)
UnassignPrivateIpAddressesRequest & AddPrivateIpAddresses(Aws::String &&value)
UnassignPrivateIpAddressesRequest & WithIpv4Prefixes(const Aws::Vector< Aws::String > &value)
UnassignPrivateIpAddressesRequest & WithPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
UnassignPrivateIpAddressesRequest & AddPrivateIpAddresses(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
UnassignPrivateIpAddressesRequest & AddIpv4Prefixes(const Aws::String &value)
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
void SetIpv4Prefixes(const Aws::Vector< Aws::String > &value)
UnassignPrivateIpAddressesRequest & WithPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(const char *value)
UnassignPrivateIpAddressesRequest & AddIpv4Prefixes(const char *value)
UnassignPrivateIpAddressesRequest & AddIpv4Prefixes(Aws::String &&value)
void SetPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
UnassignPrivateIpAddressesRequest & WithIpv4Prefixes(Aws::Vector< Aws::String > &&value)
UnassignPrivateIpAddressesRequest & AddPrivateIpAddresses(const Aws::String &value)
UnassignPrivateIpAddressesRequest & WithNetworkInterfaceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector