AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
TapeInfo.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
28class TapeInfo {
29 public:
30 AWS_STORAGEGATEWAY_API TapeInfo() = default;
31 AWS_STORAGEGATEWAY_API TapeInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_STORAGEGATEWAY_API TapeInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetTapeARN() const { return m_tapeARN; }
40 inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
41 template <typename TapeARNT = Aws::String>
42 void SetTapeARN(TapeARNT&& value) {
43 m_tapeARNHasBeenSet = true;
44 m_tapeARN = std::forward<TapeARNT>(value);
45 }
46 template <typename TapeARNT = Aws::String>
47 TapeInfo& WithTapeARN(TapeARNT&& value) {
48 SetTapeARN(std::forward<TapeARNT>(value));
49 return *this;
50 }
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) {
61 m_tapeBarcodeHasBeenSet = true;
62 m_tapeBarcode = std::forward<TapeBarcodeT>(value);
63 }
64 template <typename TapeBarcodeT = Aws::String>
65 TapeInfo& WithTapeBarcode(TapeBarcodeT&& value) {
66 SetTapeBarcode(std::forward<TapeBarcodeT>(value));
67 return *this;
68 }
70
72
75 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
76 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
77 inline void SetTapeSizeInBytes(long long value) {
78 m_tapeSizeInBytesHasBeenSet = true;
79 m_tapeSizeInBytes = value;
80 }
81 inline TapeInfo& WithTapeSizeInBytes(long long value) {
82 SetTapeSizeInBytes(value);
83 return *this;
84 }
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) {
95 m_tapeStatusHasBeenSet = true;
96 m_tapeStatus = std::forward<TapeStatusT>(value);
97 }
98 template <typename TapeStatusT = Aws::String>
99 TapeInfo& WithTapeStatus(TapeStatusT&& value) {
100 SetTapeStatus(std::forward<TapeStatusT>(value));
101 return *this;
102 }
104
106
111 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
112 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
113 template <typename GatewayARNT = Aws::String>
114 void SetGatewayARN(GatewayARNT&& value) {
115 m_gatewayARNHasBeenSet = true;
116 m_gatewayARN = std::forward<GatewayARNT>(value);
117 }
118 template <typename GatewayARNT = Aws::String>
119 TapeInfo& WithGatewayARN(GatewayARNT&& value) {
120 SetGatewayARN(std::forward<GatewayARNT>(value));
121 return *this;
122 }
124
126
133 inline const Aws::String& GetPoolId() const { return m_poolId; }
134 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
135 template <typename PoolIdT = Aws::String>
136 void SetPoolId(PoolIdT&& value) {
137 m_poolIdHasBeenSet = true;
138 m_poolId = std::forward<PoolIdT>(value);
139 }
140 template <typename PoolIdT = Aws::String>
141 TapeInfo& WithPoolId(PoolIdT&& value) {
142 SetPoolId(std::forward<PoolIdT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetRetentionStartDate() const { return m_retentionStartDate; }
152 inline bool RetentionStartDateHasBeenSet() const { return m_retentionStartDateHasBeenSet; }
153 template <typename RetentionStartDateT = Aws::Utils::DateTime>
154 void SetRetentionStartDate(RetentionStartDateT&& value) {
155 m_retentionStartDateHasBeenSet = true;
156 m_retentionStartDate = std::forward<RetentionStartDateT>(value);
157 }
158 template <typename RetentionStartDateT = Aws::Utils::DateTime>
159 TapeInfo& WithRetentionStartDate(RetentionStartDateT&& value) {
160 SetRetentionStartDate(std::forward<RetentionStartDateT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::Utils::DateTime& GetPoolEntryDate() const { return m_poolEntryDate; }
171 inline bool PoolEntryDateHasBeenSet() const { return m_poolEntryDateHasBeenSet; }
172 template <typename PoolEntryDateT = Aws::Utils::DateTime>
173 void SetPoolEntryDate(PoolEntryDateT&& value) {
174 m_poolEntryDateHasBeenSet = true;
175 m_poolEntryDate = std::forward<PoolEntryDateT>(value);
176 }
177 template <typename PoolEntryDateT = Aws::Utils::DateTime>
178 TapeInfo& WithPoolEntryDate(PoolEntryDateT&& value) {
179 SetPoolEntryDate(std::forward<PoolEntryDateT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_tapeARN;
185
186 Aws::String m_tapeBarcode;
187
188 long long m_tapeSizeInBytes{0};
189
190 Aws::String m_tapeStatus;
191
192 Aws::String m_gatewayARN;
193
194 Aws::String m_poolId;
195
196 Aws::Utils::DateTime m_retentionStartDate{};
197
198 Aws::Utils::DateTime m_poolEntryDate{};
199 bool m_tapeARNHasBeenSet = false;
200 bool m_tapeBarcodeHasBeenSet = false;
201 bool m_tapeSizeInBytesHasBeenSet = false;
202 bool m_tapeStatusHasBeenSet = false;
203 bool m_gatewayARNHasBeenSet = false;
204 bool m_poolIdHasBeenSet = false;
205 bool m_retentionStartDateHasBeenSet = false;
206 bool m_poolEntryDateHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace StorageGateway
211} // namespace Aws
void SetTapeStatus(TapeStatusT &&value)
Definition TapeInfo.h:94
const Aws::String & GetTapeStatus() const
Definition TapeInfo.h:91
void SetGatewayARN(GatewayARNT &&value)
Definition TapeInfo.h:114
void SetRetentionStartDate(RetentionStartDateT &&value)
Definition TapeInfo.h:154
TapeInfo & WithPoolId(PoolIdT &&value)
Definition TapeInfo.h:141
void SetPoolEntryDate(PoolEntryDateT &&value)
Definition TapeInfo.h:173
void SetTapeBarcode(TapeBarcodeT &&value)
Definition TapeInfo.h:60
TapeInfo & WithGatewayARN(GatewayARNT &&value)
Definition TapeInfo.h:119
const Aws::String & GetTapeBarcode() const
Definition TapeInfo.h:57
TapeInfo & WithTapeStatus(TapeStatusT &&value)
Definition TapeInfo.h:99
const Aws::String & GetGatewayARN() const
Definition TapeInfo.h:111
const Aws::String & GetPoolId() const
Definition TapeInfo.h:133
TapeInfo & WithTapeBarcode(TapeBarcodeT &&value)
Definition TapeInfo.h:65
AWS_STORAGEGATEWAY_API TapeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
TapeInfo & WithTapeARN(TapeARNT &&value)
Definition TapeInfo.h:47
TapeInfo & WithRetentionStartDate(RetentionStartDateT &&value)
Definition TapeInfo.h:159
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_STORAGEGATEWAY_API TapeInfo()=default
void SetTapeSizeInBytes(long long value)
Definition TapeInfo.h:77
void SetPoolId(PoolIdT &&value)
Definition TapeInfo.h:136
const Aws::Utils::DateTime & GetPoolEntryDate() const
Definition TapeInfo.h:170
const Aws::Utils::DateTime & GetRetentionStartDate() const
Definition TapeInfo.h:151
TapeInfo & WithPoolEntryDate(PoolEntryDateT &&value)
Definition TapeInfo.h:178
long long GetTapeSizeInBytes() const
Definition TapeInfo.h:75
AWS_STORAGEGATEWAY_API TapeInfo(Aws::Utils::Json::JsonView jsonValue)
TapeInfo & WithTapeSizeInBytes(long long value)
Definition TapeInfo.h:81
void SetTapeARN(TapeARNT &&value)
Definition TapeInfo.h:42
const Aws::String & GetTapeARN() const
Definition TapeInfo.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue