AWS SDK for C++  1.9.107
AWS SDK for C++
CreateTapesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace StorageGateway
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateTapes"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
47  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
48 
54  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
55 
61  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
62 
68  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
69 
75  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
76 
82  inline CreateTapesRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
83 
89  inline CreateTapesRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
90 
96  inline CreateTapesRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
97 
98 
103  inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; }
104 
109  inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
110 
115  inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
116 
121  inline CreateTapesRequest& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
122 
123 
130  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
131 
138  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
139 
146  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
147 
154  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
155 
162  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
163 
170  inline CreateTapesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
171 
178  inline CreateTapesRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
179 
186  inline CreateTapesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
187 
188 
192  inline int GetNumTapesToCreate() const{ return m_numTapesToCreate; }
193 
197  inline bool NumTapesToCreateHasBeenSet() const { return m_numTapesToCreateHasBeenSet; }
198 
202  inline void SetNumTapesToCreate(int value) { m_numTapesToCreateHasBeenSet = true; m_numTapesToCreate = value; }
203 
207  inline CreateTapesRequest& WithNumTapesToCreate(int value) { SetNumTapesToCreate(value); return *this;}
208 
209 
216  inline const Aws::String& GetTapeBarcodePrefix() const{ return m_tapeBarcodePrefix; }
217 
224  inline bool TapeBarcodePrefixHasBeenSet() const { return m_tapeBarcodePrefixHasBeenSet; }
225 
232  inline void SetTapeBarcodePrefix(const Aws::String& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = value; }
233 
240  inline void SetTapeBarcodePrefix(Aws::String&& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = std::move(value); }
241 
248  inline void SetTapeBarcodePrefix(const char* value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix.assign(value); }
249 
256  inline CreateTapesRequest& WithTapeBarcodePrefix(const Aws::String& value) { SetTapeBarcodePrefix(value); return *this;}
257 
264  inline CreateTapesRequest& WithTapeBarcodePrefix(Aws::String&& value) { SetTapeBarcodePrefix(std::move(value)); return *this;}
265 
272  inline CreateTapesRequest& WithTapeBarcodePrefix(const char* value) { SetTapeBarcodePrefix(value); return *this;}
273 
274 
280  inline bool GetKMSEncrypted() const{ return m_kMSEncrypted; }
281 
287  inline bool KMSEncryptedHasBeenSet() const { return m_kMSEncryptedHasBeenSet; }
288 
294  inline void SetKMSEncrypted(bool value) { m_kMSEncryptedHasBeenSet = true; m_kMSEncrypted = value; }
295 
301  inline CreateTapesRequest& WithKMSEncrypted(bool value) { SetKMSEncrypted(value); return *this;}
302 
303 
310  inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
311 
318  inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
319 
326  inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
327 
334  inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
335 
342  inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
343 
350  inline CreateTapesRequest& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
351 
358  inline CreateTapesRequest& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
359 
366  inline CreateTapesRequest& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
367 
368 
377  inline const Aws::String& GetPoolId() const{ return m_poolId; }
378 
387  inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
388 
397  inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
398 
407  inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
408 
417  inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
418 
427  inline CreateTapesRequest& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
428 
437  inline CreateTapesRequest& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
438 
447  inline CreateTapesRequest& WithPoolId(const char* value) { SetPoolId(value); return *this;}
448 
449 
454  inline bool GetWorm() const{ return m_worm; }
455 
460  inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
461 
466  inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
467 
472  inline CreateTapesRequest& WithWorm(bool value) { SetWorm(value); return *this;}
473 
474 
482  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
483 
491  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
492 
500  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
501 
509  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
510 
518  inline CreateTapesRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
519 
527  inline CreateTapesRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
528 
536  inline CreateTapesRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
537 
545  inline CreateTapesRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
546 
547  private:
548 
549  Aws::String m_gatewayARN;
550  bool m_gatewayARNHasBeenSet;
551 
552  long long m_tapeSizeInBytes;
553  bool m_tapeSizeInBytesHasBeenSet;
554 
555  Aws::String m_clientToken;
556  bool m_clientTokenHasBeenSet;
557 
558  int m_numTapesToCreate;
559  bool m_numTapesToCreateHasBeenSet;
560 
561  Aws::String m_tapeBarcodePrefix;
562  bool m_tapeBarcodePrefixHasBeenSet;
563 
564  bool m_kMSEncrypted;
565  bool m_kMSEncryptedHasBeenSet;
566 
567  Aws::String m_kMSKey;
568  bool m_kMSKeyHasBeenSet;
569 
570  Aws::String m_poolId;
571  bool m_poolIdHasBeenSet;
572 
573  bool m_worm;
574  bool m_wormHasBeenSet;
575 
576  Aws::Vector<Tag> m_tags;
577  bool m_tagsHasBeenSet;
578  };
579 
580 } // namespace Model
581 } // namespace StorageGateway
582 } // namespace Aws
Aws::StorageGateway::Model::CreateTapesRequest::WithClientToken
CreateTapesRequest & WithClientToken(const Aws::String &value)
Definition: CreateTapesRequest.h:170
Aws::StorageGateway::Model::CreateTapesRequest::WithTapeSizeInBytes
CreateTapesRequest & WithTapeSizeInBytes(long long value)
Definition: CreateTapesRequest.h:121
Aws::StorageGateway::Model::CreateTapesRequest::SetPoolId
void SetPoolId(const char *value)
Definition: CreateTapesRequest.h:417
Aws::StorageGateway::Model::CreateTapesRequest::SetNumTapesToCreate
void SetNumTapesToCreate(int value)
Definition: CreateTapesRequest.h:202
Aws::StorageGateway::Model::CreateTapesRequest::WithKMSKey
CreateTapesRequest & WithKMSKey(const char *value)
Definition: CreateTapesRequest.h:366
Aws::StorageGateway::Model::CreateTapesRequest::SetPoolId
void SetPoolId(Aws::String &&value)
Definition: CreateTapesRequest.h:407
Aws::StorageGateway::Model::CreateTapesRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateTapesRequest.h:162
Aws::StorageGateway::Model::CreateTapesRequest::GetKMSEncrypted
bool GetKMSEncrypted() const
Definition: CreateTapesRequest.h:280
Aws::StorageGateway::Model::CreateTapesRequest::CreateTapesRequest
CreateTapesRequest()
Aws::StorageGateway::Model::CreateTapesRequest::WithGatewayARN
CreateTapesRequest & WithGatewayARN(const char *value)
Definition: CreateTapesRequest.h:96
Aws::StorageGateway::Model::CreateTapesRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateTapesRequest.h:130
Aws::StorageGateway::Model::CreateTapesRequest::SetTapeBarcodePrefix
void SetTapeBarcodePrefix(Aws::String &&value)
Definition: CreateTapesRequest.h:240
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::CreateTapesRequest::GetWorm
bool GetWorm() const
Definition: CreateTapesRequest.h:454
Aws::StorageGateway::Model::CreateTapesRequest::KMSEncryptedHasBeenSet
bool KMSEncryptedHasBeenSet() const
Definition: CreateTapesRequest.h:287
Aws::StorageGateway::Model::Tag
Definition: Tag.h:34
Aws::StorageGateway::Model::CreateTapesRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateTapesRequest.h:482
Aws::StorageGateway::Model::CreateTapesRequest::GetKMSKey
const Aws::String & GetKMSKey() const
Definition: CreateTapesRequest.h:310
Aws::StorageGateway::Model::CreateTapesRequest
Definition: CreateTapesRequest.h:27
Aws::StorageGateway::Model::CreateTapesRequest::SetKMSKey
void SetKMSKey(const Aws::String &value)
Definition: CreateTapesRequest.h:326
Aws::StorageGateway::Model::CreateTapesRequest::TapeSizeInBytesHasBeenSet
bool TapeSizeInBytesHasBeenSet() const
Definition: CreateTapesRequest.h:109
Aws::StorageGateway::Model::CreateTapesRequest::WithTags
CreateTapesRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateTapesRequest.h:527
Aws::StorageGateway::Model::CreateTapesRequest::WithWorm
CreateTapesRequest & WithWorm(bool value)
Definition: CreateTapesRequest.h:472
Aws::StorageGateway::Model::CreateTapesRequest::NumTapesToCreateHasBeenSet
bool NumTapesToCreateHasBeenSet() const
Definition: CreateTapesRequest.h:197
Aws::StorageGateway::Model::CreateTapesRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateTapesRequest.h:138
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::CreateTapesRequest::WithTags
CreateTapesRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateTapesRequest.h:518
Aws::StorageGateway::Model::CreateTapesRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateTapesRequest.h:491
Aws::StorageGateway::Model::CreateTapesRequest::SetWorm
void SetWorm(bool value)
Definition: CreateTapesRequest.h:466
Aws::StorageGateway::Model::CreateTapesRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: CreateTapesRequest.h:54
AWSVector.h
Aws::StorageGateway::Model::CreateTapesRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateTapesRequest.h:146
Aws::StorageGateway::Model::CreateTapesRequest::SetTapeBarcodePrefix
void SetTapeBarcodePrefix(const Aws::String &value)
Definition: CreateTapesRequest.h:232
Aws::StorageGateway::Model::CreateTapesRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateTapesRequest.h:509
Aws::StorageGateway::Model::CreateTapesRequest::SetTapeSizeInBytes
void SetTapeSizeInBytes(long long value)
Definition: CreateTapesRequest.h:115
Aws::StorageGateway::Model::CreateTapesRequest::SetKMSKey
void SetKMSKey(const char *value)
Definition: CreateTapesRequest.h:342
Aws::StorageGateway::Model::CreateTapesRequest::WormHasBeenSet
bool WormHasBeenSet() const
Definition: CreateTapesRequest.h:460
Aws::StorageGateway::Model::CreateTapesRequest::GetPoolId
const Aws::String & GetPoolId() const
Definition: CreateTapesRequest.h:377
Aws::StorageGateway::Model::CreateTapesRequest::KMSKeyHasBeenSet
bool KMSKeyHasBeenSet() const
Definition: CreateTapesRequest.h:318
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::CreateTapesRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: CreateTapesRequest.h:68
Aws::StorageGateway::Model::CreateTapesRequest::WithTapeBarcodePrefix
CreateTapesRequest & WithTapeBarcodePrefix(const Aws::String &value)
Definition: CreateTapesRequest.h:256
Aws::StorageGateway::Model::CreateTapesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::CreateTapesRequest::WithClientToken
CreateTapesRequest & WithClientToken(const char *value)
Definition: CreateTapesRequest.h:186
AWSString.h
Aws::StorageGateway::Model::CreateTapesRequest::AddTags
CreateTapesRequest & AddTags(Tag &&value)
Definition: CreateTapesRequest.h:545
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::CreateTapesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::CreateTapesRequest::WithGatewayARN
CreateTapesRequest & WithGatewayARN(Aws::String &&value)
Definition: CreateTapesRequest.h:89
Aws::StorageGateway::Model::CreateTapesRequest::WithKMSKey
CreateTapesRequest & WithKMSKey(Aws::String &&value)
Definition: CreateTapesRequest.h:358
Aws::StorageGateway::Model::CreateTapesRequest::WithKMSEncrypted
CreateTapesRequest & WithKMSEncrypted(bool value)
Definition: CreateTapesRequest.h:301
Aws::StorageGateway::Model::CreateTapesRequest::WithNumTapesToCreate
CreateTapesRequest & WithNumTapesToCreate(int value)
Definition: CreateTapesRequest.h:207
Aws::StorageGateway::Model::CreateTapesRequest::WithClientToken
CreateTapesRequest & WithClientToken(Aws::String &&value)
Definition: CreateTapesRequest.h:178
Aws::StorageGateway::Model::CreateTapesRequest::GetTapeBarcodePrefix
const Aws::String & GetTapeBarcodePrefix() const
Definition: CreateTapesRequest.h:216
Aws::StorageGateway::Model::CreateTapesRequest::PoolIdHasBeenSet
bool PoolIdHasBeenSet() const
Definition: CreateTapesRequest.h:387
Aws::StorageGateway::Model::CreateTapesRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: CreateTapesRequest.h:47
StorageGatewayRequest.h
Aws::StorageGateway::Model::CreateTapesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTapesRequest.h:35
Aws::StorageGateway::Model::CreateTapesRequest::WithTapeBarcodePrefix
CreateTapesRequest & WithTapeBarcodePrefix(const char *value)
Definition: CreateTapesRequest.h:272
Aws
Definition: AccessManagementClient.h:15
Tag.h
Aws::StorageGateway::Model::CreateTapesRequest::AddTags
CreateTapesRequest & AddTags(const Tag &value)
Definition: CreateTapesRequest.h:536
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::CreateTapesRequest::WithPoolId
CreateTapesRequest & WithPoolId(const char *value)
Definition: CreateTapesRequest.h:447
Aws::StorageGateway::Model::CreateTapesRequest::SetPoolId
void SetPoolId(const Aws::String &value)
Definition: CreateTapesRequest.h:397
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::CreateTapesRequest::TapeBarcodePrefixHasBeenSet
bool TapeBarcodePrefixHasBeenSet() const
Definition: CreateTapesRequest.h:224
Aws::StorageGateway::Model::CreateTapesRequest::WithTapeBarcodePrefix
CreateTapesRequest & WithTapeBarcodePrefix(Aws::String &&value)
Definition: CreateTapesRequest.h:264
Aws::StorageGateway::Model::CreateTapesRequest::SetTapeBarcodePrefix
void SetTapeBarcodePrefix(const char *value)
Definition: CreateTapesRequest.h:248
Aws::StorageGateway::Model::CreateTapesRequest::SetKMSKey
void SetKMSKey(Aws::String &&value)
Definition: CreateTapesRequest.h:334
Aws::StorageGateway::Model::CreateTapesRequest::WithPoolId
CreateTapesRequest & WithPoolId(Aws::String &&value)
Definition: CreateTapesRequest.h:437
Aws::StorageGateway::Model::CreateTapesRequest::GetNumTapesToCreate
int GetNumTapesToCreate() const
Definition: CreateTapesRequest.h:192
Aws::StorageGateway::Model::CreateTapesRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: CreateTapesRequest.h:75
Aws::StorageGateway::Model::CreateTapesRequest::WithKMSKey
CreateTapesRequest & WithKMSKey(const Aws::String &value)
Definition: CreateTapesRequest.h:350
Aws::StorageGateway::Model::CreateTapesRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateTapesRequest.h:500
Aws::StorageGateway::Model::CreateTapesRequest::WithPoolId
CreateTapesRequest & WithPoolId(const Aws::String &value)
Definition: CreateTapesRequest.h:427
Aws::StorageGateway::Model::CreateTapesRequest::SetKMSEncrypted
void SetKMSEncrypted(bool value)
Definition: CreateTapesRequest.h:294
Aws::StorageGateway::Model::CreateTapesRequest::WithGatewayARN
CreateTapesRequest & WithGatewayARN(const Aws::String &value)
Definition: CreateTapesRequest.h:82
Aws::StorageGateway::Model::CreateTapesRequest::GetTapeSizeInBytes
long long GetTapeSizeInBytes() const
Definition: CreateTapesRequest.h:103
Aws::StorageGateway::Model::CreateTapesRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateTapesRequest.h:154
Aws::StorageGateway::Model::CreateTapesRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: CreateTapesRequest.h:61