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