AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TapeARNT = Aws::String>
49 void SetTapeARN(TapeARNT&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::forward<TapeARNT>(value); }
50 template<typename TapeARNT = Aws::String>
51 TapeArchive& WithTapeARN(TapeARNT&& value) { SetTapeARN(std::forward<TapeARNT>(value)); return *this;}
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) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = std::forward<TapeBarcodeT>(value); }
62 template<typename TapeBarcodeT = Aws::String>
63 TapeArchive& WithTapeBarcode(TapeBarcodeT&& value) { SetTapeBarcode(std::forward<TapeBarcodeT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetTapeCreatedDate() const { return m_tapeCreatedDate; }
71 inline bool TapeCreatedDateHasBeenSet() const { return m_tapeCreatedDateHasBeenSet; }
72 template<typename TapeCreatedDateT = Aws::Utils::DateTime>
73 void SetTapeCreatedDate(TapeCreatedDateT&& value) { m_tapeCreatedDateHasBeenSet = true; m_tapeCreatedDate = std::forward<TapeCreatedDateT>(value); }
74 template<typename TapeCreatedDateT = Aws::Utils::DateTime>
75 TapeArchive& WithTapeCreatedDate(TapeCreatedDateT&& value) { SetTapeCreatedDate(std::forward<TapeCreatedDateT>(value)); return *this;}
77
79
82 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
83 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
84 inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
85 inline TapeArchive& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
87
89
94 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
95 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
96 template<typename CompletionTimeT = Aws::Utils::DateTime>
97 void SetCompletionTime(CompletionTimeT&& value) { m_completionTimeHasBeenSet = true; m_completionTime = std::forward<CompletionTimeT>(value); }
98 template<typename CompletionTimeT = Aws::Utils::DateTime>
99 TapeArchive& WithCompletionTime(CompletionTimeT&& value) { SetCompletionTime(std::forward<CompletionTimeT>(value)); return *this;}
101
103
108 inline const Aws::String& GetRetrievedTo() const { return m_retrievedTo; }
109 inline bool RetrievedToHasBeenSet() const { return m_retrievedToHasBeenSet; }
110 template<typename RetrievedToT = Aws::String>
111 void SetRetrievedTo(RetrievedToT&& value) { m_retrievedToHasBeenSet = true; m_retrievedTo = std::forward<RetrievedToT>(value); }
112 template<typename RetrievedToT = Aws::String>
113 TapeArchive& WithRetrievedTo(RetrievedToT&& value) { SetRetrievedTo(std::forward<RetrievedToT>(value)); return *this;}
115
117
120 inline const Aws::String& GetTapeStatus() const { return m_tapeStatus; }
121 inline bool TapeStatusHasBeenSet() const { return m_tapeStatusHasBeenSet; }
122 template<typename TapeStatusT = Aws::String>
123 void SetTapeStatus(TapeStatusT&& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = std::forward<TapeStatusT>(value); }
124 template<typename TapeStatusT = Aws::String>
125 TapeArchive& WithTapeStatus(TapeStatusT&& value) { SetTapeStatus(std::forward<TapeStatusT>(value)); return *this;}
127
129
133 inline long long GetTapeUsedInBytes() const { return m_tapeUsedInBytes; }
134 inline bool TapeUsedInBytesHasBeenSet() const { return m_tapeUsedInBytesHasBeenSet; }
135 inline void SetTapeUsedInBytes(long long value) { m_tapeUsedInBytesHasBeenSet = true; m_tapeUsedInBytes = value; }
136 inline TapeArchive& WithTapeUsedInBytes(long long value) { SetTapeUsedInBytes(value); return *this;}
138
140
141 inline const Aws::String& GetKMSKey() const { return m_kMSKey; }
142 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
143 template<typename KMSKeyT = Aws::String>
144 void SetKMSKey(KMSKeyT&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::forward<KMSKeyT>(value); }
145 template<typename KMSKeyT = Aws::String>
146 TapeArchive& WithKMSKey(KMSKeyT&& value) { SetKMSKey(std::forward<KMSKeyT>(value)); return *this;}
148
150
154 inline const Aws::String& GetPoolId() const { return m_poolId; }
155 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
156 template<typename PoolIdT = Aws::String>
157 void SetPoolId(PoolIdT&& value) { m_poolIdHasBeenSet = true; m_poolId = std::forward<PoolIdT>(value); }
158 template<typename PoolIdT = Aws::String>
159 TapeArchive& WithPoolId(PoolIdT&& value) { SetPoolId(std::forward<PoolIdT>(value)); return *this;}
161
163
167 inline bool GetWorm() const { return m_worm; }
168 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
169 inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
170 inline TapeArchive& WithWorm(bool value) { SetWorm(value); return *this;}
172
174
178 inline const Aws::Utils::DateTime& GetRetentionStartDate() const { return m_retentionStartDate; }
179 inline bool RetentionStartDateHasBeenSet() const { return m_retentionStartDateHasBeenSet; }
180 template<typename RetentionStartDateT = Aws::Utils::DateTime>
181 void SetRetentionStartDate(RetentionStartDateT&& value) { m_retentionStartDateHasBeenSet = true; m_retentionStartDate = std::forward<RetentionStartDateT>(value); }
182 template<typename RetentionStartDateT = Aws::Utils::DateTime>
183 TapeArchive& WithRetentionStartDate(RetentionStartDateT&& value) { SetRetentionStartDate(std::forward<RetentionStartDateT>(value)); return *this;}
185
187
191 inline const Aws::Utils::DateTime& GetPoolEntryDate() const { return m_poolEntryDate; }
192 inline bool PoolEntryDateHasBeenSet() const { return m_poolEntryDateHasBeenSet; }
193 template<typename PoolEntryDateT = Aws::Utils::DateTime>
194 void SetPoolEntryDate(PoolEntryDateT&& value) { m_poolEntryDateHasBeenSet = true; m_poolEntryDate = std::forward<PoolEntryDateT>(value); }
195 template<typename PoolEntryDateT = Aws::Utils::DateTime>
196 TapeArchive& WithPoolEntryDate(PoolEntryDateT&& value) { SetPoolEntryDate(std::forward<PoolEntryDateT>(value)); return *this;}
198 private:
199
200 Aws::String m_tapeARN;
201 bool m_tapeARNHasBeenSet = false;
202
203 Aws::String m_tapeBarcode;
204 bool m_tapeBarcodeHasBeenSet = false;
205
206 Aws::Utils::DateTime m_tapeCreatedDate{};
207 bool m_tapeCreatedDateHasBeenSet = false;
208
209 long long m_tapeSizeInBytes{0};
210 bool m_tapeSizeInBytesHasBeenSet = false;
211
212 Aws::Utils::DateTime m_completionTime{};
213 bool m_completionTimeHasBeenSet = false;
214
215 Aws::String m_retrievedTo;
216 bool m_retrievedToHasBeenSet = false;
217
218 Aws::String m_tapeStatus;
219 bool m_tapeStatusHasBeenSet = false;
220
221 long long m_tapeUsedInBytes{0};
222 bool m_tapeUsedInBytesHasBeenSet = false;
223
224 Aws::String m_kMSKey;
225 bool m_kMSKeyHasBeenSet = false;
226
227 Aws::String m_poolId;
228 bool m_poolIdHasBeenSet = false;
229
230 bool m_worm{false};
231 bool m_wormHasBeenSet = false;
232
233 Aws::Utils::DateTime m_retentionStartDate{};
234 bool m_retentionStartDateHasBeenSet = false;
235
236 Aws::Utils::DateTime m_poolEntryDate{};
237 bool m_poolEntryDateHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace StorageGateway
242} // namespace Aws
AWS_STORAGEGATEWAY_API TapeArchive()=default
void SetCompletionTime(CompletionTimeT &&value)
Definition TapeArchive.h:97
TapeArchive & WithTapeSizeInBytes(long long value)
Definition TapeArchive.h:85
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetPoolEntryDate() const
TapeArchive & WithTapeCreatedDate(TapeCreatedDateT &&value)
Definition TapeArchive.h:75
const Aws::String & GetTapeBarcode() const
Definition TapeArchive.h:58
const Aws::String & GetTapeStatus() const
TapeArchive & WithTapeARN(TapeARNT &&value)
Definition TapeArchive.h:51
TapeArchive & WithTapeStatus(TapeStatusT &&value)
void SetRetentionStartDate(RetentionStartDateT &&value)
const Aws::String & GetRetrievedTo() const
TapeArchive & WithTapeBarcode(TapeBarcodeT &&value)
Definition TapeArchive.h:63
const Aws::Utils::DateTime & GetCompletionTime() const
Definition TapeArchive.h:94
const Aws::Utils::DateTime & GetRetentionStartDate() const
TapeArchive & WithPoolId(PoolIdT &&value)
const Aws::Utils::DateTime & GetTapeCreatedDate() const
Definition TapeArchive.h:70
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)
Definition TapeArchive.h:99
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:46
void SetTapeCreatedDate(TapeCreatedDateT &&value)
Definition TapeArchive.h:73
TapeArchive & WithRetentionStartDate(RetentionStartDateT &&value)
void SetTapeSizeInBytes(long long value)
Definition TapeArchive.h:84
const Aws::String & GetKMSKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue