AWS SDK for C++  1.9.68
AWS SDK for C++
DescribeVpcAttributeRequest.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 "DescribeVpcAttribute"; }
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 VpcAttributeName& GetAttribute() const{ return m_attribute; }
44 
48  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
49 
53  inline void SetAttribute(const VpcAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
54 
58  inline void SetAttribute(VpcAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
59 
63  inline DescribeVpcAttributeRequest& WithAttribute(const VpcAttributeName& value) { SetAttribute(value); return *this;}
64 
68  inline DescribeVpcAttributeRequest& WithAttribute(VpcAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
69 
70 
74  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
75 
79  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
80 
84  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
85 
89  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
90 
94  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
95 
99  inline DescribeVpcAttributeRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
100 
104  inline DescribeVpcAttributeRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
105 
109  inline DescribeVpcAttributeRequest& WithVpcId(const char* value) { SetVpcId(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 DescribeVpcAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
143 
144  private:
145 
146  VpcAttributeName m_attribute;
147  bool m_attributeHasBeenSet;
148 
149  Aws::String m_vpcId;
150  bool m_vpcIdHasBeenSet;
151 
152  bool m_dryRun;
153  bool m_dryRunHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace EC2
158 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeVpcAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: DescribeVpcAttributeRequest.h:48
Aws::EC2::Model::DescribeVpcAttributeRequest::SetAttribute
void SetAttribute(const VpcAttributeName &value)
Definition: DescribeVpcAttributeRequest.h:53
Aws::EC2::Model::DescribeVpcAttributeRequest::SetAttribute
void SetAttribute(VpcAttributeName &&value)
Definition: DescribeVpcAttributeRequest.h:58
Aws::EC2::Model::DescribeVpcAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeVpcAttributeRequest.h:118
Aws::EC2::Model::DescribeVpcAttributeRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: DescribeVpcAttributeRequest.h:74
Aws::EC2::Model::DescribeVpcAttributeRequest::WithVpcId
DescribeVpcAttributeRequest & WithVpcId(const char *value)
Definition: DescribeVpcAttributeRequest.h:109
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeVpcAttributeRequest::WithAttribute
DescribeVpcAttributeRequest & WithAttribute(const VpcAttributeName &value)
Definition: DescribeVpcAttributeRequest.h:63
Aws::EC2::Model::DescribeVpcAttributeRequest
Definition: DescribeVpcAttributeRequest.h:23
Aws::EC2::Model::DescribeVpcAttributeRequest::WithDryRun
DescribeVpcAttributeRequest & WithDryRun(bool value)
Definition: DescribeVpcAttributeRequest.h:142
Aws::EC2::Model::DescribeVpcAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeVpcAttributeRequest.h:126
Aws::EC2::Model::VpcAttributeName
VpcAttributeName
Definition: VpcAttributeName.h:17
Aws::EC2::Model::DescribeVpcAttributeRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: DescribeVpcAttributeRequest.h:84
Aws::EC2::Model::DescribeVpcAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeVpcAttributeRequest.h:134
Aws::EC2::Model::DescribeVpcAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeVpcAttributeRequest::SetVpcId
void SetVpcId(const char *value)
Definition: DescribeVpcAttributeRequest.h:94
EC2Request.h
Aws::EC2::Model::DescribeVpcAttributeRequest::DescribeVpcAttributeRequest
DescribeVpcAttributeRequest()
AWSString.h
Aws::EC2::Model::DescribeVpcAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeVpcAttributeRequest::GetAttribute
const VpcAttributeName & GetAttribute() const
Definition: DescribeVpcAttributeRequest.h:43
Aws::EC2::Model::DescribeVpcAttributeRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: DescribeVpcAttributeRequest.h:89
Aws::EC2::Model::DescribeVpcAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeVpcAttributeRequest.h:31
Aws::EC2::Model::DescribeVpcAttributeRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: DescribeVpcAttributeRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVpcAttributeRequest::WithVpcId
DescribeVpcAttributeRequest & WithVpcId(const Aws::String &value)
Definition: DescribeVpcAttributeRequest.h:99
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::DescribeVpcAttributeRequest::WithVpcId
DescribeVpcAttributeRequest & WithVpcId(Aws::String &&value)
Definition: DescribeVpcAttributeRequest.h:104
EC2_EXPORTS.h
VpcAttributeName.h
Aws::EC2::Model::DescribeVpcAttributeRequest::WithAttribute
DescribeVpcAttributeRequest & WithAttribute(VpcAttributeName &&value)
Definition: DescribeVpcAttributeRequest.h:68