AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ModifyVolumeRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces-instances/WorkspacesInstancesRequest.h>
10#include <aws/workspaces-instances/WorkspacesInstances_EXPORTS.h>
11#include <aws/workspaces-instances/model/VolumeTypeEnum.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WorkspacesInstances {
17namespace Model {
18
26 public:
27 AWS_WORKSPACESINSTANCES_API ModifyVolumeRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ModifyVolume"; }
34
35 AWS_WORKSPACESINSTANCES_API Aws::String SerializePayload() const override;
36
37 AWS_WORKSPACESINSTANCES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
44 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
45 template <typename VolumeIdT = Aws::String>
46 void SetVolumeId(VolumeIdT&& value) {
47 m_volumeIdHasBeenSet = true;
48 m_volumeId = std::forward<VolumeIdT>(value);
49 }
50 template <typename VolumeIdT = Aws::String>
51 ModifyVolumeRequest& WithVolumeId(VolumeIdT&& value) {
52 SetVolumeId(std::forward<VolumeIdT>(value));
53 return *this;
54 }
56
58
63 inline int GetSizeInGB() const { return m_sizeInGB; }
64 inline bool SizeInGBHasBeenSet() const { return m_sizeInGBHasBeenSet; }
65 inline void SetSizeInGB(int value) {
66 m_sizeInGBHasBeenSet = true;
67 m_sizeInGB = value;
68 }
69 inline ModifyVolumeRequest& WithSizeInGB(int value) {
70 SetSizeInGB(value);
71 return *this;
72 }
74
76
80 inline VolumeTypeEnum GetVolumeType() const { return m_volumeType; }
81 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
82 inline void SetVolumeType(VolumeTypeEnum value) {
83 m_volumeTypeHasBeenSet = true;
84 m_volumeType = value;
85 }
87 SetVolumeType(value);
88 return *this;
89 }
91
93
99 inline int GetIops() const { return m_iops; }
100 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
101 inline void SetIops(int value) {
102 m_iopsHasBeenSet = true;
103 m_iops = value;
104 }
105 inline ModifyVolumeRequest& WithIops(int value) {
106 SetIops(value);
107 return *this;
108 }
110
112
117 inline int GetThroughput() const { return m_throughput; }
118 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
119 inline void SetThroughput(int value) {
120 m_throughputHasBeenSet = true;
121 m_throughput = value;
122 }
124 SetThroughput(value);
125 return *this;
126 }
128
130
134 inline const Aws::String& GetClientToken() const { return m_clientToken; }
135 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
136 template <typename ClientTokenT = Aws::String>
137 void SetClientToken(ClientTokenT&& value) {
138 m_clientTokenHasBeenSet = true;
139 m_clientToken = std::forward<ClientTokenT>(value);
140 }
141 template <typename ClientTokenT = Aws::String>
142 ModifyVolumeRequest& WithClientToken(ClientTokenT&& value) {
143 SetClientToken(std::forward<ClientTokenT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_volumeId;
149
150 int m_sizeInGB{0};
151
153
154 int m_iops{0};
155
156 int m_throughput{0};
157
159 bool m_volumeIdHasBeenSet = false;
160 bool m_sizeInGBHasBeenSet = false;
161 bool m_volumeTypeHasBeenSet = false;
162 bool m_iopsHasBeenSet = false;
163 bool m_throughputHasBeenSet = false;
164 bool m_clientTokenHasBeenSet = true;
165};
166
167} // namespace Model
168} // namespace WorkspacesInstances
169} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_WORKSPACESINSTANCES_API Aws::String SerializePayload() const override
ModifyVolumeRequest & WithVolumeType(VolumeTypeEnum value)
virtual const char * GetServiceRequestName() const override
ModifyVolumeRequest & WithVolumeId(VolumeIdT &&value)
ModifyVolumeRequest & WithClientToken(ClientTokenT &&value)
AWS_WORKSPACESINSTANCES_API ModifyVolumeRequest()=default
AWS_WORKSPACESINSTANCES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String