AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
Tape.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/storagegateway/StorageGateway_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace StorageGateway {
21namespace Model {
22
28class Tape {
29 public:
30 AWS_STORAGEGATEWAY_API Tape() = default;
31 AWS_STORAGEGATEWAY_API Tape(Aws::Utils::Json::JsonView jsonValue);
32 AWS_STORAGEGATEWAY_API Tape& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetTapeARN() const { return m_tapeARN; }
40 inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
41 template <typename TapeARNT = Aws::String>
42 void SetTapeARN(TapeARNT&& value) {
43 m_tapeARNHasBeenSet = true;
44 m_tapeARN = std::forward<TapeARNT>(value);
45 }
46 template <typename TapeARNT = Aws::String>
47 Tape& WithTapeARN(TapeARNT&& value) {
48 SetTapeARN(std::forward<TapeARNT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTapeBarcode() const { return m_tapeBarcode; }
58 inline bool TapeBarcodeHasBeenSet() const { return m_tapeBarcodeHasBeenSet; }
59 template <typename TapeBarcodeT = Aws::String>
60 void SetTapeBarcode(TapeBarcodeT&& value) {
61 m_tapeBarcodeHasBeenSet = true;
62 m_tapeBarcode = std::forward<TapeBarcodeT>(value);
63 }
64 template <typename TapeBarcodeT = Aws::String>
65 Tape& WithTapeBarcode(TapeBarcodeT&& value) {
66 SetTapeBarcode(std::forward<TapeBarcodeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetTapeCreatedDate() const { return m_tapeCreatedDate; }
76 inline bool TapeCreatedDateHasBeenSet() const { return m_tapeCreatedDateHasBeenSet; }
77 template <typename TapeCreatedDateT = Aws::Utils::DateTime>
78 void SetTapeCreatedDate(TapeCreatedDateT&& value) {
79 m_tapeCreatedDateHasBeenSet = true;
80 m_tapeCreatedDate = std::forward<TapeCreatedDateT>(value);
81 }
82 template <typename TapeCreatedDateT = Aws::Utils::DateTime>
83 Tape& WithTapeCreatedDate(TapeCreatedDateT&& value) {
84 SetTapeCreatedDate(std::forward<TapeCreatedDateT>(value));
85 return *this;
86 }
88
90
93 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
94 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
95 inline void SetTapeSizeInBytes(long long value) {
96 m_tapeSizeInBytesHasBeenSet = true;
97 m_tapeSizeInBytes = value;
98 }
99 inline Tape& WithTapeSizeInBytes(long long value) {
100 SetTapeSizeInBytes(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetTapeStatus() const { return m_tapeStatus; }
110 inline bool TapeStatusHasBeenSet() const { return m_tapeStatusHasBeenSet; }
111 template <typename TapeStatusT = Aws::String>
112 void SetTapeStatus(TapeStatusT&& value) {
113 m_tapeStatusHasBeenSet = true;
114 m_tapeStatus = std::forward<TapeStatusT>(value);
115 }
116 template <typename TapeStatusT = Aws::String>
117 Tape& WithTapeStatus(TapeStatusT&& value) {
118 SetTapeStatus(std::forward<TapeStatusT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetVTLDevice() const { return m_vTLDevice; }
129 inline bool VTLDeviceHasBeenSet() const { return m_vTLDeviceHasBeenSet; }
130 template <typename VTLDeviceT = Aws::String>
131 void SetVTLDevice(VTLDeviceT&& value) {
132 m_vTLDeviceHasBeenSet = true;
133 m_vTLDevice = std::forward<VTLDeviceT>(value);
134 }
135 template <typename VTLDeviceT = Aws::String>
136 Tape& WithVTLDevice(VTLDeviceT&& value) {
137 SetVTLDevice(std::forward<VTLDeviceT>(value));
138 return *this;
139 }
141
143
148 inline double GetProgress() const { return m_progress; }
149 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
150 inline void SetProgress(double value) {
151 m_progressHasBeenSet = true;
152 m_progress = value;
153 }
154 inline Tape& WithProgress(double value) {
155 SetProgress(value);
156 return *this;
157 }
159
161
165 inline long long GetTapeUsedInBytes() const { return m_tapeUsedInBytes; }
166 inline bool TapeUsedInBytesHasBeenSet() const { return m_tapeUsedInBytesHasBeenSet; }
167 inline void SetTapeUsedInBytes(long long value) {
168 m_tapeUsedInBytesHasBeenSet = true;
169 m_tapeUsedInBytes = value;
170 }
171 inline Tape& WithTapeUsedInBytes(long long value) {
172 SetTapeUsedInBytes(value);
173 return *this;
174 }
176
178
179 inline const Aws::String& GetKMSKey() const { return m_kMSKey; }
180 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
181 template <typename KMSKeyT = Aws::String>
182 void SetKMSKey(KMSKeyT&& value) {
183 m_kMSKeyHasBeenSet = true;
184 m_kMSKey = std::forward<KMSKeyT>(value);
185 }
186 template <typename KMSKeyT = Aws::String>
187 Tape& WithKMSKey(KMSKeyT&& value) {
188 SetKMSKey(std::forward<KMSKeyT>(value));
189 return *this;
190 }
192
194
201 inline const Aws::String& GetPoolId() const { return m_poolId; }
202 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
203 template <typename PoolIdT = Aws::String>
204 void SetPoolId(PoolIdT&& value) {
205 m_poolIdHasBeenSet = true;
206 m_poolId = std::forward<PoolIdT>(value);
207 }
208 template <typename PoolIdT = Aws::String>
209 Tape& WithPoolId(PoolIdT&& value) {
210 SetPoolId(std::forward<PoolIdT>(value));
211 return *this;
212 }
214
216
220 inline bool GetWorm() const { return m_worm; }
221 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
222 inline void SetWorm(bool value) {
223 m_wormHasBeenSet = true;
224 m_worm = value;
225 }
226 inline Tape& WithWorm(bool value) {
227 SetWorm(value);
228 return *this;
229 }
231
233
237 inline const Aws::Utils::DateTime& GetRetentionStartDate() const { return m_retentionStartDate; }
238 inline bool RetentionStartDateHasBeenSet() const { return m_retentionStartDateHasBeenSet; }
239 template <typename RetentionStartDateT = Aws::Utils::DateTime>
240 void SetRetentionStartDate(RetentionStartDateT&& value) {
241 m_retentionStartDateHasBeenSet = true;
242 m_retentionStartDate = std::forward<RetentionStartDateT>(value);
243 }
244 template <typename RetentionStartDateT = Aws::Utils::DateTime>
245 Tape& WithRetentionStartDate(RetentionStartDateT&& value) {
246 SetRetentionStartDate(std::forward<RetentionStartDateT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::Utils::DateTime& GetPoolEntryDate() const { return m_poolEntryDate; }
256 inline bool PoolEntryDateHasBeenSet() const { return m_poolEntryDateHasBeenSet; }
257 template <typename PoolEntryDateT = Aws::Utils::DateTime>
258 void SetPoolEntryDate(PoolEntryDateT&& value) {
259 m_poolEntryDateHasBeenSet = true;
260 m_poolEntryDate = std::forward<PoolEntryDateT>(value);
261 }
262 template <typename PoolEntryDateT = Aws::Utils::DateTime>
263 Tape& WithPoolEntryDate(PoolEntryDateT&& value) {
264 SetPoolEntryDate(std::forward<PoolEntryDateT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_tapeARN;
270
271 Aws::String m_tapeBarcode;
272
273 Aws::Utils::DateTime m_tapeCreatedDate{};
274
275 long long m_tapeSizeInBytes{0};
276
277 Aws::String m_tapeStatus;
278
279 Aws::String m_vTLDevice;
280
281 double m_progress{0.0};
282
283 long long m_tapeUsedInBytes{0};
284
285 Aws::String m_kMSKey;
286
287 Aws::String m_poolId;
288
289 bool m_worm{false};
290
291 Aws::Utils::DateTime m_retentionStartDate{};
292
293 Aws::Utils::DateTime m_poolEntryDate{};
294 bool m_tapeARNHasBeenSet = false;
295 bool m_tapeBarcodeHasBeenSet = false;
296 bool m_tapeCreatedDateHasBeenSet = false;
297 bool m_tapeSizeInBytesHasBeenSet = false;
298 bool m_tapeStatusHasBeenSet = false;
299 bool m_vTLDeviceHasBeenSet = false;
300 bool m_progressHasBeenSet = false;
301 bool m_tapeUsedInBytesHasBeenSet = false;
302 bool m_kMSKeyHasBeenSet = false;
303 bool m_poolIdHasBeenSet = false;
304 bool m_wormHasBeenSet = false;
305 bool m_retentionStartDateHasBeenSet = false;
306 bool m_poolEntryDateHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace StorageGateway
311} // namespace Aws
const Aws::String & GetVTLDevice() const
Definition Tape.h:128
bool ProgressHasBeenSet() const
Definition Tape.h:149
AWS_STORAGEGATEWAY_API Tape(Aws::Utils::Json::JsonView jsonValue)
bool TapeSizeInBytesHasBeenSet() const
Definition Tape.h:94
Tape & WithWorm(bool value)
Definition Tape.h:226
Tape & WithPoolEntryDate(PoolEntryDateT &&value)
Definition Tape.h:263
const Aws::String & GetTapeARN() const
Definition Tape.h:39
void SetPoolId(PoolIdT &&value)
Definition Tape.h:204
void SetTapeCreatedDate(TapeCreatedDateT &&value)
Definition Tape.h:78
bool VTLDeviceHasBeenSet() const
Definition Tape.h:129
void SetKMSKey(KMSKeyT &&value)
Definition Tape.h:182
Tape & WithTapeStatus(TapeStatusT &&value)
Definition Tape.h:117
Tape & WithKMSKey(KMSKeyT &&value)
Definition Tape.h:187
void SetTapeBarcode(TapeBarcodeT &&value)
Definition Tape.h:60
void SetTapeUsedInBytes(long long value)
Definition Tape.h:167
void SetVTLDevice(VTLDeviceT &&value)
Definition Tape.h:131
const Aws::String & GetKMSKey() const
Definition Tape.h:179
double GetProgress() const
Definition Tape.h:148
Tape & WithTapeUsedInBytes(long long value)
Definition Tape.h:171
void SetProgress(double value)
Definition Tape.h:150
const Aws::Utils::DateTime & GetPoolEntryDate() const
Definition Tape.h:255
Tape & WithTapeSizeInBytes(long long value)
Definition Tape.h:99
void SetPoolEntryDate(PoolEntryDateT &&value)
Definition Tape.h:258
Tape & WithTapeCreatedDate(TapeCreatedDateT &&value)
Definition Tape.h:83
Tape & WithPoolId(PoolIdT &&value)
Definition Tape.h:209
AWS_STORAGEGATEWAY_API Tape()=default
bool KMSKeyHasBeenSet() const
Definition Tape.h:180
const Aws::Utils::DateTime & GetRetentionStartDate() const
Definition Tape.h:237
void SetTapeStatus(TapeStatusT &&value)
Definition Tape.h:112
Tape & WithTapeBarcode(TapeBarcodeT &&value)
Definition Tape.h:65
Tape & WithTapeARN(TapeARNT &&value)
Definition Tape.h:47
const Aws::Utils::DateTime & GetTapeCreatedDate() const
Definition Tape.h:75
bool RetentionStartDateHasBeenSet() const
Definition Tape.h:238
const Aws::String & GetTapeBarcode() const
Definition Tape.h:57
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool TapeStatusHasBeenSet() const
Definition Tape.h:110
bool TapeBarcodeHasBeenSet() const
Definition Tape.h:58
const Aws::String & GetPoolId() const
Definition Tape.h:201
Tape & WithVTLDevice(VTLDeviceT &&value)
Definition Tape.h:136
void SetTapeSizeInBytes(long long value)
Definition Tape.h:95
bool TapeARNHasBeenSet() const
Definition Tape.h:40
const Aws::String & GetTapeStatus() const
Definition Tape.h:109
bool TapeCreatedDateHasBeenSet() const
Definition Tape.h:76
Tape & WithRetentionStartDate(RetentionStartDateT &&value)
Definition Tape.h:245
AWS_STORAGEGATEWAY_API Tape & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetTapeUsedInBytes() const
Definition Tape.h:165
void SetWorm(bool value)
Definition Tape.h:222
void SetRetentionStartDate(RetentionStartDateT &&value)
Definition Tape.h:240
long long GetTapeSizeInBytes() const
Definition Tape.h:93
bool PoolIdHasBeenSet() const
Definition Tape.h:202
bool TapeUsedInBytesHasBeenSet() const
Definition Tape.h:166
Tape & WithProgress(double value)
Definition Tape.h:154
void SetTapeARN(TapeARNT &&value)
Definition Tape.h:42
bool PoolEntryDateHasBeenSet() const
Definition Tape.h:256
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue