AWS SDK for C++  1.9.66
AWS SDK for C++
AssignIpv6AddressesRequest.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 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "AssignIpv6Addresses"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
47  inline int GetIpv6AddressCount() const{ return m_ipv6AddressCount; }
48 
56  inline bool Ipv6AddressCountHasBeenSet() const { return m_ipv6AddressCountHasBeenSet; }
57 
65  inline void SetIpv6AddressCount(int value) { m_ipv6AddressCountHasBeenSet = true; m_ipv6AddressCount = value; }
66 
74  inline AssignIpv6AddressesRequest& WithIpv6AddressCount(int value) { SetIpv6AddressCount(value); return *this;}
75 
76 
81  inline const Aws::Vector<Aws::String>& GetIpv6Addresses() const{ return m_ipv6Addresses; }
82 
87  inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
88 
93  inline void SetIpv6Addresses(const Aws::Vector<Aws::String>& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; }
94 
99  inline void SetIpv6Addresses(Aws::Vector<Aws::String>&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); }
100 
105  inline AssignIpv6AddressesRequest& WithIpv6Addresses(const Aws::Vector<Aws::String>& value) { SetIpv6Addresses(value); return *this;}
106 
111  inline AssignIpv6AddressesRequest& WithIpv6Addresses(Aws::Vector<Aws::String>&& value) { SetIpv6Addresses(std::move(value)); return *this;}
112 
117  inline AssignIpv6AddressesRequest& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
118 
123  inline AssignIpv6AddressesRequest& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; }
124 
129  inline AssignIpv6AddressesRequest& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
130 
131 
137  inline int GetIpv6PrefixCount() const{ return m_ipv6PrefixCount; }
138 
144  inline bool Ipv6PrefixCountHasBeenSet() const { return m_ipv6PrefixCountHasBeenSet; }
145 
151  inline void SetIpv6PrefixCount(int value) { m_ipv6PrefixCountHasBeenSet = true; m_ipv6PrefixCount = value; }
152 
158  inline AssignIpv6AddressesRequest& WithIpv6PrefixCount(int value) { SetIpv6PrefixCount(value); return *this;}
159 
160 
166  inline const Aws::Vector<Aws::String>& GetIpv6Prefixes() const{ return m_ipv6Prefixes; }
167 
173  inline bool Ipv6PrefixesHasBeenSet() const { return m_ipv6PrefixesHasBeenSet; }
174 
180  inline void SetIpv6Prefixes(const Aws::Vector<Aws::String>& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes = value; }
181 
187  inline void SetIpv6Prefixes(Aws::Vector<Aws::String>&& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes = std::move(value); }
188 
194  inline AssignIpv6AddressesRequest& WithIpv6Prefixes(const Aws::Vector<Aws::String>& value) { SetIpv6Prefixes(value); return *this;}
195 
201  inline AssignIpv6AddressesRequest& WithIpv6Prefixes(Aws::Vector<Aws::String>&& value) { SetIpv6Prefixes(std::move(value)); return *this;}
202 
208  inline AssignIpv6AddressesRequest& AddIpv6Prefixes(const Aws::String& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(value); return *this; }
209 
215  inline AssignIpv6AddressesRequest& AddIpv6Prefixes(Aws::String&& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(std::move(value)); return *this; }
216 
222  inline AssignIpv6AddressesRequest& AddIpv6Prefixes(const char* value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(value); return *this; }
223 
224 
228  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
229 
233  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
234 
238  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
239 
243  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
244 
248  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
249 
253  inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
254 
258  inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
259 
263  inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
264 
265  private:
266 
267  int m_ipv6AddressCount;
268  bool m_ipv6AddressCountHasBeenSet;
269 
270  Aws::Vector<Aws::String> m_ipv6Addresses;
271  bool m_ipv6AddressesHasBeenSet;
272 
273  int m_ipv6PrefixCount;
274  bool m_ipv6PrefixCountHasBeenSet;
275 
276  Aws::Vector<Aws::String> m_ipv6Prefixes;
277  bool m_ipv6PrefixesHasBeenSet;
278 
279  Aws::String m_networkInterfaceId;
280  bool m_networkInterfaceIdHasBeenSet;
281  };
282 
283 } // namespace Model
284 } // namespace EC2
285 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AssignIpv6AddressesRequest::AddIpv6Prefixes
AssignIpv6AddressesRequest & AddIpv6Prefixes(const Aws::String &value)
Definition: AssignIpv6AddressesRequest.h:208
Aws::EC2::Model::AssignIpv6AddressesRequest::SetIpv6Addresses
void SetIpv6Addresses(const Aws::Vector< Aws::String > &value)
Definition: AssignIpv6AddressesRequest.h:93
Aws::EC2::Model::AssignIpv6AddressesRequest::Ipv6AddressCountHasBeenSet
bool Ipv6AddressCountHasBeenSet() const
Definition: AssignIpv6AddressesRequest.h:56
Aws::EC2::Model::AssignIpv6AddressesRequest::GetIpv6Addresses
const Aws::Vector< Aws::String > & GetIpv6Addresses() const
Definition: AssignIpv6AddressesRequest.h:81
Aws::EC2::Model::AssignIpv6AddressesRequest::SetIpv6PrefixCount
void SetIpv6PrefixCount(int value)
Definition: AssignIpv6AddressesRequest.h:151
Aws::EC2::Model::AssignIpv6AddressesRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: AssignIpv6AddressesRequest.h:248
Aws::EC2::Model::AssignIpv6AddressesRequest::SetIpv6Addresses
void SetIpv6Addresses(Aws::Vector< Aws::String > &&value)
Definition: AssignIpv6AddressesRequest.h:99
Aws::EC2::Model::AssignIpv6AddressesRequest::WithIpv6Prefixes
AssignIpv6AddressesRequest & WithIpv6Prefixes(const Aws::Vector< Aws::String > &value)
Definition: AssignIpv6AddressesRequest.h:194
Aws::EC2::Model::AssignIpv6AddressesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssignIpv6AddressesRequest::WithIpv6PrefixCount
AssignIpv6AddressesRequest & WithIpv6PrefixCount(int value)
Definition: AssignIpv6AddressesRequest.h:158
Aws::EC2::Model::AssignIpv6AddressesRequest::Ipv6PrefixCountHasBeenSet
bool Ipv6PrefixCountHasBeenSet() const
Definition: AssignIpv6AddressesRequest.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::AssignIpv6AddressesRequest::WithNetworkInterfaceId
AssignIpv6AddressesRequest & WithNetworkInterfaceId(const Aws::String &value)
Definition: AssignIpv6AddressesRequest.h:253
AWSVector.h
Aws::EC2::Model::AssignIpv6AddressesRequest::WithNetworkInterfaceId
AssignIpv6AddressesRequest & WithNetworkInterfaceId(const char *value)
Definition: AssignIpv6AddressesRequest.h:263
Aws::EC2::Model::AssignIpv6AddressesRequest::WithIpv6Addresses
AssignIpv6AddressesRequest & WithIpv6Addresses(const Aws::Vector< Aws::String > &value)
Definition: AssignIpv6AddressesRequest.h:105
Aws::EC2::Model::AssignIpv6AddressesRequest::AddIpv6Prefixes
AssignIpv6AddressesRequest & AddIpv6Prefixes(const char *value)
Definition: AssignIpv6AddressesRequest.h:222
Aws::EC2::Model::AssignIpv6AddressesRequest::SetIpv6Prefixes
void SetIpv6Prefixes(Aws::Vector< Aws::String > &&value)
Definition: AssignIpv6AddressesRequest.h:187
Aws::EC2::Model::AssignIpv6AddressesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssignIpv6AddressesRequest.h:31
Aws::EC2::Model::AssignIpv6AddressesRequest::WithIpv6Prefixes
AssignIpv6AddressesRequest & WithIpv6Prefixes(Aws::Vector< Aws::String > &&value)
Definition: AssignIpv6AddressesRequest.h:201
EC2Request.h
Aws::EC2::Model::AssignIpv6AddressesRequest::GetIpv6AddressCount
int GetIpv6AddressCount() const
Definition: AssignIpv6AddressesRequest.h:47
Aws::EC2::Model::AssignIpv6AddressesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AssignIpv6AddressesRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: AssignIpv6AddressesRequest.h:238
Aws::EC2::Model::AssignIpv6AddressesRequest::GetIpv6Prefixes
const Aws::Vector< Aws::String > & GetIpv6Prefixes() const
Definition: AssignIpv6AddressesRequest.h:166
AWSString.h
Aws::EC2::Model::AssignIpv6AddressesRequest::WithIpv6AddressCount
AssignIpv6AddressesRequest & WithIpv6AddressCount(int value)
Definition: AssignIpv6AddressesRequest.h:74
Aws::EC2::Model::AssignIpv6AddressesRequest::AddIpv6Addresses
AssignIpv6AddressesRequest & AddIpv6Addresses(const Aws::String &value)
Definition: AssignIpv6AddressesRequest.h:117
Aws::EC2::Model::AssignIpv6AddressesRequest::AddIpv6Prefixes
AssignIpv6AddressesRequest & AddIpv6Prefixes(Aws::String &&value)
Definition: AssignIpv6AddressesRequest.h:215
Aws::EC2::Model::AssignIpv6AddressesRequest::Ipv6PrefixesHasBeenSet
bool Ipv6PrefixesHasBeenSet() const
Definition: AssignIpv6AddressesRequest.h:173
Aws::EC2::Model::AssignIpv6AddressesRequest::AssignIpv6AddressesRequest
AssignIpv6AddressesRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssignIpv6AddressesRequest::WithNetworkInterfaceId
AssignIpv6AddressesRequest & WithNetworkInterfaceId(Aws::String &&value)
Definition: AssignIpv6AddressesRequest.h:258
Aws::EC2::Model::AssignIpv6AddressesRequest::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: AssignIpv6AddressesRequest.h:233
Aws::EC2::Model::AssignIpv6AddressesRequest::SetIpv6AddressCount
void SetIpv6AddressCount(int value)
Definition: AssignIpv6AddressesRequest.h:65
Aws::EC2::Model::AssignIpv6AddressesRequest::AddIpv6Addresses
AssignIpv6AddressesRequest & AddIpv6Addresses(const char *value)
Definition: AssignIpv6AddressesRequest.h:129
Aws::EC2::Model::AssignIpv6AddressesRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: AssignIpv6AddressesRequest.h:243
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AssignIpv6AddressesRequest::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: AssignIpv6AddressesRequest.h:228
Aws::EC2::Model::AssignIpv6AddressesRequest::WithIpv6Addresses
AssignIpv6AddressesRequest & WithIpv6Addresses(Aws::Vector< Aws::String > &&value)
Definition: AssignIpv6AddressesRequest.h:111
Aws::EC2::Model::AssignIpv6AddressesRequest::Ipv6AddressesHasBeenSet
bool Ipv6AddressesHasBeenSet() const
Definition: AssignIpv6AddressesRequest.h:87
Aws::EC2::Model::AssignIpv6AddressesRequest::AddIpv6Addresses
AssignIpv6AddressesRequest & AddIpv6Addresses(Aws::String &&value)
Definition: AssignIpv6AddressesRequest.h:123
Aws::EC2::Model::AssignIpv6AddressesRequest::GetIpv6PrefixCount
int GetIpv6PrefixCount() const
Definition: AssignIpv6AddressesRequest.h:137
Aws::EC2::Model::AssignIpv6AddressesRequest::SetIpv6Prefixes
void SetIpv6Prefixes(const Aws::Vector< Aws::String > &value)
Definition: AssignIpv6AddressesRequest.h:180
EC2_EXPORTS.h
Aws::EC2::Model::AssignIpv6AddressesRequest
Definition: AssignIpv6AddressesRequest.h:23