AWS SDK for C++  1.9.15
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 
124  inline int GetSize() const{ return m_size; }
125 
136  inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
137 
148  inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
149 
160  inline ModifyVolumeRequest& WithSize(int value) { SetSize(value); return *this;}
161 
162 
169  inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
170 
177  inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
178 
185  inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
186 
193  inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
194 
201  inline ModifyVolumeRequest& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
202 
209  inline ModifyVolumeRequest& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
210 
211 
221  inline int GetIops() const{ return m_iops; }
222 
232  inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
233 
243  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
244 
254  inline ModifyVolumeRequest& WithIops(int value) { SetIops(value); return *this;}
255 
256 
263  inline int GetThroughput() const{ return m_throughput; }
264 
271  inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
272 
279  inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
280 
287  inline ModifyVolumeRequest& WithThroughput(int value) { SetThroughput(value); return *this;}
288 
289 
301  inline bool GetMultiAttachEnabled() const{ return m_multiAttachEnabled; }
302 
314  inline bool MultiAttachEnabledHasBeenSet() const { return m_multiAttachEnabledHasBeenSet; }
315 
327  inline void SetMultiAttachEnabled(bool value) { m_multiAttachEnabledHasBeenSet = true; m_multiAttachEnabled = value; }
328 
340  inline ModifyVolumeRequest& WithMultiAttachEnabled(bool value) { SetMultiAttachEnabled(value); return *this;}
341 
342  private:
343 
344  bool m_dryRun;
345  bool m_dryRunHasBeenSet;
346 
347  Aws::String m_volumeId;
348  bool m_volumeIdHasBeenSet;
349 
350  int m_size;
351  bool m_sizeHasBeenSet;
352 
353  VolumeType m_volumeType;
354  bool m_volumeTypeHasBeenSet;
355 
356  int m_iops;
357  bool m_iopsHasBeenSet;
358 
359  int m_throughput;
360  bool m_throughputHasBeenSet;
361 
362  bool m_multiAttachEnabled;
363  bool m_multiAttachEnabledHasBeenSet;
364  };
365 
366 } // namespace Model
367 } // namespace EC2
368 } // namespace Aws
Aws::EC2::Model::ModifyVolumeRequest::SetVolumeType
void SetVolumeType(const VolumeType &value)
Definition: ModifyVolumeRequest.h:185
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:243
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyVolumeRequest::WithSize
ModifyVolumeRequest & WithSize(int value)
Definition: ModifyVolumeRequest.h:160
Aws::EC2::Model::ModifyVolumeRequest::ThroughputHasBeenSet
bool ThroughputHasBeenSet() const
Definition: ModifyVolumeRequest.h:271
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:327
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:124
Aws::EC2::Model::ModifyVolumeRequest::IopsHasBeenSet
bool IopsHasBeenSet() const
Definition: ModifyVolumeRequest.h:232
Aws::EC2::Model::ModifyVolumeRequest::GetMultiAttachEnabled
bool GetMultiAttachEnabled() const
Definition: ModifyVolumeRequest.h:301
Aws::EC2::Model::ModifyVolumeRequest::SetThroughput
void SetThroughput(int value)
Definition: ModifyVolumeRequest.h:279
Aws::EC2::Model::ModifyVolumeRequest::WithVolumeType
ModifyVolumeRequest & WithVolumeType(const VolumeType &value)
Definition: ModifyVolumeRequest.h:201
Aws::EC2::Model::ModifyVolumeRequest::WithVolumeType
ModifyVolumeRequest & WithVolumeType(VolumeType &&value)
Definition: ModifyVolumeRequest.h:209
Aws::EC2::Model::ModifyVolumeRequest::GetIops
int GetIops() const
Definition: ModifyVolumeRequest.h:221
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:177
Aws::EC2::Model::ModifyVolumeRequest::WithMultiAttachEnabled
ModifyVolumeRequest & WithMultiAttachEnabled(bool value)
Definition: ModifyVolumeRequest.h:340
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:193
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:169
AWSString.h
Aws::EC2::Model::ModifyVolumeRequest::MultiAttachEnabledHasBeenSet
bool MultiAttachEnabledHasBeenSet() const
Definition: ModifyVolumeRequest.h:314
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:136
Aws::EC2::Model::ModifyVolumeRequest::GetThroughput
int GetThroughput() const
Definition: ModifyVolumeRequest.h:263
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:148
Aws::EC2::Model::ModifyVolumeRequest::WithThroughput
ModifyVolumeRequest & WithThroughput(int value)
Definition: ModifyVolumeRequest.h:287
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