AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
48 inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::move(value); }
49 inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); }
50 inline Tape& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
51 inline Tape& WithTapeARN(Aws::String&& value) { SetTapeARN(std::move(value)); return *this;}
52 inline Tape& WithTapeARN(const char* value) { SetTapeARN(value); return *this;}
54
56
59 inline const Aws::String& GetTapeBarcode() const{ return m_tapeBarcode; }
60 inline bool TapeBarcodeHasBeenSet() const { return m_tapeBarcodeHasBeenSet; }
61 inline void SetTapeBarcode(const Aws::String& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = value; }
62 inline void SetTapeBarcode(Aws::String&& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = std::move(value); }
63 inline void SetTapeBarcode(const char* value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode.assign(value); }
64 inline Tape& WithTapeBarcode(const Aws::String& value) { SetTapeBarcode(value); return *this;}
65 inline Tape& WithTapeBarcode(Aws::String&& value) { SetTapeBarcode(std::move(value)); return *this;}
66 inline Tape& WithTapeBarcode(const char* value) { SetTapeBarcode(value); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetTapeCreatedDate() const{ return m_tapeCreatedDate; }
74 inline bool TapeCreatedDateHasBeenSet() const { return m_tapeCreatedDateHasBeenSet; }
75 inline void SetTapeCreatedDate(const Aws::Utils::DateTime& value) { m_tapeCreatedDateHasBeenSet = true; m_tapeCreatedDate = value; }
76 inline void SetTapeCreatedDate(Aws::Utils::DateTime&& value) { m_tapeCreatedDateHasBeenSet = true; m_tapeCreatedDate = std::move(value); }
77 inline Tape& WithTapeCreatedDate(const Aws::Utils::DateTime& value) { SetTapeCreatedDate(value); return *this;}
78 inline Tape& WithTapeCreatedDate(Aws::Utils::DateTime&& value) { SetTapeCreatedDate(std::move(value)); return *this;}
80
82
85 inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; }
86 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
87 inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
88 inline Tape& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
90
92
95 inline const Aws::String& GetTapeStatus() const{ return m_tapeStatus; }
96 inline bool TapeStatusHasBeenSet() const { return m_tapeStatusHasBeenSet; }
97 inline void SetTapeStatus(const Aws::String& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = value; }
98 inline void SetTapeStatus(Aws::String&& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = std::move(value); }
99 inline void SetTapeStatus(const char* value) { m_tapeStatusHasBeenSet = true; m_tapeStatus.assign(value); }
100 inline Tape& WithTapeStatus(const Aws::String& value) { SetTapeStatus(value); return *this;}
101 inline Tape& WithTapeStatus(Aws::String&& value) { SetTapeStatus(std::move(value)); return *this;}
102 inline Tape& WithTapeStatus(const char* value) { SetTapeStatus(value); return *this;}
104
106
110 inline const Aws::String& GetVTLDevice() const{ return m_vTLDevice; }
111 inline bool VTLDeviceHasBeenSet() const { return m_vTLDeviceHasBeenSet; }
112 inline void SetVTLDevice(const Aws::String& value) { m_vTLDeviceHasBeenSet = true; m_vTLDevice = value; }
113 inline void SetVTLDevice(Aws::String&& value) { m_vTLDeviceHasBeenSet = true; m_vTLDevice = std::move(value); }
114 inline void SetVTLDevice(const char* value) { m_vTLDeviceHasBeenSet = true; m_vTLDevice.assign(value); }
115 inline Tape& WithVTLDevice(const Aws::String& value) { SetVTLDevice(value); return *this;}
116 inline Tape& WithVTLDevice(Aws::String&& value) { SetVTLDevice(std::move(value)); return *this;}
117 inline Tape& WithVTLDevice(const char* value) { SetVTLDevice(value); return *this;}
119
121
126 inline double GetProgress() const{ return m_progress; }
127 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
128 inline void SetProgress(double value) { m_progressHasBeenSet = true; m_progress = value; }
129 inline Tape& WithProgress(double value) { SetProgress(value); return *this;}
131
133
137 inline long long GetTapeUsedInBytes() const{ return m_tapeUsedInBytes; }
138 inline bool TapeUsedInBytesHasBeenSet() const { return m_tapeUsedInBytesHasBeenSet; }
139 inline void SetTapeUsedInBytes(long long value) { m_tapeUsedInBytesHasBeenSet = true; m_tapeUsedInBytes = value; }
140 inline Tape& WithTapeUsedInBytes(long long value) { SetTapeUsedInBytes(value); return *this;}
142
144
145 inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
146 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
147 inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
148 inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
149 inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
150 inline Tape& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
151 inline Tape& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
152 inline Tape& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
154
156
163 inline const Aws::String& GetPoolId() const{ return m_poolId; }
164 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
165 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
166 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
167 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
168 inline Tape& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
169 inline Tape& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
170 inline Tape& WithPoolId(const char* value) { SetPoolId(value); return *this;}
172
174
178 inline bool GetWorm() const{ return m_worm; }
179 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
180 inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
181 inline Tape& WithWorm(bool value) { SetWorm(value); return *this;}
183
185
189 inline const Aws::Utils::DateTime& GetRetentionStartDate() const{ return m_retentionStartDate; }
190 inline bool RetentionStartDateHasBeenSet() const { return m_retentionStartDateHasBeenSet; }
191 inline void SetRetentionStartDate(const Aws::Utils::DateTime& value) { m_retentionStartDateHasBeenSet = true; m_retentionStartDate = value; }
192 inline void SetRetentionStartDate(Aws::Utils::DateTime&& value) { m_retentionStartDateHasBeenSet = true; m_retentionStartDate = std::move(value); }
193 inline Tape& WithRetentionStartDate(const Aws::Utils::DateTime& value) { SetRetentionStartDate(value); return *this;}
194 inline Tape& WithRetentionStartDate(Aws::Utils::DateTime&& value) { SetRetentionStartDate(std::move(value)); return *this;}
196
198
201 inline const Aws::Utils::DateTime& GetPoolEntryDate() const{ return m_poolEntryDate; }
202 inline bool PoolEntryDateHasBeenSet() const { return m_poolEntryDateHasBeenSet; }
203 inline void SetPoolEntryDate(const Aws::Utils::DateTime& value) { m_poolEntryDateHasBeenSet = true; m_poolEntryDate = value; }
204 inline void SetPoolEntryDate(Aws::Utils::DateTime&& value) { m_poolEntryDateHasBeenSet = true; m_poolEntryDate = std::move(value); }
205 inline Tape& WithPoolEntryDate(const Aws::Utils::DateTime& value) { SetPoolEntryDate(value); return *this;}
206 inline Tape& WithPoolEntryDate(Aws::Utils::DateTime&& value) { SetPoolEntryDate(std::move(value)); return *this;}
208 private:
209
210 Aws::String m_tapeARN;
211 bool m_tapeARNHasBeenSet = false;
212
213 Aws::String m_tapeBarcode;
214 bool m_tapeBarcodeHasBeenSet = false;
215
216 Aws::Utils::DateTime m_tapeCreatedDate;
217 bool m_tapeCreatedDateHasBeenSet = false;
218
219 long long m_tapeSizeInBytes;
220 bool m_tapeSizeInBytesHasBeenSet = false;
221
222 Aws::String m_tapeStatus;
223 bool m_tapeStatusHasBeenSet = false;
224
225 Aws::String m_vTLDevice;
226 bool m_vTLDeviceHasBeenSet = false;
227
228 double m_progress;
229 bool m_progressHasBeenSet = false;
230
231 long long m_tapeUsedInBytes;
232 bool m_tapeUsedInBytesHasBeenSet = false;
233
234 Aws::String m_kMSKey;
235 bool m_kMSKeyHasBeenSet = false;
236
237 Aws::String m_poolId;
238 bool m_poolIdHasBeenSet = false;
239
240 bool m_worm;
241 bool m_wormHasBeenSet = false;
242
243 Aws::Utils::DateTime m_retentionStartDate;
244 bool m_retentionStartDateHasBeenSet = false;
245
246 Aws::Utils::DateTime m_poolEntryDate;
247 bool m_poolEntryDateHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace StorageGateway
252} // namespace Aws
void SetPoolEntryDate(Aws::Utils::DateTime &&value)
Definition Tape.h:204
Tape & WithPoolEntryDate(const Aws::Utils::DateTime &value)
Definition Tape.h:205
void SetTapeARN(Aws::String &&value)
Definition Tape.h:48
const Aws::String & GetVTLDevice() const
Definition Tape.h:110
bool ProgressHasBeenSet() const
Definition Tape.h:127
AWS_STORAGEGATEWAY_API Tape(Aws::Utils::Json::JsonView jsonValue)
Tape & WithVTLDevice(Aws::String &&value)
Definition Tape.h:116
Tape & WithPoolId(const Aws::String &value)
Definition Tape.h:168
Tape & WithTapeStatus(Aws::String &&value)
Definition Tape.h:101
void SetTapeBarcode(const Aws::String &value)
Definition Tape.h:61
Tape & WithTapeStatus(const char *value)
Definition Tape.h:102
void SetRetentionStartDate(const Aws::Utils::DateTime &value)
Definition Tape.h:191
Tape & WithPoolId(const char *value)
Definition Tape.h:170
bool TapeSizeInBytesHasBeenSet() const
Definition Tape.h:86
Tape & WithWorm(bool value)
Definition Tape.h:181
void SetKMSKey(const Aws::String &value)
Definition Tape.h:147
Tape & WithPoolEntryDate(Aws::Utils::DateTime &&value)
Definition Tape.h:206
const Aws::String & GetTapeARN() const
Definition Tape.h:45
void SetVTLDevice(Aws::String &&value)
Definition Tape.h:113
Tape & WithVTLDevice(const char *value)
Definition Tape.h:117
Tape & WithKMSKey(Aws::String &&value)
Definition Tape.h:151
AWS_STORAGEGATEWAY_API Tape()
Tape & WithTapeStatus(const Aws::String &value)
Definition Tape.h:100
bool VTLDeviceHasBeenSet() const
Definition Tape.h:111
void SetKMSKey(const char *value)
Definition Tape.h:149
Tape & WithTapeCreatedDate(Aws::Utils::DateTime &&value)
Definition Tape.h:78
void SetRetentionStartDate(Aws::Utils::DateTime &&value)
Definition Tape.h:192
void SetTapeCreatedDate(const Aws::Utils::DateTime &value)
Definition Tape.h:75
void SetTapeUsedInBytes(long long value)
Definition Tape.h:139
const Aws::String & GetKMSKey() const
Definition Tape.h:145
void SetKMSKey(Aws::String &&value)
Definition Tape.h:148
double GetProgress() const
Definition Tape.h:126
void SetTapeBarcode(const char *value)
Definition Tape.h:63
Tape & WithTapeUsedInBytes(long long value)
Definition Tape.h:140
void SetProgress(double value)
Definition Tape.h:128
Tape & WithTapeARN(const char *value)
Definition Tape.h:52
const Aws::Utils::DateTime & GetPoolEntryDate() const
Definition Tape.h:201
Tape & WithTapeSizeInBytes(long long value)
Definition Tape.h:88
Tape & WithKMSKey(const Aws::String &value)
Definition Tape.h:150
Tape & WithTapeBarcode(Aws::String &&value)
Definition Tape.h:65
void SetTapeARN(const char *value)
Definition Tape.h:49
void SetTapeStatus(const char *value)
Definition Tape.h:99
void SetPoolId(Aws::String &&value)
Definition Tape.h:166
void SetPoolEntryDate(const Aws::Utils::DateTime &value)
Definition Tape.h:203
void SetTapeStatus(const Aws::String &value)
Definition Tape.h:97
void SetTapeStatus(Aws::String &&value)
Definition Tape.h:98
bool KMSKeyHasBeenSet() const
Definition Tape.h:146
void SetTapeARN(const Aws::String &value)
Definition Tape.h:47
const Aws::Utils::DateTime & GetRetentionStartDate() const
Definition Tape.h:189
void SetPoolId(const Aws::String &value)
Definition Tape.h:165
const Aws::Utils::DateTime & GetTapeCreatedDate() const
Definition Tape.h:73
Tape & WithTapeARN(const Aws::String &value)
Definition Tape.h:50
bool RetentionStartDateHasBeenSet() const
Definition Tape.h:190
const Aws::String & GetTapeBarcode() const
Definition Tape.h:59
void SetPoolId(const char *value)
Definition Tape.h:167
Tape & WithTapeARN(Aws::String &&value)
Definition Tape.h:51
Tape & WithRetentionStartDate(Aws::Utils::DateTime &&value)
Definition Tape.h:194
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool TapeStatusHasBeenSet() const
Definition Tape.h:96
bool TapeBarcodeHasBeenSet() const
Definition Tape.h:60
const Aws::String & GetPoolId() const
Definition Tape.h:163
void SetVTLDevice(const Aws::String &value)
Definition Tape.h:112
void SetTapeCreatedDate(Aws::Utils::DateTime &&value)
Definition Tape.h:76
void SetTapeSizeInBytes(long long value)
Definition Tape.h:87
bool TapeARNHasBeenSet() const
Definition Tape.h:46
const Aws::String & GetTapeStatus() const
Definition Tape.h:95
bool TapeCreatedDateHasBeenSet() const
Definition Tape.h:74
Tape & WithTapeBarcode(const Aws::String &value)
Definition Tape.h:64
AWS_STORAGEGATEWAY_API Tape & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetTapeUsedInBytes() const
Definition Tape.h:137
void SetWorm(bool value)
Definition Tape.h:180
Tape & WithKMSKey(const char *value)
Definition Tape.h:152
long long GetTapeSizeInBytes() const
Definition Tape.h:85
bool PoolIdHasBeenSet() const
Definition Tape.h:164
Tape & WithTapeCreatedDate(const Aws::Utils::DateTime &value)
Definition Tape.h:77
Tape & WithTapeBarcode(const char *value)
Definition Tape.h:66
Tape & WithPoolId(Aws::String &&value)
Definition Tape.h:169
bool TapeUsedInBytesHasBeenSet() const
Definition Tape.h:138
void SetVTLDevice(const char *value)
Definition Tape.h:114
Tape & WithProgress(double value)
Definition Tape.h:129
bool PoolEntryDateHasBeenSet() const
Definition Tape.h:202
void SetTapeBarcode(Aws::String &&value)
Definition Tape.h:62
Tape & WithRetentionStartDate(const Aws::Utils::DateTime &value)
Definition Tape.h:193
Tape & WithVTLDevice(const Aws::String &value)
Definition Tape.h:115
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue