AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TapeInfo.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
33 {
34 public:
35 AWS_STORAGEGATEWAY_API TapeInfo() = default;
36 AWS_STORAGEGATEWAY_API TapeInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_STORAGEGATEWAY_API TapeInfo& 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 template<typename TapeARNT = Aws::String>
48 void SetTapeARN(TapeARNT&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::forward<TapeARNT>(value); }
49 template<typename TapeARNT = Aws::String>
50 TapeInfo& WithTapeARN(TapeARNT&& value) { SetTapeARN(std::forward<TapeARNT>(value)); return *this;}
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) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = std::forward<TapeBarcodeT>(value); }
61 template<typename TapeBarcodeT = Aws::String>
62 TapeInfo& WithTapeBarcode(TapeBarcodeT&& value) { SetTapeBarcode(std::forward<TapeBarcodeT>(value)); return *this;}
64
66
69 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
70 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
71 inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
72 inline TapeInfo& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
74
76
79 inline const Aws::String& GetTapeStatus() const { return m_tapeStatus; }
80 inline bool TapeStatusHasBeenSet() const { return m_tapeStatusHasBeenSet; }
81 template<typename TapeStatusT = Aws::String>
82 void SetTapeStatus(TapeStatusT&& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = std::forward<TapeStatusT>(value); }
83 template<typename TapeStatusT = Aws::String>
84 TapeInfo& WithTapeStatus(TapeStatusT&& value) { SetTapeStatus(std::forward<TapeStatusT>(value)); return *this;}
86
88
93 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
94 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
95 template<typename GatewayARNT = Aws::String>
96 void SetGatewayARN(GatewayARNT&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::forward<GatewayARNT>(value); }
97 template<typename GatewayARNT = Aws::String>
98 TapeInfo& WithGatewayARN(GatewayARNT&& value) { SetGatewayARN(std::forward<GatewayARNT>(value)); return *this;}
100
102
109 inline const Aws::String& GetPoolId() const { return m_poolId; }
110 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
111 template<typename PoolIdT = Aws::String>
112 void SetPoolId(PoolIdT&& value) { m_poolIdHasBeenSet = true; m_poolId = std::forward<PoolIdT>(value); }
113 template<typename PoolIdT = Aws::String>
114 TapeInfo& WithPoolId(PoolIdT&& value) { SetPoolId(std::forward<PoolIdT>(value)); return *this;}
116
118
121 inline const Aws::Utils::DateTime& GetRetentionStartDate() const { return m_retentionStartDate; }
122 inline bool RetentionStartDateHasBeenSet() const { return m_retentionStartDateHasBeenSet; }
123 template<typename RetentionStartDateT = Aws::Utils::DateTime>
124 void SetRetentionStartDate(RetentionStartDateT&& value) { m_retentionStartDateHasBeenSet = true; m_retentionStartDate = std::forward<RetentionStartDateT>(value); }
125 template<typename RetentionStartDateT = Aws::Utils::DateTime>
126 TapeInfo& WithRetentionStartDate(RetentionStartDateT&& value) { SetRetentionStartDate(std::forward<RetentionStartDateT>(value)); return *this;}
128
130
134 inline const Aws::Utils::DateTime& GetPoolEntryDate() const { return m_poolEntryDate; }
135 inline bool PoolEntryDateHasBeenSet() const { return m_poolEntryDateHasBeenSet; }
136 template<typename PoolEntryDateT = Aws::Utils::DateTime>
137 void SetPoolEntryDate(PoolEntryDateT&& value) { m_poolEntryDateHasBeenSet = true; m_poolEntryDate = std::forward<PoolEntryDateT>(value); }
138 template<typename PoolEntryDateT = Aws::Utils::DateTime>
139 TapeInfo& WithPoolEntryDate(PoolEntryDateT&& value) { SetPoolEntryDate(std::forward<PoolEntryDateT>(value)); return *this;}
141 private:
142
143 Aws::String m_tapeARN;
144 bool m_tapeARNHasBeenSet = false;
145
146 Aws::String m_tapeBarcode;
147 bool m_tapeBarcodeHasBeenSet = false;
148
149 long long m_tapeSizeInBytes{0};
150 bool m_tapeSizeInBytesHasBeenSet = false;
151
152 Aws::String m_tapeStatus;
153 bool m_tapeStatusHasBeenSet = false;
154
155 Aws::String m_gatewayARN;
156 bool m_gatewayARNHasBeenSet = false;
157
158 Aws::String m_poolId;
159 bool m_poolIdHasBeenSet = false;
160
161 Aws::Utils::DateTime m_retentionStartDate{};
162 bool m_retentionStartDateHasBeenSet = false;
163
164 Aws::Utils::DateTime m_poolEntryDate{};
165 bool m_poolEntryDateHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace StorageGateway
170} // namespace Aws
void SetTapeStatus(TapeStatusT &&value)
Definition TapeInfo.h:82
const Aws::String & GetTapeStatus() const
Definition TapeInfo.h:79
void SetGatewayARN(GatewayARNT &&value)
Definition TapeInfo.h:96
void SetRetentionStartDate(RetentionStartDateT &&value)
Definition TapeInfo.h:124
TapeInfo & WithPoolId(PoolIdT &&value)
Definition TapeInfo.h:114
void SetPoolEntryDate(PoolEntryDateT &&value)
Definition TapeInfo.h:137
void SetTapeBarcode(TapeBarcodeT &&value)
Definition TapeInfo.h:60
TapeInfo & WithGatewayARN(GatewayARNT &&value)
Definition TapeInfo.h:98
const Aws::String & GetTapeBarcode() const
Definition TapeInfo.h:57
TapeInfo & WithTapeStatus(TapeStatusT &&value)
Definition TapeInfo.h:84
const Aws::String & GetGatewayARN() const
Definition TapeInfo.h:93
const Aws::String & GetPoolId() const
Definition TapeInfo.h:109
TapeInfo & WithTapeBarcode(TapeBarcodeT &&value)
Definition TapeInfo.h:62
AWS_STORAGEGATEWAY_API TapeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
TapeInfo & WithTapeARN(TapeARNT &&value)
Definition TapeInfo.h:50
TapeInfo & WithRetentionStartDate(RetentionStartDateT &&value)
Definition TapeInfo.h:126
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_STORAGEGATEWAY_API TapeInfo()=default
void SetTapeSizeInBytes(long long value)
Definition TapeInfo.h:71
void SetPoolId(PoolIdT &&value)
Definition TapeInfo.h:112
const Aws::Utils::DateTime & GetPoolEntryDate() const
Definition TapeInfo.h:134
const Aws::Utils::DateTime & GetRetentionStartDate() const
Definition TapeInfo.h:121
TapeInfo & WithPoolEntryDate(PoolEntryDateT &&value)
Definition TapeInfo.h:139
long long GetTapeSizeInBytes() const
Definition TapeInfo.h:69
AWS_STORAGEGATEWAY_API TapeInfo(Aws::Utils::Json::JsonView jsonValue)
TapeInfo & WithTapeSizeInBytes(long long value)
Definition TapeInfo.h:72
void SetTapeARN(TapeARNT &&value)
Definition TapeInfo.h:48
const Aws::String & GetTapeARN() const
Definition TapeInfo.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue