AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateTapesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/storagegateway/StorageGatewayRequest.h>
10#include <aws/storagegateway/StorageGateway_EXPORTS.h>
11#include <aws/storagegateway/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace StorageGateway {
17namespace Model {
18
25 public:
26 AWS_STORAGEGATEWAY_API CreateTapesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateTapes"; }
33
34 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
35
36 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
44 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
45 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
46 template <typename GatewayARNT = Aws::String>
47 void SetGatewayARN(GatewayARNT&& value) {
48 m_gatewayARNHasBeenSet = true;
49 m_gatewayARN = std::forward<GatewayARNT>(value);
50 }
51 template <typename GatewayARNT = Aws::String>
52 CreateTapesRequest& WithGatewayARN(GatewayARNT&& value) {
53 SetGatewayARN(std::forward<GatewayARNT>(value));
54 return *this;
55 }
57
59
63 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
64 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
65 inline void SetTapeSizeInBytes(long long value) {
66 m_tapeSizeInBytesHasBeenSet = true;
67 m_tapeSizeInBytes = value;
68 }
69 inline CreateTapesRequest& WithTapeSizeInBytes(long long value) {
70 SetTapeSizeInBytes(value);
71 return *this;
72 }
74
76
82 inline const Aws::String& GetClientToken() const { return m_clientToken; }
83 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
84 template <typename ClientTokenT = Aws::String>
85 void SetClientToken(ClientTokenT&& value) {
86 m_clientTokenHasBeenSet = true;
87 m_clientToken = std::forward<ClientTokenT>(value);
88 }
89 template <typename ClientTokenT = Aws::String>
90 CreateTapesRequest& WithClientToken(ClientTokenT&& value) {
91 SetClientToken(std::forward<ClientTokenT>(value));
92 return *this;
93 }
95
97
100 inline int GetNumTapesToCreate() const { return m_numTapesToCreate; }
101 inline bool NumTapesToCreateHasBeenSet() const { return m_numTapesToCreateHasBeenSet; }
102 inline void SetNumTapesToCreate(int value) {
103 m_numTapesToCreateHasBeenSet = true;
104 m_numTapesToCreate = value;
105 }
107 SetNumTapesToCreate(value);
108 return *this;
109 }
111
113
119 inline const Aws::String& GetTapeBarcodePrefix() const { return m_tapeBarcodePrefix; }
120 inline bool TapeBarcodePrefixHasBeenSet() const { return m_tapeBarcodePrefixHasBeenSet; }
121 template <typename TapeBarcodePrefixT = Aws::String>
122 void SetTapeBarcodePrefix(TapeBarcodePrefixT&& value) {
123 m_tapeBarcodePrefixHasBeenSet = true;
124 m_tapeBarcodePrefix = std::forward<TapeBarcodePrefixT>(value);
125 }
126 template <typename TapeBarcodePrefixT = Aws::String>
127 CreateTapesRequest& WithTapeBarcodePrefix(TapeBarcodePrefixT&& value) {
128 SetTapeBarcodePrefix(std::forward<TapeBarcodePrefixT>(value));
129 return *this;
130 }
132
134
139 inline bool GetKMSEncrypted() const { return m_kMSEncrypted; }
140 inline bool KMSEncryptedHasBeenSet() const { return m_kMSEncryptedHasBeenSet; }
141 inline void SetKMSEncrypted(bool value) {
142 m_kMSEncryptedHasBeenSet = true;
143 m_kMSEncrypted = value;
144 }
146 SetKMSEncrypted(value);
147 return *this;
148 }
150
152
158 inline const Aws::String& GetKMSKey() const { return m_kMSKey; }
159 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
160 template <typename KMSKeyT = Aws::String>
161 void SetKMSKey(KMSKeyT&& value) {
162 m_kMSKeyHasBeenSet = true;
163 m_kMSKey = std::forward<KMSKeyT>(value);
164 }
165 template <typename KMSKeyT = Aws::String>
166 CreateTapesRequest& WithKMSKey(KMSKeyT&& value) {
167 SetKMSKey(std::forward<KMSKeyT>(value));
168 return *this;
169 }
171
173
180 inline const Aws::String& GetPoolId() const { return m_poolId; }
181 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
182 template <typename PoolIdT = Aws::String>
183 void SetPoolId(PoolIdT&& value) {
184 m_poolIdHasBeenSet = true;
185 m_poolId = std::forward<PoolIdT>(value);
186 }
187 template <typename PoolIdT = Aws::String>
188 CreateTapesRequest& WithPoolId(PoolIdT&& value) {
189 SetPoolId(std::forward<PoolIdT>(value));
190 return *this;
191 }
193
195
199 inline bool GetWorm() const { return m_worm; }
200 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
201 inline void SetWorm(bool value) {
202 m_wormHasBeenSet = true;
203 m_worm = value;
204 }
205 inline CreateTapesRequest& WithWorm(bool value) {
206 SetWorm(value);
207 return *this;
208 }
210
212
219 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template <typename TagsT = Aws::Vector<Tag>>
222 void SetTags(TagsT&& value) {
223 m_tagsHasBeenSet = true;
224 m_tags = std::forward<TagsT>(value);
225 }
226 template <typename TagsT = Aws::Vector<Tag>>
227 CreateTapesRequest& WithTags(TagsT&& value) {
228 SetTags(std::forward<TagsT>(value));
229 return *this;
230 }
231 template <typename TagsT = Tag>
232 CreateTapesRequest& AddTags(TagsT&& value) {
233 m_tagsHasBeenSet = true;
234 m_tags.emplace_back(std::forward<TagsT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_gatewayARN;
240
241 long long m_tapeSizeInBytes{0};
242
243 Aws::String m_clientToken;
244
245 int m_numTapesToCreate{0};
246
247 Aws::String m_tapeBarcodePrefix;
248
249 bool m_kMSEncrypted{false};
250
251 Aws::String m_kMSKey;
252
253 Aws::String m_poolId;
254
255 bool m_worm{false};
256
257 Aws::Vector<Tag> m_tags;
258 bool m_gatewayARNHasBeenSet = false;
259 bool m_tapeSizeInBytesHasBeenSet = false;
260 bool m_clientTokenHasBeenSet = false;
261 bool m_numTapesToCreateHasBeenSet = false;
262 bool m_tapeBarcodePrefixHasBeenSet = false;
263 bool m_kMSEncryptedHasBeenSet = false;
264 bool m_kMSKeyHasBeenSet = false;
265 bool m_poolIdHasBeenSet = false;
266 bool m_wormHasBeenSet = false;
267 bool m_tagsHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace StorageGateway
272} // namespace Aws
CreateTapesRequest & WithTapeBarcodePrefix(TapeBarcodePrefixT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
CreateTapesRequest & WithPoolId(PoolIdT &&value)
CreateTapesRequest & WithKMSEncrypted(bool value)
AWS_STORAGEGATEWAY_API CreateTapesRequest()=default
CreateTapesRequest & WithGatewayARN(GatewayARNT &&value)
CreateTapesRequest & WithTags(TagsT &&value)
CreateTapesRequest & WithKMSKey(KMSKeyT &&value)
CreateTapesRequest & AddTags(TagsT &&value)
CreateTapesRequest & WithNumTapesToCreate(int value)
CreateTapesRequest & WithTapeSizeInBytes(long long value)
CreateTapesRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTapeBarcodePrefix(TapeBarcodePrefixT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector