AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyVolumeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/VolumeType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EC2_API ModifyVolumeRequest();
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_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
47 inline bool GetDryRun() const{ return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
50 inline ModifyVolumeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
57 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
58 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
59 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
60 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
61 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
62 inline ModifyVolumeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
63 inline ModifyVolumeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
64 inline ModifyVolumeRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
66
68
78 inline int GetSize() const{ return m_size; }
79 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
80 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
81 inline ModifyVolumeRequest& WithSize(int value) { SetSize(value); return *this;}
83
85
91 inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
92 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
93 inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
94 inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
95 inline ModifyVolumeRequest& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
96 inline ModifyVolumeRequest& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
98
100
113 inline int GetIops() const{ return m_iops; }
114 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
115 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
116 inline ModifyVolumeRequest& WithIops(int value) { SetIops(value); return *this;}
118
120
127 inline int GetThroughput() const{ return m_throughput; }
128 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
129 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
130 inline ModifyVolumeRequest& WithThroughput(int value) { SetThroughput(value); return *this;}
132
134
144 inline bool GetMultiAttachEnabled() const{ return m_multiAttachEnabled; }
145 inline bool MultiAttachEnabledHasBeenSet() const { return m_multiAttachEnabledHasBeenSet; }
146 inline void SetMultiAttachEnabled(bool value) { m_multiAttachEnabledHasBeenSet = true; m_multiAttachEnabled = value; }
147 inline ModifyVolumeRequest& WithMultiAttachEnabled(bool value) { SetMultiAttachEnabled(value); return *this;}
149 private:
150
151 bool m_dryRun;
152 bool m_dryRunHasBeenSet = false;
153
154 Aws::String m_volumeId;
155 bool m_volumeIdHasBeenSet = false;
156
157 int m_size;
158 bool m_sizeHasBeenSet = false;
159
160 VolumeType m_volumeType;
161 bool m_volumeTypeHasBeenSet = false;
162
163 int m_iops;
164 bool m_iopsHasBeenSet = false;
165
166 int m_throughput;
167 bool m_throughputHasBeenSet = false;
168
169 bool m_multiAttachEnabled;
170 bool m_multiAttachEnabledHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace EC2
175} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
ModifyVolumeRequest & WithSize(int value)
ModifyVolumeRequest & WithVolumeType(VolumeType &&value)
ModifyVolumeRequest & WithThroughput(int value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyVolumeRequest & WithIops(int value)
void SetVolumeId(const Aws::String &value)
ModifyVolumeRequest & WithVolumeId(const char *value)
ModifyVolumeRequest & WithDryRun(bool value)
void SetVolumeType(const VolumeType &value)
const VolumeType & GetVolumeType() const
ModifyVolumeRequest & WithMultiAttachEnabled(bool value)
ModifyVolumeRequest & WithVolumeType(const VolumeType &value)
ModifyVolumeRequest & WithVolumeId(const Aws::String &value)
const Aws::String & GetVolumeId() const
ModifyVolumeRequest & WithVolumeId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String