AWS SDK for C++  1.9.70
AWS SDK for C++
ModifyVpcTenancyRequest.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 "ModifyVpcTenancy"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
44 
48  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
49 
53  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
54 
58  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
59 
63  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
64 
68  inline ModifyVpcTenancyRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
69 
73  inline ModifyVpcTenancyRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
74 
78  inline ModifyVpcTenancyRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
79 
80 
84  inline const VpcTenancy& GetInstanceTenancy() const{ return m_instanceTenancy; }
85 
89  inline bool InstanceTenancyHasBeenSet() const { return m_instanceTenancyHasBeenSet; }
90 
94  inline void SetInstanceTenancy(const VpcTenancy& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = value; }
95 
99  inline void SetInstanceTenancy(VpcTenancy&& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = std::move(value); }
100 
104  inline ModifyVpcTenancyRequest& WithInstanceTenancy(const VpcTenancy& value) { SetInstanceTenancy(value); return *this;}
105 
109  inline ModifyVpcTenancyRequest& WithInstanceTenancy(VpcTenancy&& value) { SetInstanceTenancy(std::move(value)); return *this;}
110 
111 
118  inline bool GetDryRun() const{ return m_dryRun; }
119 
126  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
127 
134  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
135 
142  inline ModifyVpcTenancyRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
143 
144  private:
145 
146  Aws::String m_vpcId;
147  bool m_vpcIdHasBeenSet;
148 
149  VpcTenancy m_instanceTenancy;
150  bool m_instanceTenancyHasBeenSet;
151 
152  bool m_dryRun;
153  bool m_dryRunHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace EC2
158 } // namespace Aws
Aws::EC2::Model::ModifyVpcTenancyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyVpcTenancyRequest::InstanceTenancyHasBeenSet
bool InstanceTenancyHasBeenSet() const
Definition: ModifyVpcTenancyRequest.h:89
Aws::EC2::Model::ModifyVpcTenancyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyVpcTenancyRequest.h:31
Aws::EC2::Model::VpcTenancy
VpcTenancy
Definition: VpcTenancy.h:17
Aws::EC2::Model::ModifyVpcTenancyRequest::SetVpcId
void SetVpcId(const char *value)
Definition: ModifyVpcTenancyRequest.h:63
Aws::EC2::Model::ModifyVpcTenancyRequest::WithVpcId
ModifyVpcTenancyRequest & WithVpcId(const char *value)
Definition: ModifyVpcTenancyRequest.h:78
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyVpcTenancyRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: ModifyVpcTenancyRequest.h:53
VpcTenancy.h
Aws::EC2::Model::ModifyVpcTenancyRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyVpcTenancyRequest.h:134
Aws::EC2::Model::ModifyVpcTenancyRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyVpcTenancyRequest.h:126
Aws::EC2::Model::ModifyVpcTenancyRequest::WithInstanceTenancy
ModifyVpcTenancyRequest & WithInstanceTenancy(const VpcTenancy &value)
Definition: ModifyVpcTenancyRequest.h:104
Aws::EC2::Model::ModifyVpcTenancyRequest::SetInstanceTenancy
void SetInstanceTenancy(VpcTenancy &&value)
Definition: ModifyVpcTenancyRequest.h:99
Aws::EC2::Model::ModifyVpcTenancyRequest::GetInstanceTenancy
const VpcTenancy & GetInstanceTenancy() const
Definition: ModifyVpcTenancyRequest.h:84
EC2Request.h
Aws::EC2::Model::ModifyVpcTenancyRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyVpcTenancyRequest.h:118
Aws::EC2::Model::ModifyVpcTenancyRequest::WithVpcId
ModifyVpcTenancyRequest & WithVpcId(Aws::String &&value)
Definition: ModifyVpcTenancyRequest.h:73
Aws::EC2::Model::ModifyVpcTenancyRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: ModifyVpcTenancyRequest.h:48
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyVpcTenancyRequest::WithVpcId
ModifyVpcTenancyRequest & WithVpcId(const Aws::String &value)
Definition: ModifyVpcTenancyRequest.h:68
Aws::EC2::Model::ModifyVpcTenancyRequest::SetInstanceTenancy
void SetInstanceTenancy(const VpcTenancy &value)
Definition: ModifyVpcTenancyRequest.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyVpcTenancyRequest::WithInstanceTenancy
ModifyVpcTenancyRequest & WithInstanceTenancy(VpcTenancy &&value)
Definition: ModifyVpcTenancyRequest.h:109
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyVpcTenancyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyVpcTenancyRequest::WithDryRun
ModifyVpcTenancyRequest & WithDryRun(bool value)
Definition: ModifyVpcTenancyRequest.h:142
Aws::EC2::Model::ModifyVpcTenancyRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: ModifyVpcTenancyRequest.h:43
EC2_EXPORTS.h
Aws::EC2::Model::ModifyVpcTenancyRequest
Definition: ModifyVpcTenancyRequest.h:23
Aws::EC2::Model::ModifyVpcTenancyRequest::ModifyVpcTenancyRequest
ModifyVpcTenancyRequest()
Aws::EC2::Model::ModifyVpcTenancyRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: ModifyVpcTenancyRequest.h:58