AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
TapeArchive.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
30 public:
31 AWS_STORAGEGATEWAY_API TapeArchive() = default;
32 AWS_STORAGEGATEWAY_API TapeArchive(Aws::Utils::Json::JsonView jsonValue);
33 AWS_STORAGEGATEWAY_API TapeArchive& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTapeARN() const { return m_tapeARN; }
41 inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
42 template <typename TapeARNT = Aws::String>
43 void SetTapeARN(TapeARNT&& value) {
44 m_tapeARNHasBeenSet = true;
45 m_tapeARN = std::forward<TapeARNT>(value);
46 }
47 template <typename TapeARNT = Aws::String>
48 TapeArchive& WithTapeARN(TapeARNT&& value) {
49 SetTapeARN(std::forward<TapeARNT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTapeBarcode() const { return m_tapeBarcode; }
59 inline bool TapeBarcodeHasBeenSet() const { return m_tapeBarcodeHasBeenSet; }
60 template <typename TapeBarcodeT = Aws::String>
61 void SetTapeBarcode(TapeBarcodeT&& value) {
62 m_tapeBarcodeHasBeenSet = true;
63 m_tapeBarcode = std::forward<TapeBarcodeT>(value);
64 }
65 template <typename TapeBarcodeT = Aws::String>
66 TapeArchive& WithTapeBarcode(TapeBarcodeT&& value) {
67 SetTapeBarcode(std::forward<TapeBarcodeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetTapeCreatedDate() const { return m_tapeCreatedDate; }
77 inline bool TapeCreatedDateHasBeenSet() const { return m_tapeCreatedDateHasBeenSet; }
78 template <typename TapeCreatedDateT = Aws::Utils::DateTime>
79 void SetTapeCreatedDate(TapeCreatedDateT&& value) {
80 m_tapeCreatedDateHasBeenSet = true;
81 m_tapeCreatedDate = std::forward<TapeCreatedDateT>(value);
82 }
83 template <typename TapeCreatedDateT = Aws::Utils::DateTime>
84 TapeArchive& WithTapeCreatedDate(TapeCreatedDateT&& value) {
85 SetTapeCreatedDate(std::forward<TapeCreatedDateT>(value));
86 return *this;
87 }
89
91
94 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
95 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
96 inline void SetTapeSizeInBytes(long long value) {
97 m_tapeSizeInBytesHasBeenSet = true;
98 m_tapeSizeInBytes = value;
99 }
100 inline TapeArchive& WithTapeSizeInBytes(long long value) {
101 SetTapeSizeInBytes(value);
102 return *this;
103 }
105
107
112 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
113 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
114 template <typename CompletionTimeT = Aws::Utils::DateTime>
115 void SetCompletionTime(CompletionTimeT&& value) {
116 m_completionTimeHasBeenSet = true;
117 m_completionTime = std::forward<CompletionTimeT>(value);
118 }
119 template <typename CompletionTimeT = Aws::Utils::DateTime>
120 TapeArchive& WithCompletionTime(CompletionTimeT&& value) {
121 SetCompletionTime(std::forward<CompletionTimeT>(value));
122 return *this;
123 }
125
127
132 inline const Aws::String& GetRetrievedTo() const { return m_retrievedTo; }
133 inline bool RetrievedToHasBeenSet() const { return m_retrievedToHasBeenSet; }
134 template <typename RetrievedToT = Aws::String>
135 void SetRetrievedTo(RetrievedToT&& value) {
136 m_retrievedToHasBeenSet = true;
137 m_retrievedTo = std::forward<RetrievedToT>(value);
138 }
139 template <typename RetrievedToT = Aws::String>
140 TapeArchive& WithRetrievedTo(RetrievedToT&& value) {
141 SetRetrievedTo(std::forward<RetrievedToT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetTapeStatus() const { return m_tapeStatus; }
151 inline bool TapeStatusHasBeenSet() const { return m_tapeStatusHasBeenSet; }
152 template <typename TapeStatusT = Aws::String>
153 void SetTapeStatus(TapeStatusT&& value) {
154 m_tapeStatusHasBeenSet = true;
155 m_tapeStatus = std::forward<TapeStatusT>(value);
156 }
157 template <typename TapeStatusT = Aws::String>
158 TapeArchive& WithTapeStatus(TapeStatusT&& value) {
159 SetTapeStatus(std::forward<TapeStatusT>(value));
160 return *this;
161 }
163
165
169 inline long long GetTapeUsedInBytes() const { return m_tapeUsedInBytes; }
170 inline bool TapeUsedInBytesHasBeenSet() const { return m_tapeUsedInBytesHasBeenSet; }
171 inline void SetTapeUsedInBytes(long long value) {
172 m_tapeUsedInBytesHasBeenSet = true;
173 m_tapeUsedInBytes = value;
174 }
175 inline TapeArchive& WithTapeUsedInBytes(long long value) {
176 SetTapeUsedInBytes(value);
177 return *this;
178 }
180
182
183 inline const Aws::String& GetKMSKey() const { return m_kMSKey; }
184 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
185 template <typename KMSKeyT = Aws::String>
186 void SetKMSKey(KMSKeyT&& value) {
187 m_kMSKeyHasBeenSet = true;
188 m_kMSKey = std::forward<KMSKeyT>(value);
189 }
190 template <typename KMSKeyT = Aws::String>
191 TapeArchive& WithKMSKey(KMSKeyT&& value) {
192 SetKMSKey(std::forward<KMSKeyT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::String& GetPoolId() const { return m_poolId; }
203 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
204 template <typename PoolIdT = Aws::String>
205 void SetPoolId(PoolIdT&& value) {
206 m_poolIdHasBeenSet = true;
207 m_poolId = std::forward<PoolIdT>(value);
208 }
209 template <typename PoolIdT = Aws::String>
210 TapeArchive& WithPoolId(PoolIdT&& value) {
211 SetPoolId(std::forward<PoolIdT>(value));
212 return *this;
213 }
215
217
221 inline bool GetWorm() const { return m_worm; }
222 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
223 inline void SetWorm(bool value) {
224 m_wormHasBeenSet = true;
225 m_worm = value;
226 }
227 inline TapeArchive& WithWorm(bool value) {
228 SetWorm(value);
229 return *this;
230 }
232
234
238 inline const Aws::Utils::DateTime& GetRetentionStartDate() const { return m_retentionStartDate; }
239 inline bool RetentionStartDateHasBeenSet() const { return m_retentionStartDateHasBeenSet; }
240 template <typename RetentionStartDateT = Aws::Utils::DateTime>
241 void SetRetentionStartDate(RetentionStartDateT&& value) {
242 m_retentionStartDateHasBeenSet = true;
243 m_retentionStartDate = std::forward<RetentionStartDateT>(value);
244 }
245 template <typename RetentionStartDateT = Aws::Utils::DateTime>
246 TapeArchive& WithRetentionStartDate(RetentionStartDateT&& value) {
247 SetRetentionStartDate(std::forward<RetentionStartDateT>(value));
248 return *this;
249 }
251
253
257 inline const Aws::Utils::DateTime& GetPoolEntryDate() const { return m_poolEntryDate; }
258 inline bool PoolEntryDateHasBeenSet() const { return m_poolEntryDateHasBeenSet; }
259 template <typename PoolEntryDateT = Aws::Utils::DateTime>
260 void SetPoolEntryDate(PoolEntryDateT&& value) {
261 m_poolEntryDateHasBeenSet = true;
262 m_poolEntryDate = std::forward<PoolEntryDateT>(value);
263 }
264 template <typename PoolEntryDateT = Aws::Utils::DateTime>
265 TapeArchive& WithPoolEntryDate(PoolEntryDateT&& value) {
266 SetPoolEntryDate(std::forward<PoolEntryDateT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_tapeARN;
272
273 Aws::String m_tapeBarcode;
274
275 Aws::Utils::DateTime m_tapeCreatedDate{};
276
277 long long m_tapeSizeInBytes{0};
278
279 Aws::Utils::DateTime m_completionTime{};
280
281 Aws::String m_retrievedTo;
282
283 Aws::String m_tapeStatus;
284
285 long long m_tapeUsedInBytes{0};
286
287 Aws::String m_kMSKey;
288
289 Aws::String m_poolId;
290
291 bool m_worm{false};
292
293 Aws::Utils::DateTime m_retentionStartDate{};
294
295 Aws::Utils::DateTime m_poolEntryDate{};
296 bool m_tapeARNHasBeenSet = false;
297 bool m_tapeBarcodeHasBeenSet = false;
298 bool m_tapeCreatedDateHasBeenSet = false;
299 bool m_tapeSizeInBytesHasBeenSet = false;
300 bool m_completionTimeHasBeenSet = false;
301 bool m_retrievedToHasBeenSet = false;
302 bool m_tapeStatusHasBeenSet = false;
303 bool m_tapeUsedInBytesHasBeenSet = false;
304 bool m_kMSKeyHasBeenSet = false;
305 bool m_poolIdHasBeenSet = false;
306 bool m_wormHasBeenSet = false;
307 bool m_retentionStartDateHasBeenSet = false;
308 bool m_poolEntryDateHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace StorageGateway
313} // namespace Aws
AWS_STORAGEGATEWAY_API TapeArchive()=default
void SetCompletionTime(CompletionTimeT &&value)
TapeArchive & WithTapeSizeInBytes(long long value)
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetPoolEntryDate() const
TapeArchive & WithTapeCreatedDate(TapeCreatedDateT &&value)
Definition TapeArchive.h:84
const Aws::String & GetTapeBarcode() const
Definition TapeArchive.h:58
const Aws::String & GetTapeStatus() const
TapeArchive & WithTapeARN(TapeARNT &&value)
Definition TapeArchive.h:48
TapeArchive & WithTapeStatus(TapeStatusT &&value)
void SetRetentionStartDate(RetentionStartDateT &&value)
const Aws::String & GetRetrievedTo() const
TapeArchive & WithTapeBarcode(TapeBarcodeT &&value)
Definition TapeArchive.h:66
const Aws::Utils::DateTime & GetCompletionTime() const
const Aws::Utils::DateTime & GetRetentionStartDate() const
TapeArchive & WithPoolId(PoolIdT &&value)
const Aws::Utils::DateTime & GetTapeCreatedDate() const
Definition TapeArchive.h:76
void SetRetrievedTo(RetrievedToT &&value)
void SetTapeUsedInBytes(long long value)
TapeArchive & WithWorm(bool value)
const Aws::String & GetPoolId() const
AWS_STORAGEGATEWAY_API TapeArchive & operator=(Aws::Utils::Json::JsonView jsonValue)
TapeArchive & WithCompletionTime(CompletionTimeT &&value)
void SetTapeBarcode(TapeBarcodeT &&value)
Definition TapeArchive.h:61
void SetTapeStatus(TapeStatusT &&value)
void SetPoolEntryDate(PoolEntryDateT &&value)
TapeArchive & WithRetrievedTo(RetrievedToT &&value)
AWS_STORAGEGATEWAY_API TapeArchive(Aws::Utils::Json::JsonView jsonValue)
TapeArchive & WithTapeUsedInBytes(long long value)
TapeArchive & WithKMSKey(KMSKeyT &&value)
TapeArchive & WithPoolEntryDate(PoolEntryDateT &&value)
const Aws::String & GetTapeARN() const
Definition TapeArchive.h:40
void SetTapeCreatedDate(TapeCreatedDateT &&value)
Definition TapeArchive.h:79
TapeArchive & WithRetentionStartDate(RetentionStartDateT &&value)
void SetTapeSizeInBytes(long long value)
Definition TapeArchive.h:96
const Aws::String & GetKMSKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue