AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TapeArchive.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
34 {
35 public:
36 AWS_STORAGEGATEWAY_API TapeArchive();
37 AWS_STORAGEGATEWAY_API TapeArchive(Aws::Utils::Json::JsonView jsonValue);
38 AWS_STORAGEGATEWAY_API TapeArchive& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetTapeARN() const{ return m_tapeARN; }
47 inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
48 inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
49 inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::move(value); }
50 inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); }
51 inline TapeArchive& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
52 inline TapeArchive& WithTapeARN(Aws::String&& value) { SetTapeARN(std::move(value)); return *this;}
53 inline TapeArchive& WithTapeARN(const char* value) { SetTapeARN(value); return *this;}
55
57
60 inline const Aws::String& GetTapeBarcode() const{ return m_tapeBarcode; }
61 inline bool TapeBarcodeHasBeenSet() const { return m_tapeBarcodeHasBeenSet; }
62 inline void SetTapeBarcode(const Aws::String& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = value; }
63 inline void SetTapeBarcode(Aws::String&& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = std::move(value); }
64 inline void SetTapeBarcode(const char* value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode.assign(value); }
65 inline TapeArchive& WithTapeBarcode(const Aws::String& value) { SetTapeBarcode(value); return *this;}
66 inline TapeArchive& WithTapeBarcode(Aws::String&& value) { SetTapeBarcode(std::move(value)); return *this;}
67 inline TapeArchive& WithTapeBarcode(const char* value) { SetTapeBarcode(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetTapeCreatedDate() const{ return m_tapeCreatedDate; }
75 inline bool TapeCreatedDateHasBeenSet() const { return m_tapeCreatedDateHasBeenSet; }
76 inline void SetTapeCreatedDate(const Aws::Utils::DateTime& value) { m_tapeCreatedDateHasBeenSet = true; m_tapeCreatedDate = value; }
77 inline void SetTapeCreatedDate(Aws::Utils::DateTime&& value) { m_tapeCreatedDateHasBeenSet = true; m_tapeCreatedDate = std::move(value); }
78 inline TapeArchive& WithTapeCreatedDate(const Aws::Utils::DateTime& value) { SetTapeCreatedDate(value); return *this;}
79 inline TapeArchive& WithTapeCreatedDate(Aws::Utils::DateTime&& value) { SetTapeCreatedDate(std::move(value)); return *this;}
81
83
86 inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; }
87 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
88 inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
89 inline TapeArchive& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
91
93
98 inline const Aws::Utils::DateTime& GetCompletionTime() const{ return m_completionTime; }
99 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
100 inline void SetCompletionTime(const Aws::Utils::DateTime& value) { m_completionTimeHasBeenSet = true; m_completionTime = value; }
101 inline void SetCompletionTime(Aws::Utils::DateTime&& value) { m_completionTimeHasBeenSet = true; m_completionTime = std::move(value); }
102 inline TapeArchive& WithCompletionTime(const Aws::Utils::DateTime& value) { SetCompletionTime(value); return *this;}
103 inline TapeArchive& WithCompletionTime(Aws::Utils::DateTime&& value) { SetCompletionTime(std::move(value)); return *this;}
105
107
112 inline const Aws::String& GetRetrievedTo() const{ return m_retrievedTo; }
113 inline bool RetrievedToHasBeenSet() const { return m_retrievedToHasBeenSet; }
114 inline void SetRetrievedTo(const Aws::String& value) { m_retrievedToHasBeenSet = true; m_retrievedTo = value; }
115 inline void SetRetrievedTo(Aws::String&& value) { m_retrievedToHasBeenSet = true; m_retrievedTo = std::move(value); }
116 inline void SetRetrievedTo(const char* value) { m_retrievedToHasBeenSet = true; m_retrievedTo.assign(value); }
117 inline TapeArchive& WithRetrievedTo(const Aws::String& value) { SetRetrievedTo(value); return *this;}
118 inline TapeArchive& WithRetrievedTo(Aws::String&& value) { SetRetrievedTo(std::move(value)); return *this;}
119 inline TapeArchive& WithRetrievedTo(const char* value) { SetRetrievedTo(value); return *this;}
121
123
126 inline const Aws::String& GetTapeStatus() const{ return m_tapeStatus; }
127 inline bool TapeStatusHasBeenSet() const { return m_tapeStatusHasBeenSet; }
128 inline void SetTapeStatus(const Aws::String& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = value; }
129 inline void SetTapeStatus(Aws::String&& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = std::move(value); }
130 inline void SetTapeStatus(const char* value) { m_tapeStatusHasBeenSet = true; m_tapeStatus.assign(value); }
131 inline TapeArchive& WithTapeStatus(const Aws::String& value) { SetTapeStatus(value); return *this;}
132 inline TapeArchive& WithTapeStatus(Aws::String&& value) { SetTapeStatus(std::move(value)); return *this;}
133 inline TapeArchive& WithTapeStatus(const char* value) { SetTapeStatus(value); return *this;}
135
137
141 inline long long GetTapeUsedInBytes() const{ return m_tapeUsedInBytes; }
142 inline bool TapeUsedInBytesHasBeenSet() const { return m_tapeUsedInBytesHasBeenSet; }
143 inline void SetTapeUsedInBytes(long long value) { m_tapeUsedInBytesHasBeenSet = true; m_tapeUsedInBytes = value; }
144 inline TapeArchive& WithTapeUsedInBytes(long long value) { SetTapeUsedInBytes(value); return *this;}
146
148
149 inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
150 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
151 inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
152 inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
153 inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
154 inline TapeArchive& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
155 inline TapeArchive& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
156 inline TapeArchive& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
158
160
164 inline const Aws::String& GetPoolId() const{ return m_poolId; }
165 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
166 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
167 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
168 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
169 inline TapeArchive& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
170 inline TapeArchive& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
171 inline TapeArchive& WithPoolId(const char* value) { SetPoolId(value); return *this;}
173
175
179 inline bool GetWorm() const{ return m_worm; }
180 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
181 inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
182 inline TapeArchive& WithWorm(bool value) { SetWorm(value); return *this;}
184
186
190 inline const Aws::Utils::DateTime& GetRetentionStartDate() const{ return m_retentionStartDate; }
191 inline bool RetentionStartDateHasBeenSet() const { return m_retentionStartDateHasBeenSet; }
192 inline void SetRetentionStartDate(const Aws::Utils::DateTime& value) { m_retentionStartDateHasBeenSet = true; m_retentionStartDate = value; }
193 inline void SetRetentionStartDate(Aws::Utils::DateTime&& value) { m_retentionStartDateHasBeenSet = true; m_retentionStartDate = std::move(value); }
195 inline TapeArchive& WithRetentionStartDate(Aws::Utils::DateTime&& value) { SetRetentionStartDate(std::move(value)); return *this;}
197
199
203 inline const Aws::Utils::DateTime& GetPoolEntryDate() const{ return m_poolEntryDate; }
204 inline bool PoolEntryDateHasBeenSet() const { return m_poolEntryDateHasBeenSet; }
205 inline void SetPoolEntryDate(const Aws::Utils::DateTime& value) { m_poolEntryDateHasBeenSet = true; m_poolEntryDate = value; }
206 inline void SetPoolEntryDate(Aws::Utils::DateTime&& value) { m_poolEntryDateHasBeenSet = true; m_poolEntryDate = std::move(value); }
207 inline TapeArchive& WithPoolEntryDate(const Aws::Utils::DateTime& value) { SetPoolEntryDate(value); return *this;}
208 inline TapeArchive& WithPoolEntryDate(Aws::Utils::DateTime&& value) { SetPoolEntryDate(std::move(value)); return *this;}
210 private:
211
212 Aws::String m_tapeARN;
213 bool m_tapeARNHasBeenSet = false;
214
215 Aws::String m_tapeBarcode;
216 bool m_tapeBarcodeHasBeenSet = false;
217
218 Aws::Utils::DateTime m_tapeCreatedDate;
219 bool m_tapeCreatedDateHasBeenSet = false;
220
221 long long m_tapeSizeInBytes;
222 bool m_tapeSizeInBytesHasBeenSet = false;
223
224 Aws::Utils::DateTime m_completionTime;
225 bool m_completionTimeHasBeenSet = false;
226
227 Aws::String m_retrievedTo;
228 bool m_retrievedToHasBeenSet = false;
229
230 Aws::String m_tapeStatus;
231 bool m_tapeStatusHasBeenSet = false;
232
233 long long m_tapeUsedInBytes;
234 bool m_tapeUsedInBytesHasBeenSet = false;
235
236 Aws::String m_kMSKey;
237 bool m_kMSKeyHasBeenSet = false;
238
239 Aws::String m_poolId;
240 bool m_poolIdHasBeenSet = false;
241
242 bool m_worm;
243 bool m_wormHasBeenSet = false;
244
245 Aws::Utils::DateTime m_retentionStartDate;
246 bool m_retentionStartDateHasBeenSet = false;
247
248 Aws::Utils::DateTime m_poolEntryDate;
249 bool m_poolEntryDateHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace StorageGateway
254} // namespace Aws
TapeArchive & WithRetentionStartDate(const Aws::Utils::DateTime &value)
void SetKMSKey(const Aws::String &value)
TapeArchive & WithTapeARN(const char *value)
Definition TapeArchive.h:53
TapeArchive & WithTapeSizeInBytes(long long value)
Definition TapeArchive.h:89
void SetRetentionStartDate(Aws::Utils::DateTime &&value)
TapeArchive & WithKMSKey(const Aws::String &value)
TapeArchive & WithCompletionTime(Aws::Utils::DateTime &&value)
void SetTapeBarcode(const char *value)
Definition TapeArchive.h:64
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetPoolEntryDate() const
void SetTapeARN(Aws::String &&value)
Definition TapeArchive.h:49
void SetKMSKey(Aws::String &&value)
TapeArchive & WithTapeARN(const Aws::String &value)
Definition TapeArchive.h:51
void SetTapeStatus(Aws::String &&value)
TapeArchive & WithTapeStatus(const Aws::String &value)
TapeArchive & WithPoolEntryDate(Aws::Utils::DateTime &&value)
const Aws::String & GetTapeBarcode() const
Definition TapeArchive.h:60
const Aws::String & GetTapeStatus() const
void SetTapeStatus(const Aws::String &value)
TapeArchive & WithPoolId(const Aws::String &value)
TapeArchive & WithRetentionStartDate(Aws::Utils::DateTime &&value)
void SetPoolId(Aws::String &&value)
const Aws::String & GetRetrievedTo() const
void SetCompletionTime(const Aws::Utils::DateTime &value)
TapeArchive & WithTapeStatus(Aws::String &&value)
void SetCompletionTime(Aws::Utils::DateTime &&value)
TapeArchive & WithPoolEntryDate(const Aws::Utils::DateTime &value)
void SetRetrievedTo(const Aws::String &value)
const Aws::Utils::DateTime & GetCompletionTime() const
Definition TapeArchive.h:98
TapeArchive & WithKMSKey(const char *value)
const Aws::Utils::DateTime & GetRetentionStartDate() const
const Aws::Utils::DateTime & GetTapeCreatedDate() const
Definition TapeArchive.h:74
void SetTapeUsedInBytes(long long value)
void SetPoolId(const Aws::String &value)
TapeArchive & WithPoolId(const char *value)
void SetTapeARN(const Aws::String &value)
Definition TapeArchive.h:48
TapeArchive & WithKMSKey(Aws::String &&value)
TapeArchive & WithTapeARN(Aws::String &&value)
Definition TapeArchive.h:52
TapeArchive & WithWorm(bool value)
TapeArchive & WithTapeStatus(const char *value)
const Aws::String & GetPoolId() const
void SetTapeBarcode(Aws::String &&value)
Definition TapeArchive.h:63
AWS_STORAGEGATEWAY_API TapeArchive & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTapeCreatedDate(const Aws::Utils::DateTime &value)
Definition TapeArchive.h:76
void SetRetrievedTo(const char *value)
void SetRetrievedTo(Aws::String &&value)
void SetPoolEntryDate(Aws::Utils::DateTime &&value)
AWS_STORAGEGATEWAY_API TapeArchive(Aws::Utils::Json::JsonView jsonValue)
TapeArchive & WithTapeUsedInBytes(long long value)
void SetRetentionStartDate(const Aws::Utils::DateTime &value)
TapeArchive & WithTapeBarcode(const Aws::String &value)
Definition TapeArchive.h:65
TapeArchive & WithTapeBarcode(Aws::String &&value)
Definition TapeArchive.h:66
TapeArchive & WithRetrievedTo(Aws::String &&value)
void SetTapeStatus(const char *value)
const Aws::String & GetTapeARN() const
Definition TapeArchive.h:46
void SetTapeCreatedDate(Aws::Utils::DateTime &&value)
Definition TapeArchive.h:77
TapeArchive & WithTapeCreatedDate(const Aws::Utils::DateTime &value)
Definition TapeArchive.h:78
void SetTapeARN(const char *value)
Definition TapeArchive.h:50
TapeArchive & WithTapeCreatedDate(Aws::Utils::DateTime &&value)
Definition TapeArchive.h:79
TapeArchive & WithRetrievedTo(const char *value)
TapeArchive & WithPoolId(Aws::String &&value)
void SetTapeSizeInBytes(long long value)
Definition TapeArchive.h:88
void SetPoolEntryDate(const Aws::Utils::DateTime &value)
TapeArchive & WithRetrievedTo(const Aws::String &value)
const Aws::String & GetKMSKey() const
void SetTapeBarcode(const Aws::String &value)
Definition TapeArchive.h:62
AWS_STORAGEGATEWAY_API TapeArchive()
TapeArchive & WithCompletionTime(const Aws::Utils::DateTime &value)
TapeArchive & WithTapeBarcode(const char *value)
Definition TapeArchive.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue