AWS SDK for C++  1.8.71
AWS SDK for C++
CreateTapeWithBarcodeRequest.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 "CreateTapeWithBarcode"; }
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 CreateTapeWithBarcodeRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
83 
89  inline CreateTapeWithBarcodeRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
90 
96  inline CreateTapeWithBarcodeRequest& 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 CreateTapeWithBarcodeRequest& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
122 
123 
129  inline const Aws::String& GetTapeBarcode() const{ return m_tapeBarcode; }
130 
136  inline bool TapeBarcodeHasBeenSet() const { return m_tapeBarcodeHasBeenSet; }
137 
143  inline void SetTapeBarcode(const Aws::String& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = value; }
144 
150  inline void SetTapeBarcode(Aws::String&& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = std::move(value); }
151 
157  inline void SetTapeBarcode(const char* value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode.assign(value); }
158 
164  inline CreateTapeWithBarcodeRequest& WithTapeBarcode(const Aws::String& value) { SetTapeBarcode(value); return *this;}
165 
171  inline CreateTapeWithBarcodeRequest& WithTapeBarcode(Aws::String&& value) { SetTapeBarcode(std::move(value)); return *this;}
172 
178  inline CreateTapeWithBarcodeRequest& WithTapeBarcode(const char* value) { SetTapeBarcode(value); return *this;}
179 
180 
186  inline bool GetKMSEncrypted() const{ return m_kMSEncrypted; }
187 
193  inline bool KMSEncryptedHasBeenSet() const { return m_kMSEncryptedHasBeenSet; }
194 
200  inline void SetKMSEncrypted(bool value) { m_kMSEncryptedHasBeenSet = true; m_kMSEncrypted = value; }
201 
207  inline CreateTapeWithBarcodeRequest& WithKMSEncrypted(bool value) { SetKMSEncrypted(value); return *this;}
208 
209 
216  inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
217 
224  inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
225 
232  inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
233 
240  inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
241 
248  inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
249 
256  inline CreateTapeWithBarcodeRequest& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
257 
264  inline CreateTapeWithBarcodeRequest& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
265 
272  inline CreateTapeWithBarcodeRequest& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
273 
274 
283  inline const Aws::String& GetPoolId() const{ return m_poolId; }
284 
293  inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
294 
303  inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
304 
313  inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
314 
323  inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
324 
333  inline CreateTapeWithBarcodeRequest& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
334 
343  inline CreateTapeWithBarcodeRequest& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
344 
353  inline CreateTapeWithBarcodeRequest& WithPoolId(const char* value) { SetPoolId(value); return *this;}
354 
355 
360  inline bool GetWorm() const{ return m_worm; }
361 
366  inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
367 
372  inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
373 
378  inline CreateTapeWithBarcodeRequest& WithWorm(bool value) { SetWorm(value); return *this;}
379 
380 
389  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
390 
399  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
400 
409  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
410 
419  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
420 
429  inline CreateTapeWithBarcodeRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
430 
439  inline CreateTapeWithBarcodeRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
440 
449  inline CreateTapeWithBarcodeRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
450 
459  inline CreateTapeWithBarcodeRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
460 
461  private:
462 
463  Aws::String m_gatewayARN;
464  bool m_gatewayARNHasBeenSet;
465 
466  long long m_tapeSizeInBytes;
467  bool m_tapeSizeInBytesHasBeenSet;
468 
469  Aws::String m_tapeBarcode;
470  bool m_tapeBarcodeHasBeenSet;
471 
472  bool m_kMSEncrypted;
473  bool m_kMSEncryptedHasBeenSet;
474 
475  Aws::String m_kMSKey;
476  bool m_kMSKeyHasBeenSet;
477 
478  Aws::String m_poolId;
479  bool m_poolIdHasBeenSet;
480 
481  bool m_worm;
482  bool m_wormHasBeenSet;
483 
484  Aws::Vector<Tag> m_tags;
485  bool m_tagsHasBeenSet;
486  };
487 
488 } // namespace Model
489 } // namespace StorageGateway
490 } // namespace Aws
CreateTapeWithBarcodeRequest & WithGatewayARN(Aws::String &&value)
CreateTapeWithBarcodeRequest & WithKMSKey(Aws::String &&value)
CreateTapeWithBarcodeRequest & WithKMSKey(const char *value)
CreateTapeWithBarcodeRequest & WithTapeBarcode(const Aws::String &value)
CreateTapeWithBarcodeRequest & AddTags(const Tag &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateTapeWithBarcodeRequest & WithPoolId(const Aws::String &value)
CreateTapeWithBarcodeRequest & WithGatewayARN(const char *value)
CreateTapeWithBarcodeRequest & WithTags(Aws::Vector< Tag > &&value)
CreateTapeWithBarcodeRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTapeWithBarcodeRequest & WithKMSKey(const Aws::String &value)
CreateTapeWithBarcodeRequest & WithTapeBarcode(const char *value)
CreateTapeWithBarcodeRequest & WithTapeBarcode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTapeWithBarcodeRequest & WithPoolId(const char *value)
CreateTapeWithBarcodeRequest & WithTapeSizeInBytes(long long value)
#define AWS_STORAGEGATEWAY_API
CreateTapeWithBarcodeRequest & WithGatewayARN(const Aws::String &value)
CreateTapeWithBarcodeRequest & WithPoolId(Aws::String &&value)