AWS SDK for C++  1.9.107
AWS SDK for C++
ModifyVolumeAttributeRequest.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 "ModifyVolumeAttribute"; }
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 AttributeBooleanValue& GetAutoEnableIO() const{ return m_autoEnableIO; }
44 
48  inline bool AutoEnableIOHasBeenSet() const { return m_autoEnableIOHasBeenSet; }
49 
53  inline void SetAutoEnableIO(const AttributeBooleanValue& value) { m_autoEnableIOHasBeenSet = true; m_autoEnableIO = value; }
54 
58  inline void SetAutoEnableIO(AttributeBooleanValue&& value) { m_autoEnableIOHasBeenSet = true; m_autoEnableIO = std::move(value); }
59 
63  inline ModifyVolumeAttributeRequest& WithAutoEnableIO(const AttributeBooleanValue& value) { SetAutoEnableIO(value); return *this;}
64 
68  inline ModifyVolumeAttributeRequest& WithAutoEnableIO(AttributeBooleanValue&& value) { SetAutoEnableIO(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 ModifyVolumeAttributeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
100 
104  inline ModifyVolumeAttributeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
105 
109  inline ModifyVolumeAttributeRequest& 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 ModifyVolumeAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
143 
144  private:
145 
146  AttributeBooleanValue m_autoEnableIO;
147  bool m_autoEnableIOHasBeenSet;
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
AttributeBooleanValue.h
Aws::EC2::Model::ModifyVolumeAttributeRequest::SetAutoEnableIO
void SetAutoEnableIO(const AttributeBooleanValue &value)
Definition: ModifyVolumeAttributeRequest.h:53
Aws::EC2::Model::ModifyVolumeAttributeRequest::GetVolumeId
const Aws::String & GetVolumeId() const
Definition: ModifyVolumeAttributeRequest.h:74
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyVolumeAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyVolumeAttributeRequest.h:118
Aws::EC2::Model::ModifyVolumeAttributeRequest::WithVolumeId
ModifyVolumeAttributeRequest & WithVolumeId(const char *value)
Definition: ModifyVolumeAttributeRequest.h:109
Aws::EC2::Model::ModifyVolumeAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyVolumeAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyVolumeAttributeRequest.h:126
Aws::EC2::Model::ModifyVolumeAttributeRequest::ModifyVolumeAttributeRequest
ModifyVolumeAttributeRequest()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyVolumeAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyVolumeAttributeRequest.h:134
Aws::EC2::Model::ModifyVolumeAttributeRequest::WithAutoEnableIO
ModifyVolumeAttributeRequest & WithAutoEnableIO(const AttributeBooleanValue &value)
Definition: ModifyVolumeAttributeRequest.h:63
Aws::EC2::Model::ModifyVolumeAttributeRequest::GetAutoEnableIO
const AttributeBooleanValue & GetAutoEnableIO() const
Definition: ModifyVolumeAttributeRequest.h:43
Aws::EC2::Model::ModifyVolumeAttributeRequest::WithDryRun
ModifyVolumeAttributeRequest & WithDryRun(bool value)
Definition: ModifyVolumeAttributeRequest.h:142
Aws::EC2::Model::ModifyVolumeAttributeRequest::AutoEnableIOHasBeenSet
bool AutoEnableIOHasBeenSet() const
Definition: ModifyVolumeAttributeRequest.h:48
Aws::EC2::Model::ModifyVolumeAttributeRequest::SetVolumeId
void SetVolumeId(Aws::String &&value)
Definition: ModifyVolumeAttributeRequest.h:89
Aws::EC2::Model::ModifyVolumeAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyVolumeAttributeRequest::SetVolumeId
void SetVolumeId(const char *value)
Definition: ModifyVolumeAttributeRequest.h:94
Aws::EC2::Model::ModifyVolumeAttributeRequest::VolumeIdHasBeenSet
bool VolumeIdHasBeenSet() const
Definition: ModifyVolumeAttributeRequest.h:79
EC2Request.h
Aws::EC2::Model::ModifyVolumeAttributeRequest::SetAutoEnableIO
void SetAutoEnableIO(AttributeBooleanValue &&value)
Definition: ModifyVolumeAttributeRequest.h:58
AWSString.h
Aws::EC2::Model::ModifyVolumeAttributeRequest::WithVolumeId
ModifyVolumeAttributeRequest & WithVolumeId(const Aws::String &value)
Definition: ModifyVolumeAttributeRequest.h:99
Aws::EC2::Model::ModifyVolumeAttributeRequest::SetVolumeId
void SetVolumeId(const Aws::String &value)
Definition: ModifyVolumeAttributeRequest.h:84
Aws::EC2::Model::AttributeBooleanValue
Definition: AttributeBooleanValue.h:31
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::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyVolumeAttributeRequest::WithVolumeId
ModifyVolumeAttributeRequest & WithVolumeId(Aws::String &&value)
Definition: ModifyVolumeAttributeRequest.h:104
EC2_EXPORTS.h
Aws::EC2::Model::ModifyVolumeAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyVolumeAttributeRequest.h:31
Aws::EC2::Model::ModifyVolumeAttributeRequest::WithAutoEnableIO
ModifyVolumeAttributeRequest & WithAutoEnableIO(AttributeBooleanValue &&value)
Definition: ModifyVolumeAttributeRequest.h:68
Aws::EC2::Model::ModifyVolumeAttributeRequest
Definition: ModifyVolumeAttributeRequest.h:23