AWS SDK for C++  1.9.69
AWS SDK for C++
ModifyVolumeRequest.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 "ModifyVolume"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline ModifyVolumeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
76  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
77 
81  inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
82 
86  inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
87 
91  inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
92 
96  inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
97 
101  inline ModifyVolumeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
102 
106  inline ModifyVolumeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
107 
111  inline ModifyVolumeRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
112 
113 
123  inline int GetSize() const{ return m_size; }
124 
134  inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
135 
145  inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
146 
156  inline ModifyVolumeRequest& WithSize(int value) { SetSize(value); return *this;}
157 
158 
165  inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
166 
173  inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
174 
181  inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
182 
189  inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
190 
197  inline ModifyVolumeRequest& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
198 
205  inline ModifyVolumeRequest& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
206 
207 
218  inline int GetIops() const{ return m_iops; }
219 
230  inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
231 
242  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
243 
254  inline ModifyVolumeRequest& WithIops(int value) { SetIops(value); return *this;}
255 
256 
264  inline int GetThroughput() const{ return m_throughput; }
265 
273  inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
274 
282  inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
283 
291  inline ModifyVolumeRequest& WithThroughput(int value) { SetThroughput(value); return *this;}
292 
293 
305  inline bool GetMultiAttachEnabled() const{ return m_multiAttachEnabled; }
306 
318  inline bool MultiAttachEnabledHasBeenSet() const { return m_multiAttachEnabledHasBeenSet; }
319 
331  inline void SetMultiAttachEnabled(bool value) { m_multiAttachEnabledHasBeenSet = true; m_multiAttachEnabled = value; }
332 
344  inline ModifyVolumeRequest& WithMultiAttachEnabled(bool value) { SetMultiAttachEnabled(value); return *this;}
345 
346  private:
347 
348  bool m_dryRun;
349  bool m_dryRunHasBeenSet;
350 
351  Aws::String m_volumeId;
352  bool m_volumeIdHasBeenSet;
353 
354  int m_size;
355  bool m_sizeHasBeenSet;
356 
357  VolumeType m_volumeType;
358  bool m_volumeTypeHasBeenSet;
359 
360  int m_iops;
361  bool m_iopsHasBeenSet;
362 
363  int m_throughput;
364  bool m_throughputHasBeenSet;
365 
366  bool m_multiAttachEnabled;
367  bool m_multiAttachEnabledHasBeenSet;
368  };
369 
370 } // namespace Model
371 } // namespace EC2
372 } // namespace Aws
Aws::EC2::Model::ModifyVolumeRequest::SetVolumeType
void SetVolumeType(const VolumeType &value)
Definition: ModifyVolumeRequest.h:181
Aws::EC2::Model::ModifyVolumeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyVolumeRequest.h:54
Aws::EC2::Model::ModifyVolumeRequest::WithDryRun
ModifyVolumeRequest & WithDryRun(bool value)
Definition: ModifyVolumeRequest.h:70
Aws::EC2::Model::ModifyVolumeRequest::WithIops
ModifyVolumeRequest & WithIops(int value)
Definition: ModifyVolumeRequest.h:254
Aws::EC2::Model::ModifyVolumeRequest::SetIops
void SetIops(int value)
Definition: ModifyVolumeRequest.h:242
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyVolumeRequest::WithSize
ModifyVolumeRequest & WithSize(int value)
Definition: ModifyVolumeRequest.h:156
Aws::EC2::Model::ModifyVolumeRequest::ThroughputHasBeenSet
bool ThroughputHasBeenSet() const
Definition: ModifyVolumeRequest.h:273
Aws::EC2::Model::ModifyVolumeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyVolumeRequest.h:31
Aws::EC2::Model::ModifyVolumeRequest::SetMultiAttachEnabled
void SetMultiAttachEnabled(bool value)
Definition: ModifyVolumeRequest.h:331
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
VolumeType.h
Aws::EC2::Model::ModifyVolumeRequest::VolumeIdHasBeenSet
bool VolumeIdHasBeenSet() const
Definition: ModifyVolumeRequest.h:81
Aws::EC2::Model::ModifyVolumeRequest::GetSize
int GetSize() const
Definition: ModifyVolumeRequest.h:123
Aws::EC2::Model::ModifyVolumeRequest::IopsHasBeenSet
bool IopsHasBeenSet() const
Definition: ModifyVolumeRequest.h:230
Aws::EC2::Model::ModifyVolumeRequest::GetMultiAttachEnabled
bool GetMultiAttachEnabled() const
Definition: ModifyVolumeRequest.h:305
Aws::EC2::Model::ModifyVolumeRequest::SetThroughput
void SetThroughput(int value)
Definition: ModifyVolumeRequest.h:282
Aws::EC2::Model::ModifyVolumeRequest::WithVolumeType
ModifyVolumeRequest & WithVolumeType(const VolumeType &value)
Definition: ModifyVolumeRequest.h:197
Aws::EC2::Model::ModifyVolumeRequest::WithVolumeType
ModifyVolumeRequest & WithVolumeType(VolumeType &&value)
Definition: ModifyVolumeRequest.h:205
Aws::EC2::Model::ModifyVolumeRequest::GetIops
int GetIops() const
Definition: ModifyVolumeRequest.h:218
Aws::EC2::Model::ModifyVolumeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyVolumeRequest::WithVolumeId
ModifyVolumeRequest & WithVolumeId(Aws::String &&value)
Definition: ModifyVolumeRequest.h:106
Aws::EC2::Model::VolumeType
VolumeType
Definition: VolumeType.h:17
Aws::EC2::Model::ModifyVolumeRequest::VolumeTypeHasBeenSet
bool VolumeTypeHasBeenSet() const
Definition: ModifyVolumeRequest.h:173
Aws::EC2::Model::ModifyVolumeRequest::WithMultiAttachEnabled
ModifyVolumeRequest & WithMultiAttachEnabled(bool value)
Definition: ModifyVolumeRequest.h:344
Aws::EC2::Model::ModifyVolumeRequest::WithVolumeId
ModifyVolumeRequest & WithVolumeId(const char *value)
Definition: ModifyVolumeRequest.h:111
Aws::EC2::Model::ModifyVolumeRequest::WithVolumeId
ModifyVolumeRequest & WithVolumeId(const Aws::String &value)
Definition: ModifyVolumeRequest.h:101
Aws::EC2::Model::ModifyVolumeRequest::SetVolumeType
void SetVolumeType(VolumeType &&value)
Definition: ModifyVolumeRequest.h:189
Aws::EC2::Model::ModifyVolumeRequest::SetVolumeId
void SetVolumeId(const Aws::String &value)
Definition: ModifyVolumeRequest.h:86
EC2Request.h
Aws::EC2::Model::ModifyVolumeRequest::GetVolumeType
const VolumeType & GetVolumeType() const
Definition: ModifyVolumeRequest.h:165
AWSString.h
Aws::EC2::Model::ModifyVolumeRequest::MultiAttachEnabledHasBeenSet
bool MultiAttachEnabledHasBeenSet() const
Definition: ModifyVolumeRequest.h:318
Aws::EC2::Model::ModifyVolumeRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyVolumeRequest.h:46
Aws::EC2::Model::ModifyVolumeRequest::SetVolumeId
void SetVolumeId(const char *value)
Definition: ModifyVolumeRequest.h:96
Aws::EC2::Model::ModifyVolumeRequest::SizeHasBeenSet
bool SizeHasBeenSet() const
Definition: ModifyVolumeRequest.h:134
Aws::EC2::Model::ModifyVolumeRequest::GetThroughput
int GetThroughput() const
Definition: ModifyVolumeRequest.h:264
Aws::EC2::Model::ModifyVolumeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyVolumeRequest::SetSize
void SetSize(int value)
Definition: ModifyVolumeRequest.h:145
Aws::EC2::Model::ModifyVolumeRequest::WithThroughput
ModifyVolumeRequest & WithThroughput(int value)
Definition: ModifyVolumeRequest.h:291
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::ModifyVolumeRequest
Definition: ModifyVolumeRequest.h:23
Aws::EC2::Model::ModifyVolumeRequest::ModifyVolumeRequest
ModifyVolumeRequest()
EC2_EXPORTS.h
Aws::EC2::Model::ModifyVolumeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyVolumeRequest.h:62
Aws::EC2::Model::ModifyVolumeRequest::SetVolumeId
void SetVolumeId(Aws::String &&value)
Definition: ModifyVolumeRequest.h:91
Aws::EC2::Model::ModifyVolumeRequest::GetVolumeId
const Aws::String & GetVolumeId() const
Definition: ModifyVolumeRequest.h:76