AWS SDK for C++  1.9.126
AWS SDK for C++
AssignPrivateIpAddressesRequest.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 "AssignPrivateIpAddresses"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
49  inline bool GetAllowReassignment() const{ return m_allowReassignment; }
50 
56  inline bool AllowReassignmentHasBeenSet() const { return m_allowReassignmentHasBeenSet; }
57 
63  inline void SetAllowReassignment(bool value) { m_allowReassignmentHasBeenSet = true; m_allowReassignment = value; }
64 
70  inline AssignPrivateIpAddressesRequest& WithAllowReassignment(bool value) { SetAllowReassignment(value); return *this;}
71 
72 
76  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
77 
81  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
82 
86  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
87 
91  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
92 
96  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
97 
101  inline AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
102 
106  inline AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
107 
111  inline AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
112 
113 
120  inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
121 
128  inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
129 
136  inline void SetPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
137 
144  inline void SetPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); }
145 
152  inline AssignPrivateIpAddressesRequest& WithPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { SetPrivateIpAddresses(value); return *this;}
153 
160  inline AssignPrivateIpAddressesRequest& WithPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { SetPrivateIpAddresses(std::move(value)); return *this;}
161 
168  inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
169 
176  inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; }
177 
184  inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
185 
186 
191  inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; }
192 
197  inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; }
198 
203  inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
204 
209  inline AssignPrivateIpAddressesRequest& WithSecondaryPrivateIpAddressCount(int value) { SetSecondaryPrivateIpAddressCount(value); return *this;}
210 
211 
216  inline const Aws::Vector<Aws::String>& GetIpv4Prefixes() const{ return m_ipv4Prefixes; }
217 
222  inline bool Ipv4PrefixesHasBeenSet() const { return m_ipv4PrefixesHasBeenSet; }
223 
228  inline void SetIpv4Prefixes(const Aws::Vector<Aws::String>& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = value; }
229 
234  inline void SetIpv4Prefixes(Aws::Vector<Aws::String>&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = std::move(value); }
235 
240  inline AssignPrivateIpAddressesRequest& WithIpv4Prefixes(const Aws::Vector<Aws::String>& value) { SetIpv4Prefixes(value); return *this;}
241 
246  inline AssignPrivateIpAddressesRequest& WithIpv4Prefixes(Aws::Vector<Aws::String>&& value) { SetIpv4Prefixes(std::move(value)); return *this;}
247 
252  inline AssignPrivateIpAddressesRequest& AddIpv4Prefixes(const Aws::String& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; }
253 
258  inline AssignPrivateIpAddressesRequest& AddIpv4Prefixes(Aws::String&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(std::move(value)); return *this; }
259 
264  inline AssignPrivateIpAddressesRequest& AddIpv4Prefixes(const char* value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; }
265 
266 
272  inline int GetIpv4PrefixCount() const{ return m_ipv4PrefixCount; }
273 
279  inline bool Ipv4PrefixCountHasBeenSet() const { return m_ipv4PrefixCountHasBeenSet; }
280 
286  inline void SetIpv4PrefixCount(int value) { m_ipv4PrefixCountHasBeenSet = true; m_ipv4PrefixCount = value; }
287 
293  inline AssignPrivateIpAddressesRequest& WithIpv4PrefixCount(int value) { SetIpv4PrefixCount(value); return *this;}
294 
295  private:
296 
297  bool m_allowReassignment;
298  bool m_allowReassignmentHasBeenSet;
299 
300  Aws::String m_networkInterfaceId;
301  bool m_networkInterfaceIdHasBeenSet;
302 
303  Aws::Vector<Aws::String> m_privateIpAddresses;
304  bool m_privateIpAddressesHasBeenSet;
305 
306  int m_secondaryPrivateIpAddressCount;
307  bool m_secondaryPrivateIpAddressCountHasBeenSet;
308 
309  Aws::Vector<Aws::String> m_ipv4Prefixes;
310  bool m_ipv4PrefixesHasBeenSet;
311 
312  int m_ipv4PrefixCount;
313  bool m_ipv4PrefixCountHasBeenSet;
314  };
315 
316 } // namespace Model
317 } // namespace EC2
318 } // namespace Aws
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithIpv4Prefixes
AssignPrivateIpAddressesRequest & WithIpv4Prefixes(const Aws::Vector< Aws::String > &value)
Definition: AssignPrivateIpAddressesRequest.h:240
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetIpv4Prefixes
void SetIpv4Prefixes(const Aws::Vector< Aws::String > &value)
Definition: AssignPrivateIpAddressesRequest.h:228
Aws::EC2::Model::AssignPrivateIpAddressesRequest::PrivateIpAddressesHasBeenSet
bool PrivateIpAddressesHasBeenSet() const
Definition: AssignPrivateIpAddressesRequest.h:128
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithNetworkInterfaceId
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(const Aws::String &value)
Definition: AssignPrivateIpAddressesRequest.h:101
Aws::EC2::Model::AssignPrivateIpAddressesRequest::AllowReassignmentHasBeenSet
bool AllowReassignmentHasBeenSet() const
Definition: AssignPrivateIpAddressesRequest.h:56
Aws::EC2::Model::AssignPrivateIpAddressesRequest::Ipv4PrefixesHasBeenSet
bool Ipv4PrefixesHasBeenSet() const
Definition: AssignPrivateIpAddressesRequest.h:222
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetIpv4PrefixCount
void SetIpv4PrefixCount(int value)
Definition: AssignPrivateIpAddressesRequest.h:286
Aws::EC2::Model::AssignPrivateIpAddressesRequest::AddPrivateIpAddresses
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(const char *value)
Definition: AssignPrivateIpAddressesRequest.h:184
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithSecondaryPrivateIpAddressCount
AssignPrivateIpAddressesRequest & WithSecondaryPrivateIpAddressCount(int value)
Definition: AssignPrivateIpAddressesRequest.h:209
Aws::EC2::Model::AssignPrivateIpAddressesRequest::GetSecondaryPrivateIpAddressCount
int GetSecondaryPrivateIpAddressCount() const
Definition: AssignPrivateIpAddressesRequest.h:191
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: AssignPrivateIpAddressesRequest.h:86
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: AssignPrivateIpAddressesRequest.h:96
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithNetworkInterfaceId
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(Aws::String &&value)
Definition: AssignPrivateIpAddressesRequest.h:106
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SecondaryPrivateIpAddressCountHasBeenSet
bool SecondaryPrivateIpAddressCountHasBeenSet() const
Definition: AssignPrivateIpAddressesRequest.h:197
Aws::EC2::Model::AssignPrivateIpAddressesRequest::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: AssignPrivateIpAddressesRequest.h:76
Aws::EC2::Model::AssignPrivateIpAddressesRequest::AddIpv4Prefixes
AssignPrivateIpAddressesRequest & AddIpv4Prefixes(const char *value)
Definition: AssignPrivateIpAddressesRequest.h:264
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetAllowReassignment
void SetAllowReassignment(bool value)
Definition: AssignPrivateIpAddressesRequest.h:63
AWSVector.h
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetSecondaryPrivateIpAddressCount
void SetSecondaryPrivateIpAddressCount(int value)
Definition: AssignPrivateIpAddressesRequest.h:203
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: AssignPrivateIpAddressesRequest.h:91
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithNetworkInterfaceId
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(const char *value)
Definition: AssignPrivateIpAddressesRequest.h:111
Aws::EC2::Model::AssignPrivateIpAddressesRequest
Definition: AssignPrivateIpAddressesRequest.h:27
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithIpv4PrefixCount
AssignPrivateIpAddressesRequest & WithIpv4PrefixCount(int value)
Definition: AssignPrivateIpAddressesRequest.h:293
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetPrivateIpAddresses
void SetPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
Definition: AssignPrivateIpAddressesRequest.h:136
Aws::EC2::Model::AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest
AssignPrivateIpAddressesRequest()
Aws::EC2::Model::AssignPrivateIpAddressesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2Request.h
Aws::EC2::Model::AssignPrivateIpAddressesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssignPrivateIpAddressesRequest.h:35
Aws::EC2::Model::AssignPrivateIpAddressesRequest::GetIpv4PrefixCount
int GetIpv4PrefixCount() const
Definition: AssignPrivateIpAddressesRequest.h:272
AWSString.h
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetPrivateIpAddresses
void SetPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
Definition: AssignPrivateIpAddressesRequest.h:144
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithAllowReassignment
AssignPrivateIpAddressesRequest & WithAllowReassignment(bool value)
Definition: AssignPrivateIpAddressesRequest.h:70
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SetIpv4Prefixes
void SetIpv4Prefixes(Aws::Vector< Aws::String > &&value)
Definition: AssignPrivateIpAddressesRequest.h:234
Aws::EC2::Model::AssignPrivateIpAddressesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AssignPrivateIpAddressesRequest::AddIpv4Prefixes
AssignPrivateIpAddressesRequest & AddIpv4Prefixes(const Aws::String &value)
Definition: AssignPrivateIpAddressesRequest.h:252
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithIpv4Prefixes
AssignPrivateIpAddressesRequest & WithIpv4Prefixes(Aws::Vector< Aws::String > &&value)
Definition: AssignPrivateIpAddressesRequest.h:246
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithPrivateIpAddresses
AssignPrivateIpAddressesRequest & WithPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
Definition: AssignPrivateIpAddressesRequest.h:152
Aws::EC2::Model::AssignPrivateIpAddressesRequest::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: AssignPrivateIpAddressesRequest.h:81
Aws::EC2::Model::AssignPrivateIpAddressesRequest::GetIpv4Prefixes
const Aws::Vector< Aws::String > & GetIpv4Prefixes() const
Definition: AssignPrivateIpAddressesRequest.h:216
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssignPrivateIpAddressesRequest::GetPrivateIpAddresses
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
Definition: AssignPrivateIpAddressesRequest.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AssignPrivateIpAddressesRequest::AddPrivateIpAddresses
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(Aws::String &&value)
Definition: AssignPrivateIpAddressesRequest.h:176
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AssignPrivateIpAddressesRequest::Ipv4PrefixCountHasBeenSet
bool Ipv4PrefixCountHasBeenSet() const
Definition: AssignPrivateIpAddressesRequest.h:279
Aws::EC2::Model::AssignPrivateIpAddressesRequest::AddIpv4Prefixes
AssignPrivateIpAddressesRequest & AddIpv4Prefixes(Aws::String &&value)
Definition: AssignPrivateIpAddressesRequest.h:258
Aws::EC2::Model::AssignPrivateIpAddressesRequest::GetAllowReassignment
bool GetAllowReassignment() const
Definition: AssignPrivateIpAddressesRequest.h:49
EC2_EXPORTS.h
Aws::EC2::Model::AssignPrivateIpAddressesRequest::WithPrivateIpAddresses
AssignPrivateIpAddressesRequest & WithPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
Definition: AssignPrivateIpAddressesRequest.h:160
Aws::EC2::Model::AssignPrivateIpAddressesRequest::AddPrivateIpAddresses
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(const Aws::String &value)
Definition: AssignPrivateIpAddressesRequest.h:168