AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyVolumeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/VolumeType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API ModifyVolumeRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ModifyVolume"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
43 inline bool GetDryRun() const { return m_dryRun; }
44 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
49 inline ModifyVolumeRequest& WithDryRun(bool value) {
50 SetDryRun(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
60 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
61 template <typename VolumeIdT = Aws::String>
62 void SetVolumeId(VolumeIdT&& value) {
63 m_volumeIdHasBeenSet = true;
64 m_volumeId = std::forward<VolumeIdT>(value);
65 }
66 template <typename VolumeIdT = Aws::String>
67 ModifyVolumeRequest& WithVolumeId(VolumeIdT&& value) {
68 SetVolumeId(std::forward<VolumeIdT>(value));
69 return *this;
70 }
72
74
84 inline int GetSize() const { return m_size; }
85 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
86 inline void SetSize(int value) {
87 m_sizeHasBeenSet = true;
88 m_size = value;
89 }
90 inline ModifyVolumeRequest& WithSize(int value) {
91 SetSize(value);
92 return *this;
93 }
95
97
103 inline VolumeType GetVolumeType() const { return m_volumeType; }
104 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
105 inline void SetVolumeType(VolumeType value) {
106 m_volumeTypeHasBeenSet = true;
107 m_volumeType = value;
108 }
110 SetVolumeType(value);
111 return *this;
112 }
114
116
130 inline int GetIops() const { return m_iops; }
131 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
132 inline void SetIops(int value) {
133 m_iopsHasBeenSet = true;
134 m_iops = value;
135 }
136 inline ModifyVolumeRequest& WithIops(int value) {
137 SetIops(value);
138 return *this;
139 }
141
143
150 inline int GetThroughput() const { return m_throughput; }
151 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
152 inline void SetThroughput(int value) {
153 m_throughputHasBeenSet = true;
154 m_throughput = value;
155 }
157 SetThroughput(value);
158 return *this;
159 }
161
163
173 inline bool GetMultiAttachEnabled() const { return m_multiAttachEnabled; }
174 inline bool MultiAttachEnabledHasBeenSet() const { return m_multiAttachEnabledHasBeenSet; }
175 inline void SetMultiAttachEnabled(bool value) {
176 m_multiAttachEnabledHasBeenSet = true;
177 m_multiAttachEnabled = value;
178 }
181 return *this;
182 }
184 private:
185 bool m_dryRun{false};
186
187 Aws::String m_volumeId;
188
189 int m_size{0};
190
191 VolumeType m_volumeType{VolumeType::NOT_SET};
192
193 int m_iops{0};
194
195 int m_throughput{0};
196
197 bool m_multiAttachEnabled{false};
198 bool m_dryRunHasBeenSet = false;
199 bool m_volumeIdHasBeenSet = false;
200 bool m_sizeHasBeenSet = false;
201 bool m_volumeTypeHasBeenSet = false;
202 bool m_iopsHasBeenSet = false;
203 bool m_throughputHasBeenSet = false;
204 bool m_multiAttachEnabledHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace EC2
209} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
ModifyVolumeRequest & WithSize(int value)
ModifyVolumeRequest & WithThroughput(int value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyVolumeRequest & WithIops(int value)
ModifyVolumeRequest & WithVolumeId(VolumeIdT &&value)
ModifyVolumeRequest & WithDryRun(bool value)
ModifyVolumeRequest & WithVolumeType(VolumeType value)
AWS_EC2_API ModifyVolumeRequest()=default
ModifyVolumeRequest & WithMultiAttachEnabled(bool value)
const Aws::String & GetVolumeId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String