AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Tape.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace StorageGateway
23{
24namespace Model
25{
26
32 class Tape
33 {
34 public:
35 AWS_STORAGEGATEWAY_API Tape() = default;
36 AWS_STORAGEGATEWAY_API Tape(Aws::Utils::Json::JsonView jsonValue);
37 AWS_STORAGEGATEWAY_API Tape& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetTapeARN() const { return m_tapeARN; }
46 inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
47 template<typename TapeARNT = Aws::String>
48 void SetTapeARN(TapeARNT&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::forward<TapeARNT>(value); }
49 template<typename TapeARNT = Aws::String>
50 Tape& WithTapeARN(TapeARNT&& value) { SetTapeARN(std::forward<TapeARNT>(value)); return *this;}
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) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = std::forward<TapeBarcodeT>(value); }
61 template<typename TapeBarcodeT = Aws::String>
62 Tape& WithTapeBarcode(TapeBarcodeT&& value) { SetTapeBarcode(std::forward<TapeBarcodeT>(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetTapeCreatedDate() const { return m_tapeCreatedDate; }
70 inline bool TapeCreatedDateHasBeenSet() const { return m_tapeCreatedDateHasBeenSet; }
71 template<typename TapeCreatedDateT = Aws::Utils::DateTime>
72 void SetTapeCreatedDate(TapeCreatedDateT&& value) { m_tapeCreatedDateHasBeenSet = true; m_tapeCreatedDate = std::forward<TapeCreatedDateT>(value); }
73 template<typename TapeCreatedDateT = Aws::Utils::DateTime>
74 Tape& WithTapeCreatedDate(TapeCreatedDateT&& value) { SetTapeCreatedDate(std::forward<TapeCreatedDateT>(value)); return *this;}
76
78
81 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
82 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
83 inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
84 inline Tape& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
86
88
91 inline const Aws::String& GetTapeStatus() const { return m_tapeStatus; }
92 inline bool TapeStatusHasBeenSet() const { return m_tapeStatusHasBeenSet; }
93 template<typename TapeStatusT = Aws::String>
94 void SetTapeStatus(TapeStatusT&& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = std::forward<TapeStatusT>(value); }
95 template<typename TapeStatusT = Aws::String>
96 Tape& WithTapeStatus(TapeStatusT&& value) { SetTapeStatus(std::forward<TapeStatusT>(value)); return *this;}
98
100
104 inline const Aws::String& GetVTLDevice() const { return m_vTLDevice; }
105 inline bool VTLDeviceHasBeenSet() const { return m_vTLDeviceHasBeenSet; }
106 template<typename VTLDeviceT = Aws::String>
107 void SetVTLDevice(VTLDeviceT&& value) { m_vTLDeviceHasBeenSet = true; m_vTLDevice = std::forward<VTLDeviceT>(value); }
108 template<typename VTLDeviceT = Aws::String>
109 Tape& WithVTLDevice(VTLDeviceT&& value) { SetVTLDevice(std::forward<VTLDeviceT>(value)); return *this;}
111
113
118 inline double GetProgress() const { return m_progress; }
119 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
120 inline void SetProgress(double value) { m_progressHasBeenSet = true; m_progress = value; }
121 inline Tape& WithProgress(double value) { SetProgress(value); return *this;}
123
125
129 inline long long GetTapeUsedInBytes() const { return m_tapeUsedInBytes; }
130 inline bool TapeUsedInBytesHasBeenSet() const { return m_tapeUsedInBytesHasBeenSet; }
131 inline void SetTapeUsedInBytes(long long value) { m_tapeUsedInBytesHasBeenSet = true; m_tapeUsedInBytes = value; }
132 inline Tape& WithTapeUsedInBytes(long long value) { SetTapeUsedInBytes(value); return *this;}
134
136
137 inline const Aws::String& GetKMSKey() const { return m_kMSKey; }
138 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
139 template<typename KMSKeyT = Aws::String>
140 void SetKMSKey(KMSKeyT&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::forward<KMSKeyT>(value); }
141 template<typename KMSKeyT = Aws::String>
142 Tape& WithKMSKey(KMSKeyT&& value) { SetKMSKey(std::forward<KMSKeyT>(value)); return *this;}
144
146
153 inline const Aws::String& GetPoolId() const { return m_poolId; }
154 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
155 template<typename PoolIdT = Aws::String>
156 void SetPoolId(PoolIdT&& value) { m_poolIdHasBeenSet = true; m_poolId = std::forward<PoolIdT>(value); }
157 template<typename PoolIdT = Aws::String>
158 Tape& WithPoolId(PoolIdT&& value) { SetPoolId(std::forward<PoolIdT>(value)); return *this;}
160
162
166 inline bool GetWorm() const { return m_worm; }
167 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
168 inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
169 inline Tape& WithWorm(bool value) { SetWorm(value); return *this;}
171
173
177 inline const Aws::Utils::DateTime& GetRetentionStartDate() const { return m_retentionStartDate; }
178 inline bool RetentionStartDateHasBeenSet() const { return m_retentionStartDateHasBeenSet; }
179 template<typename RetentionStartDateT = Aws::Utils::DateTime>
180 void SetRetentionStartDate(RetentionStartDateT&& value) { m_retentionStartDateHasBeenSet = true; m_retentionStartDate = std::forward<RetentionStartDateT>(value); }
181 template<typename RetentionStartDateT = Aws::Utils::DateTime>
182 Tape& WithRetentionStartDate(RetentionStartDateT&& value) { SetRetentionStartDate(std::forward<RetentionStartDateT>(value)); return *this;}
184
186
189 inline const Aws::Utils::DateTime& GetPoolEntryDate() const { return m_poolEntryDate; }
190 inline bool PoolEntryDateHasBeenSet() const { return m_poolEntryDateHasBeenSet; }
191 template<typename PoolEntryDateT = Aws::Utils::DateTime>
192 void SetPoolEntryDate(PoolEntryDateT&& value) { m_poolEntryDateHasBeenSet = true; m_poolEntryDate = std::forward<PoolEntryDateT>(value); }
193 template<typename PoolEntryDateT = Aws::Utils::DateTime>
194 Tape& WithPoolEntryDate(PoolEntryDateT&& value) { SetPoolEntryDate(std::forward<PoolEntryDateT>(value)); return *this;}
196 private:
197
198 Aws::String m_tapeARN;
199 bool m_tapeARNHasBeenSet = false;
200
201 Aws::String m_tapeBarcode;
202 bool m_tapeBarcodeHasBeenSet = false;
203
204 Aws::Utils::DateTime m_tapeCreatedDate{};
205 bool m_tapeCreatedDateHasBeenSet = false;
206
207 long long m_tapeSizeInBytes{0};
208 bool m_tapeSizeInBytesHasBeenSet = false;
209
210 Aws::String m_tapeStatus;
211 bool m_tapeStatusHasBeenSet = false;
212
213 Aws::String m_vTLDevice;
214 bool m_vTLDeviceHasBeenSet = false;
215
216 double m_progress{0.0};
217 bool m_progressHasBeenSet = false;
218
219 long long m_tapeUsedInBytes{0};
220 bool m_tapeUsedInBytesHasBeenSet = false;
221
222 Aws::String m_kMSKey;
223 bool m_kMSKeyHasBeenSet = false;
224
225 Aws::String m_poolId;
226 bool m_poolIdHasBeenSet = false;
227
228 bool m_worm{false};
229 bool m_wormHasBeenSet = false;
230
231 Aws::Utils::DateTime m_retentionStartDate{};
232 bool m_retentionStartDateHasBeenSet = false;
233
234 Aws::Utils::DateTime m_poolEntryDate{};
235 bool m_poolEntryDateHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace StorageGateway
240} // namespace Aws
const Aws::String & GetVTLDevice() const
Definition Tape.h:104
bool ProgressHasBeenSet() const
Definition Tape.h:119
AWS_STORAGEGATEWAY_API Tape(Aws::Utils::Json::JsonView jsonValue)
bool TapeSizeInBytesHasBeenSet() const
Definition Tape.h:82
Tape & WithWorm(bool value)
Definition Tape.h:169
Tape & WithPoolEntryDate(PoolEntryDateT &&value)
Definition Tape.h:194
const Aws::String & GetTapeARN() const
Definition Tape.h:45
void SetPoolId(PoolIdT &&value)
Definition Tape.h:156
void SetTapeCreatedDate(TapeCreatedDateT &&value)
Definition Tape.h:72
bool VTLDeviceHasBeenSet() const
Definition Tape.h:105
void SetKMSKey(KMSKeyT &&value)
Definition Tape.h:140
Tape & WithTapeStatus(TapeStatusT &&value)
Definition Tape.h:96
Tape & WithKMSKey(KMSKeyT &&value)
Definition Tape.h:142
void SetTapeBarcode(TapeBarcodeT &&value)
Definition Tape.h:60
void SetTapeUsedInBytes(long long value)
Definition Tape.h:131
void SetVTLDevice(VTLDeviceT &&value)
Definition Tape.h:107
const Aws::String & GetKMSKey() const
Definition Tape.h:137
double GetProgress() const
Definition Tape.h:118
Tape & WithTapeUsedInBytes(long long value)
Definition Tape.h:132
void SetProgress(double value)
Definition Tape.h:120
const Aws::Utils::DateTime & GetPoolEntryDate() const
Definition Tape.h:189
Tape & WithTapeSizeInBytes(long long value)
Definition Tape.h:84
void SetPoolEntryDate(PoolEntryDateT &&value)
Definition Tape.h:192
Tape & WithTapeCreatedDate(TapeCreatedDateT &&value)
Definition Tape.h:74
Tape & WithPoolId(PoolIdT &&value)
Definition Tape.h:158
AWS_STORAGEGATEWAY_API Tape()=default
bool KMSKeyHasBeenSet() const
Definition Tape.h:138
const Aws::Utils::DateTime & GetRetentionStartDate() const
Definition Tape.h:177
void SetTapeStatus(TapeStatusT &&value)
Definition Tape.h:94
Tape & WithTapeBarcode(TapeBarcodeT &&value)
Definition Tape.h:62
Tape & WithTapeARN(TapeARNT &&value)
Definition Tape.h:50
const Aws::Utils::DateTime & GetTapeCreatedDate() const
Definition Tape.h:69
bool RetentionStartDateHasBeenSet() const
Definition Tape.h:178
const Aws::String & GetTapeBarcode() const
Definition Tape.h:57
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool TapeStatusHasBeenSet() const
Definition Tape.h:92
bool TapeBarcodeHasBeenSet() const
Definition Tape.h:58
const Aws::String & GetPoolId() const
Definition Tape.h:153
Tape & WithVTLDevice(VTLDeviceT &&value)
Definition Tape.h:109
void SetTapeSizeInBytes(long long value)
Definition Tape.h:83
bool TapeARNHasBeenSet() const
Definition Tape.h:46
const Aws::String & GetTapeStatus() const
Definition Tape.h:91
bool TapeCreatedDateHasBeenSet() const
Definition Tape.h:70
Tape & WithRetentionStartDate(RetentionStartDateT &&value)
Definition Tape.h:182
AWS_STORAGEGATEWAY_API Tape & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetTapeUsedInBytes() const
Definition Tape.h:129
void SetWorm(bool value)
Definition Tape.h:168
void SetRetentionStartDate(RetentionStartDateT &&value)
Definition Tape.h:180
long long GetTapeSizeInBytes() const
Definition Tape.h:81
bool PoolIdHasBeenSet() const
Definition Tape.h:154
bool TapeUsedInBytesHasBeenSet() const
Definition Tape.h:130
Tape & WithProgress(double value)
Definition Tape.h:121
void SetTapeARN(TapeARNT &&value)
Definition Tape.h:48
bool PoolEntryDateHasBeenSet() const
Definition Tape.h:190
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue