AWS SDK for C++  1.7.243
AWS SDK for C++
AssociateVpcCidrBlockRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 
16 #pragma once
17 #include <aws/ec2/EC2_EXPORTS.h>
18 #include <aws/ec2/EC2Request.h>
20 #include <utility>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35 
36  // Service request name is the Operation name which will send this request out,
37  // each operation should has unique request name, so that we can get operation's name from this request.
38  // Note: this is not true for response, multiple operations may have the same response name,
39  // so we can not get operation's name from response.
40  inline virtual const char* GetServiceRequestName() const override { return "AssociateVpcCidrBlock"; }
41 
42  Aws::String SerializePayload() const override;
43 
44  protected:
45  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
46 
47  public:
48 
54  inline bool GetAmazonProvidedIpv6CidrBlock() const{ return m_amazonProvidedIpv6CidrBlock; }
55 
61  inline bool AmazonProvidedIpv6CidrBlockHasBeenSet() const { return m_amazonProvidedIpv6CidrBlockHasBeenSet; }
62 
68  inline void SetAmazonProvidedIpv6CidrBlock(bool value) { m_amazonProvidedIpv6CidrBlockHasBeenSet = true; m_amazonProvidedIpv6CidrBlock = value; }
69 
75  inline AssociateVpcCidrBlockRequest& WithAmazonProvidedIpv6CidrBlock(bool value) { SetAmazonProvidedIpv6CidrBlock(value); return *this;}
76 
77 
81  inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
82 
86  inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
87 
91  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
92 
96  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
97 
101  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
102 
106  inline AssociateVpcCidrBlockRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
107 
111  inline AssociateVpcCidrBlockRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
112 
116  inline AssociateVpcCidrBlockRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
117 
118 
122  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
123 
127  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
128 
132  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
133 
137  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
138 
142  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
143 
147  inline AssociateVpcCidrBlockRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
148 
152  inline AssociateVpcCidrBlockRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
153 
157  inline AssociateVpcCidrBlockRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
158 
159 
167  inline const Aws::String& GetIpv6CidrBlockNetworkBorderGroup() const{ return m_ipv6CidrBlockNetworkBorderGroup; }
168 
176  inline bool Ipv6CidrBlockNetworkBorderGroupHasBeenSet() const { return m_ipv6CidrBlockNetworkBorderGroupHasBeenSet; }
177 
185  inline void SetIpv6CidrBlockNetworkBorderGroup(const Aws::String& value) { m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = true; m_ipv6CidrBlockNetworkBorderGroup = value; }
186 
194  inline void SetIpv6CidrBlockNetworkBorderGroup(Aws::String&& value) { m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = true; m_ipv6CidrBlockNetworkBorderGroup = std::move(value); }
195 
203  inline void SetIpv6CidrBlockNetworkBorderGroup(const char* value) { m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = true; m_ipv6CidrBlockNetworkBorderGroup.assign(value); }
204 
212  inline AssociateVpcCidrBlockRequest& WithIpv6CidrBlockNetworkBorderGroup(const Aws::String& value) { SetIpv6CidrBlockNetworkBorderGroup(value); return *this;}
213 
221  inline AssociateVpcCidrBlockRequest& WithIpv6CidrBlockNetworkBorderGroup(Aws::String&& value) { SetIpv6CidrBlockNetworkBorderGroup(std::move(value)); return *this;}
222 
230  inline AssociateVpcCidrBlockRequest& WithIpv6CidrBlockNetworkBorderGroup(const char* value) { SetIpv6CidrBlockNetworkBorderGroup(value); return *this;}
231 
232  private:
233 
234  bool m_amazonProvidedIpv6CidrBlock;
235  bool m_amazonProvidedIpv6CidrBlockHasBeenSet;
236 
237  Aws::String m_cidrBlock;
238  bool m_cidrBlockHasBeenSet;
239 
240  Aws::String m_vpcId;
241  bool m_vpcIdHasBeenSet;
242 
243  Aws::String m_ipv6CidrBlockNetworkBorderGroup;
244  bool m_ipv6CidrBlockNetworkBorderGroupHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace EC2
249 } // namespace Aws
AssociateVpcCidrBlockRequest & WithIpv6CidrBlockNetworkBorderGroup(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AssociateVpcCidrBlockRequest & WithAmazonProvidedIpv6CidrBlock(bool value)
AssociateVpcCidrBlockRequest & WithCidrBlock(const Aws::String &value)
AssociateVpcCidrBlockRequest & WithIpv6CidrBlockNetworkBorderGroup(Aws::String &&value)
AssociateVpcCidrBlockRequest & WithCidrBlock(const char *value)
void SetIpv6CidrBlockNetworkBorderGroup(const Aws::String &value)
AssociateVpcCidrBlockRequest & WithCidrBlock(Aws::String &&value)
AssociateVpcCidrBlockRequest & WithIpv6CidrBlockNetworkBorderGroup(const char *value)
AssociateVpcCidrBlockRequest & WithVpcId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:107
AssociateVpcCidrBlockRequest & WithVpcId(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:38
AssociateVpcCidrBlockRequest & WithVpcId(const Aws::String &value)