AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename VolumeIdT = Aws::String>
60 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
61 template<typename VolumeIdT = Aws::String>
62 ModifyVolumeRequest& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
64
66
76 inline int GetSize() const { return m_size; }
77 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
78 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
79 inline ModifyVolumeRequest& WithSize(int value) { SetSize(value); return *this;}
81
83
89 inline VolumeType GetVolumeType() const { return m_volumeType; }
90 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
91 inline void SetVolumeType(VolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
92 inline ModifyVolumeRequest& WithVolumeType(VolumeType value) { SetVolumeType(value); return *this;}
94
96
109 inline int GetIops() const { return m_iops; }
110 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
111 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
112 inline ModifyVolumeRequest& WithIops(int value) { SetIops(value); return *this;}
114
116
123 inline int GetThroughput() const { return m_throughput; }
124 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
125 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
126 inline ModifyVolumeRequest& WithThroughput(int value) { SetThroughput(value); return *this;}
128
130
140 inline bool GetMultiAttachEnabled() const { return m_multiAttachEnabled; }
141 inline bool MultiAttachEnabledHasBeenSet() const { return m_multiAttachEnabledHasBeenSet; }
142 inline void SetMultiAttachEnabled(bool value) { m_multiAttachEnabledHasBeenSet = true; m_multiAttachEnabled = value; }
143 inline ModifyVolumeRequest& WithMultiAttachEnabled(bool value) { SetMultiAttachEnabled(value); return *this;}
145 private:
146
147 bool m_dryRun{false};
148 bool m_dryRunHasBeenSet = false;
149
150 Aws::String m_volumeId;
151 bool m_volumeIdHasBeenSet = false;
152
153 int m_size{0};
154 bool m_sizeHasBeenSet = false;
155
156 VolumeType m_volumeType{VolumeType::NOT_SET};
157 bool m_volumeTypeHasBeenSet = false;
158
159 int m_iops{0};
160 bool m_iopsHasBeenSet = false;
161
162 int m_throughput{0};
163 bool m_throughputHasBeenSet = false;
164
165 bool m_multiAttachEnabled{false};
166 bool m_multiAttachEnabledHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace EC2
171} // 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