AWS SDK for C++  0.12.9
AWS SDK for C++
CreateVpcRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 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 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
19 #include <aws/ec2/model/Tenancy.h>
20 
21 namespace Aws
22 {
23 namespace EC2
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
43  inline bool GetDryRun() const{ return m_dryRun; }
44 
51  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 
59  inline CreateVpcRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
60 
65  inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
66 
71  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
72 
77  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
78 
83  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
84 
89  inline CreateVpcRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
90 
95  inline CreateVpcRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(value); return *this;}
96 
101  inline CreateVpcRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
102 
114  inline const Tenancy& GetInstanceTenancy() const{ return m_instanceTenancy; }
115 
127  inline void SetInstanceTenancy(const Tenancy& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = value; }
128 
140  inline void SetInstanceTenancy(Tenancy&& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = value; }
141 
153  inline CreateVpcRequest& WithInstanceTenancy(const Tenancy& value) { SetInstanceTenancy(value); return *this;}
154 
166  inline CreateVpcRequest& WithInstanceTenancy(Tenancy&& value) { SetInstanceTenancy(value); return *this;}
167 
168  private:
169  bool m_dryRun;
170  bool m_dryRunHasBeenSet;
171  Aws::String m_cidrBlock;
172  bool m_cidrBlockHasBeenSet;
173  Tenancy m_instanceTenancy;
174  bool m_instanceTenancyHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace EC2
179 } // namespace Aws
CreateVpcRequest & WithDryRun(bool value)
CreateVpcRequest & WithInstanceTenancy(const Tenancy &value)
void SetCidrBlock(const char *value)
void SetInstanceTenancy(Tenancy &&value)
CreateVpcRequest & WithCidrBlock(const Aws::String &value)
CreateVpcRequest & WithInstanceTenancy(Tenancy &&value)
const Tenancy & GetInstanceTenancy() const
CreateVpcRequest & WithCidrBlock(Aws::String &&value)
const Aws::String & GetCidrBlock() const
void SetCidrBlock(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCidrBlock(const Aws::String &value)
CreateVpcRequest & WithCidrBlock(const char *value)
void SetInstanceTenancy(const Tenancy &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).