AWS SDK for C++  1.9.16
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 
135  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
136 
140  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
141 
145  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
146 
150  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
151 
155  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
156 
160  inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
161 
165  inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
166 
170  inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
171 
172  private:
173 
174  int m_ipv6AddressCount;
175  bool m_ipv6AddressCountHasBeenSet;
176 
177  Aws::Vector<Aws::String> m_ipv6Addresses;
178  bool m_ipv6AddressesHasBeenSet;
179 
180  Aws::String m_networkInterfaceId;
181  bool m_networkInterfaceIdHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace EC2
186 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
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::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: AssignIpv6AddressesRequest.h:155
Aws::EC2::Model::AssignIpv6AddressesRequest::SetIpv6Addresses
void SetIpv6Addresses(Aws::Vector< Aws::String > &&value)
Definition: AssignIpv6AddressesRequest.h:99
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::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:160
AWSVector.h
Aws::EC2::Model::AssignIpv6AddressesRequest::WithNetworkInterfaceId
AssignIpv6AddressesRequest & WithNetworkInterfaceId(const char *value)
Definition: AssignIpv6AddressesRequest.h:170
Aws::EC2::Model::AssignIpv6AddressesRequest::WithIpv6Addresses
AssignIpv6AddressesRequest & WithIpv6Addresses(const Aws::Vector< Aws::String > &value)
Definition: AssignIpv6AddressesRequest.h:105
Aws::EC2::Model::AssignIpv6AddressesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssignIpv6AddressesRequest.h:31
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:145
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::AssignIpv6AddressesRequest
AssignIpv6AddressesRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssignIpv6AddressesRequest::WithNetworkInterfaceId
AssignIpv6AddressesRequest & WithNetworkInterfaceId(Aws::String &&value)
Definition: AssignIpv6AddressesRequest.h:165
Aws::EC2::Model::AssignIpv6AddressesRequest::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: AssignIpv6AddressesRequest.h:140
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:150
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:135
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
EC2_EXPORTS.h
Aws::EC2::Model::AssignIpv6AddressesRequest
Definition: AssignIpv6AddressesRequest.h:23