AWS SDK for C++  1.8.71
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 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
CreateTapesRequest & WithKMSKey(Aws::String &&value)
CreateTapesRequest & WithKMSEncrypted(bool value)
CreateTapesRequest & WithClientToken(const char *value)
CreateTapesRequest & WithNumTapesToCreate(int value)
void SetTapeBarcodePrefix(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateTapesRequest & WithPoolId(const char *value)
CreateTapesRequest & WithGatewayARN(const Aws::String &value)
CreateTapesRequest & WithTapeBarcodePrefix(Aws::String &&value)
CreateTapesRequest & AddTags(Tag &&value)
CreateTapesRequest & AddTags(const Tag &value)
CreateTapesRequest & WithKMSKey(const Aws::String &value)
CreateTapesRequest & WithPoolId(Aws::String &&value)
CreateTapesRequest & WithTapeSizeInBytes(long long value)
CreateTapesRequest & WithGatewayARN(Aws::String &&value)
CreateTapesRequest & WithPoolId(const Aws::String &value)
CreateTapesRequest & WithClientToken(const Aws::String &value)
CreateTapesRequest & WithTags(Aws::Vector< Tag > &&value)
CreateTapesRequest & WithTapeBarcodePrefix(const Aws::String &value)
CreateTapesRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetGatewayARN(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTapesRequest & WithClientToken(Aws::String &&value)
CreateTapesRequest & WithKMSKey(const char *value)
CreateTapesRequest & WithGatewayARN(const char *value)
#define AWS_STORAGEGATEWAY_API
CreateTapesRequest & WithTapeBarcodePrefix(const char *value)