AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ModifyVolumeResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/workspaces-instances/WorkspacesInstances_EXPORTS.h>
11#include <aws/workspaces-instances/model/VolumeTypeEnum.h>
12
13#include <utility>
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace WorkspacesInstances {
24namespace Model {
33 public:
34 AWS_WORKSPACESINSTANCES_API ModifyVolumeResult() = default;
37
39
42 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
43 template <typename VolumeIdT = Aws::String>
44 void SetVolumeId(VolumeIdT&& value) {
45 m_volumeIdHasBeenSet = true;
46 m_volumeId = std::forward<VolumeIdT>(value);
47 }
48 template <typename VolumeIdT = Aws::String>
49 ModifyVolumeResult& WithVolumeId(VolumeIdT&& value) {
50 SetVolumeId(std::forward<VolumeIdT>(value));
51 return *this;
52 }
54
56
59 inline int64_t GetTargetSize() const { return m_targetSize; }
60 inline void SetTargetSize(int64_t value) {
61 m_targetSizeHasBeenSet = true;
62 m_targetSize = value;
63 }
64 inline ModifyVolumeResult& WithTargetSize(int64_t value) {
65 SetTargetSize(value);
66 return *this;
67 }
69
71
74 inline VolumeTypeEnum GetTargetVolumeType() const { return m_targetVolumeType; }
76 m_targetVolumeTypeHasBeenSet = true;
77 m_targetVolumeType = value;
78 }
81 return *this;
82 }
84
86
89 inline int64_t GetTargetIops() const { return m_targetIops; }
90 inline void SetTargetIops(int64_t value) {
91 m_targetIopsHasBeenSet = true;
92 m_targetIops = value;
93 }
94 inline ModifyVolumeResult& WithTargetIops(int64_t value) {
95 SetTargetIops(value);
96 return *this;
97 }
99
101
104 inline int64_t GetTargetThroughput() const { return m_targetThroughput; }
105 inline void SetTargetThroughput(int64_t value) {
106 m_targetThroughputHasBeenSet = true;
107 m_targetThroughput = value;
108 }
110 SetTargetThroughput(value);
111 return *this;
112 }
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template <typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) {
120 m_requestIdHasBeenSet = true;
121 m_requestId = std::forward<RequestIdT>(value);
122 }
123 template <typename RequestIdT = Aws::String>
124 ModifyVolumeResult& WithRequestId(RequestIdT&& value) {
125 SetRequestId(std::forward<RequestIdT>(value));
126 return *this;
127 }
129 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
130
131 private:
132 Aws::String m_volumeId;
133
134 int64_t m_targetSize{0};
135
136 VolumeTypeEnum m_targetVolumeType{VolumeTypeEnum::NOT_SET};
137
138 int64_t m_targetIops{0};
139
140 int64_t m_targetThroughput{0};
141
142 Aws::String m_requestId;
143 Aws::Http::HttpResponseCode m_HttpResponseCode;
144 bool m_volumeIdHasBeenSet = false;
145 bool m_targetSizeHasBeenSet = false;
146 bool m_targetVolumeTypeHasBeenSet = false;
147 bool m_targetIopsHasBeenSet = false;
148 bool m_targetThroughputHasBeenSet = false;
149 bool m_requestIdHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace WorkspacesInstances
154} // namespace Aws
ModifyVolumeResult & WithTargetThroughput(int64_t value)
ModifyVolumeResult & WithRequestId(RequestIdT &&value)
AWS_WORKSPACESINSTANCES_API ModifyVolumeResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_WORKSPACESINSTANCES_API ModifyVolumeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
ModifyVolumeResult & WithTargetIops(int64_t value)
AWS_WORKSPACESINSTANCES_API ModifyVolumeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
ModifyVolumeResult & WithTargetVolumeType(VolumeTypeEnum value)
ModifyVolumeResult & WithTargetSize(int64_t value)
ModifyVolumeResult & WithVolumeId(VolumeIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String