AWS SDK for C++  1.8.7
AWS SDK for C++
AssociateVpcCidrBlockRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AssociateVpcCidrBlock"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
44  inline bool GetAmazonProvidedIpv6CidrBlock() const{ return m_amazonProvidedIpv6CidrBlock; }
45 
51  inline bool AmazonProvidedIpv6CidrBlockHasBeenSet() const { return m_amazonProvidedIpv6CidrBlockHasBeenSet; }
52 
58  inline void SetAmazonProvidedIpv6CidrBlock(bool value) { m_amazonProvidedIpv6CidrBlockHasBeenSet = true; m_amazonProvidedIpv6CidrBlock = value; }
59 
65  inline AssociateVpcCidrBlockRequest& WithAmazonProvidedIpv6CidrBlock(bool value) { SetAmazonProvidedIpv6CidrBlock(value); return *this;}
66 
67 
71  inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
72 
76  inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
77 
81  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
82 
86  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
87 
91  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
92 
96  inline AssociateVpcCidrBlockRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
97 
101  inline AssociateVpcCidrBlockRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
102 
106  inline AssociateVpcCidrBlockRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
107 
108 
112  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
113 
117  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
118 
122  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
123 
127  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
128 
132  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
133 
137  inline AssociateVpcCidrBlockRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
138 
142  inline AssociateVpcCidrBlockRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
143 
147  inline AssociateVpcCidrBlockRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
148 
149 
157  inline const Aws::String& GetIpv6CidrBlockNetworkBorderGroup() const{ return m_ipv6CidrBlockNetworkBorderGroup; }
158 
166  inline bool Ipv6CidrBlockNetworkBorderGroupHasBeenSet() const { return m_ipv6CidrBlockNetworkBorderGroupHasBeenSet; }
167 
175  inline void SetIpv6CidrBlockNetworkBorderGroup(const Aws::String& value) { m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = true; m_ipv6CidrBlockNetworkBorderGroup = value; }
176 
184  inline void SetIpv6CidrBlockNetworkBorderGroup(Aws::String&& value) { m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = true; m_ipv6CidrBlockNetworkBorderGroup = std::move(value); }
185 
193  inline void SetIpv6CidrBlockNetworkBorderGroup(const char* value) { m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = true; m_ipv6CidrBlockNetworkBorderGroup.assign(value); }
194 
202  inline AssociateVpcCidrBlockRequest& WithIpv6CidrBlockNetworkBorderGroup(const Aws::String& value) { SetIpv6CidrBlockNetworkBorderGroup(value); return *this;}
203 
211  inline AssociateVpcCidrBlockRequest& WithIpv6CidrBlockNetworkBorderGroup(Aws::String&& value) { SetIpv6CidrBlockNetworkBorderGroup(std::move(value)); return *this;}
212 
220  inline AssociateVpcCidrBlockRequest& WithIpv6CidrBlockNetworkBorderGroup(const char* value) { SetIpv6CidrBlockNetworkBorderGroup(value); return *this;}
221 
222 
227  inline const Aws::String& GetIpv6Pool() const{ return m_ipv6Pool; }
228 
233  inline bool Ipv6PoolHasBeenSet() const { return m_ipv6PoolHasBeenSet; }
234 
239  inline void SetIpv6Pool(const Aws::String& value) { m_ipv6PoolHasBeenSet = true; m_ipv6Pool = value; }
240 
245  inline void SetIpv6Pool(Aws::String&& value) { m_ipv6PoolHasBeenSet = true; m_ipv6Pool = std::move(value); }
246 
251  inline void SetIpv6Pool(const char* value) { m_ipv6PoolHasBeenSet = true; m_ipv6Pool.assign(value); }
252 
257  inline AssociateVpcCidrBlockRequest& WithIpv6Pool(const Aws::String& value) { SetIpv6Pool(value); return *this;}
258 
263  inline AssociateVpcCidrBlockRequest& WithIpv6Pool(Aws::String&& value) { SetIpv6Pool(std::move(value)); return *this;}
264 
269  inline AssociateVpcCidrBlockRequest& WithIpv6Pool(const char* value) { SetIpv6Pool(value); return *this;}
270 
271 
277  inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
278 
284  inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
285 
291  inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
292 
298  inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
299 
305  inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
306 
312  inline AssociateVpcCidrBlockRequest& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
313 
319  inline AssociateVpcCidrBlockRequest& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
320 
326  inline AssociateVpcCidrBlockRequest& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
327 
328  private:
329 
330  bool m_amazonProvidedIpv6CidrBlock;
331  bool m_amazonProvidedIpv6CidrBlockHasBeenSet;
332 
333  Aws::String m_cidrBlock;
334  bool m_cidrBlockHasBeenSet;
335 
336  Aws::String m_vpcId;
337  bool m_vpcIdHasBeenSet;
338 
339  Aws::String m_ipv6CidrBlockNetworkBorderGroup;
340  bool m_ipv6CidrBlockNetworkBorderGroupHasBeenSet;
341 
342  Aws::String m_ipv6Pool;
343  bool m_ipv6PoolHasBeenSet;
344 
345  Aws::String m_ipv6CidrBlock;
346  bool m_ipv6CidrBlockHasBeenSet;
347  };
348 
349 } // namespace Model
350 } // namespace EC2
351 } // namespace Aws
AssociateVpcCidrBlockRequest & WithIpv6CidrBlockNetworkBorderGroup(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AssociateVpcCidrBlockRequest & WithIpv6CidrBlock(Aws::String &&value)
AssociateVpcCidrBlockRequest & WithAmazonProvidedIpv6CidrBlock(bool value)
AssociateVpcCidrBlockRequest & WithCidrBlock(const Aws::String &value)
AssociateVpcCidrBlockRequest & WithIpv6CidrBlockNetworkBorderGroup(Aws::String &&value)
AssociateVpcCidrBlockRequest & WithCidrBlock(const char *value)
AssociateVpcCidrBlockRequest & WithIpv6CidrBlock(const Aws::String &value)
void SetIpv6CidrBlockNetworkBorderGroup(const Aws::String &value)
AssociateVpcCidrBlockRequest & WithCidrBlock(Aws::String &&value)
AssociateVpcCidrBlockRequest & WithIpv6CidrBlockNetworkBorderGroup(const char *value)
AssociateVpcCidrBlockRequest & WithIpv6CidrBlock(const char *value)
AssociateVpcCidrBlockRequest & WithVpcId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AssociateVpcCidrBlockRequest & WithIpv6Pool(const Aws::String &value)
AssociateVpcCidrBlockRequest & WithVpcId(Aws::String &&value)
AssociateVpcCidrBlockRequest & WithIpv6Pool(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AssociateVpcCidrBlockRequest & WithIpv6Pool(const char *value)
AssociateVpcCidrBlockRequest & WithVpcId(const Aws::String &value)