AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssignPrivateIpAddressesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
25 public:
26 AWS_EC2_API AssignPrivateIpAddressesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AssignPrivateIpAddresses"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
45 inline const Aws::Vector<Aws::String>& GetIpv4Prefixes() const { return m_ipv4Prefixes; }
46 inline bool Ipv4PrefixesHasBeenSet() const { return m_ipv4PrefixesHasBeenSet; }
47 template <typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
48 void SetIpv4Prefixes(Ipv4PrefixesT&& value) {
49 m_ipv4PrefixesHasBeenSet = true;
50 m_ipv4Prefixes = std::forward<Ipv4PrefixesT>(value);
51 }
52 template <typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
54 SetIpv4Prefixes(std::forward<Ipv4PrefixesT>(value));
55 return *this;
56 }
57 template <typename Ipv4PrefixesT = Aws::String>
59 m_ipv4PrefixesHasBeenSet = true;
60 m_ipv4Prefixes.emplace_back(std::forward<Ipv4PrefixesT>(value));
61 return *this;
62 }
64
66
71 inline int GetIpv4PrefixCount() const { return m_ipv4PrefixCount; }
72 inline bool Ipv4PrefixCountHasBeenSet() const { return m_ipv4PrefixCountHasBeenSet; }
73 inline void SetIpv4PrefixCount(int value) {
74 m_ipv4PrefixCountHasBeenSet = true;
75 m_ipv4PrefixCount = value;
76 }
78 SetIpv4PrefixCount(value);
79 return *this;
80 }
82
84
87 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
88 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
89 template <typename NetworkInterfaceIdT = Aws::String>
90 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
91 m_networkInterfaceIdHasBeenSet = true;
92 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
93 }
94 template <typename NetworkInterfaceIdT = Aws::String>
96 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
97 return *this;
98 }
100
102
108 inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const { return m_privateIpAddresses; }
109 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
110 template <typename PrivateIpAddressesT = Aws::Vector<Aws::String>>
111 void SetPrivateIpAddresses(PrivateIpAddressesT&& value) {
112 m_privateIpAddressesHasBeenSet = true;
113 m_privateIpAddresses = std::forward<PrivateIpAddressesT>(value);
114 }
115 template <typename PrivateIpAddressesT = Aws::Vector<Aws::String>>
117 SetPrivateIpAddresses(std::forward<PrivateIpAddressesT>(value));
118 return *this;
119 }
120 template <typename PrivateIpAddressesT = Aws::String>
122 m_privateIpAddressesHasBeenSet = true;
123 m_privateIpAddresses.emplace_back(std::forward<PrivateIpAddressesT>(value));
124 return *this;
125 }
127
129
133 inline int GetSecondaryPrivateIpAddressCount() const { return m_secondaryPrivateIpAddressCount; }
134 inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; }
135 inline void SetSecondaryPrivateIpAddressCount(int value) {
136 m_secondaryPrivateIpAddressCountHasBeenSet = true;
137 m_secondaryPrivateIpAddressCount = value;
138 }
141 return *this;
142 }
144
146
151 inline bool GetAllowReassignment() const { return m_allowReassignment; }
152 inline bool AllowReassignmentHasBeenSet() const { return m_allowReassignmentHasBeenSet; }
153 inline void SetAllowReassignment(bool value) {
154 m_allowReassignmentHasBeenSet = true;
155 m_allowReassignment = value;
156 }
159 return *this;
160 }
162 private:
163 Aws::Vector<Aws::String> m_ipv4Prefixes;
164
165 int m_ipv4PrefixCount{0};
166
167 Aws::String m_networkInterfaceId;
168
169 Aws::Vector<Aws::String> m_privateIpAddresses;
170
171 int m_secondaryPrivateIpAddressCount{0};
172
173 bool m_allowReassignment{false};
174 bool m_ipv4PrefixesHasBeenSet = false;
175 bool m_ipv4PrefixCountHasBeenSet = false;
176 bool m_networkInterfaceIdHasBeenSet = false;
177 bool m_privateIpAddressesHasBeenSet = false;
178 bool m_secondaryPrivateIpAddressCountHasBeenSet = false;
179 bool m_allowReassignmentHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace EC2
184} // namespace Aws
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(PrivateIpAddressesT &&value)
AssignPrivateIpAddressesRequest & WithIpv4PrefixCount(int value)
AssignPrivateIpAddressesRequest & WithSecondaryPrivateIpAddressCount(int value)
AssignPrivateIpAddressesRequest & WithPrivateIpAddresses(PrivateIpAddressesT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssignPrivateIpAddressesRequest & AddIpv4Prefixes(Ipv4PrefixesT &&value)
AssignPrivateIpAddressesRequest & WithAllowReassignment(bool value)
AssignPrivateIpAddressesRequest & WithIpv4Prefixes(Ipv4PrefixesT &&value)
const Aws::Vector< Aws::String > & GetIpv4Prefixes() const
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector