/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace StorageGateway { namespace Model { /** *

CreateTapeWithBarcodeInput

See Also:

AWS * API Reference

*/ class CreateTapeWithBarcodeRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API CreateTapeWithBarcodeRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateTapeWithBarcode"; } AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override; AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique Amazon Resource Name (ARN) that represents the gateway to * associate the virtual tape with. Use the ListGateways operation to return * a list of gateways for your account and Amazon Web Services Region.

*/ inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; } /** *

The unique Amazon Resource Name (ARN) that represents the gateway to * associate the virtual tape with. Use the ListGateways operation to return * a list of gateways for your account and Amazon Web Services Region.

*/ inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; } /** *

The unique Amazon Resource Name (ARN) that represents the gateway to * associate the virtual tape with. Use the ListGateways operation to return * a list of gateways for your account and Amazon Web Services Region.

*/ inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; } /** *

The unique Amazon Resource Name (ARN) that represents the gateway to * associate the virtual tape with. Use the ListGateways operation to return * a list of gateways for your account and Amazon Web Services Region.

*/ inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); } /** *

The unique Amazon Resource Name (ARN) that represents the gateway to * associate the virtual tape with. Use the ListGateways operation to return * a list of gateways for your account and Amazon Web Services Region.

*/ inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); } /** *

The unique Amazon Resource Name (ARN) that represents the gateway to * associate the virtual tape with. Use the ListGateways operation to return * a list of gateways for your account and Amazon Web Services Region.

*/ inline CreateTapeWithBarcodeRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;} /** *

The unique Amazon Resource Name (ARN) that represents the gateway to * associate the virtual tape with. Use the ListGateways operation to return * a list of gateways for your account and Amazon Web Services Region.

*/ inline CreateTapeWithBarcodeRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;} /** *

The unique Amazon Resource Name (ARN) that represents the gateway to * associate the virtual tape with. Use the ListGateways operation to return * a list of gateways for your account and Amazon Web Services Region.

*/ inline CreateTapeWithBarcodeRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;} /** *

The size, in bytes, of the virtual tape that you want to create.

*

The size must be aligned by gigabyte (1024*1024*1024 bytes).

*/ inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; } /** *

The size, in bytes, of the virtual tape that you want to create.

*

The size must be aligned by gigabyte (1024*1024*1024 bytes).

*/ inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; } /** *

The size, in bytes, of the virtual tape that you want to create.

*

The size must be aligned by gigabyte (1024*1024*1024 bytes).

*/ inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; } /** *

The size, in bytes, of the virtual tape that you want to create.

*

The size must be aligned by gigabyte (1024*1024*1024 bytes).

*/ inline CreateTapeWithBarcodeRequest& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;} /** *

The barcode that you want to assign to the tape.

Barcodes * cannot be reused. This includes barcodes used for tapes that have been * deleted.

*/ inline const Aws::String& GetTapeBarcode() const{ return m_tapeBarcode; } /** *

The barcode that you want to assign to the tape.

Barcodes * cannot be reused. This includes barcodes used for tapes that have been * deleted.

*/ inline bool TapeBarcodeHasBeenSet() const { return m_tapeBarcodeHasBeenSet; } /** *

The barcode that you want to assign to the tape.

Barcodes * cannot be reused. This includes barcodes used for tapes that have been * deleted.

*/ inline void SetTapeBarcode(const Aws::String& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = value; } /** *

The barcode that you want to assign to the tape.

Barcodes * cannot be reused. This includes barcodes used for tapes that have been * deleted.

*/ inline void SetTapeBarcode(Aws::String&& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = std::move(value); } /** *

The barcode that you want to assign to the tape.

Barcodes * cannot be reused. This includes barcodes used for tapes that have been * deleted.

*/ inline void SetTapeBarcode(const char* value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode.assign(value); } /** *

The barcode that you want to assign to the tape.

Barcodes * cannot be reused. This includes barcodes used for tapes that have been * deleted.

*/ inline CreateTapeWithBarcodeRequest& WithTapeBarcode(const Aws::String& value) { SetTapeBarcode(value); return *this;} /** *

The barcode that you want to assign to the tape.

Barcodes * cannot be reused. This includes barcodes used for tapes that have been * deleted.

*/ inline CreateTapeWithBarcodeRequest& WithTapeBarcode(Aws::String&& value) { SetTapeBarcode(std::move(value)); return *this;} /** *

The barcode that you want to assign to the tape.

Barcodes * cannot be reused. This includes barcodes used for tapes that have been * deleted.

*/ inline CreateTapeWithBarcodeRequest& WithTapeBarcode(const char* value) { SetTapeBarcode(value); return *this;} /** *

Set to true to use Amazon S3 server-side encryption with your * own KMS key, or false to use a key managed by Amazon S3. * Optional.

Valid Values: true | false

*/ inline bool GetKMSEncrypted() const{ return m_kMSEncrypted; } /** *

Set to true to use Amazon S3 server-side encryption with your * own KMS key, or false to use a key managed by Amazon S3. * Optional.

Valid Values: true | false

*/ inline bool KMSEncryptedHasBeenSet() const { return m_kMSEncryptedHasBeenSet; } /** *

Set to true to use Amazon S3 server-side encryption with your * own KMS key, or false to use a key managed by Amazon S3. * Optional.

Valid Values: true | false

*/ inline void SetKMSEncrypted(bool value) { m_kMSEncryptedHasBeenSet = true; m_kMSEncrypted = value; } /** *

Set to true to use Amazon S3 server-side encryption with your * own KMS key, or false to use a key managed by Amazon S3. * Optional.

Valid Values: true | false

*/ inline CreateTapeWithBarcodeRequest& WithKMSEncrypted(bool value) { SetKMSEncrypted(value); return *this;} /** *

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used * for Amazon S3 server-side encryption. Storage Gateway does not support * asymmetric CMKs. This value can only be set when KMSEncrypted is * true. Optional.

*/ inline const Aws::String& GetKMSKey() const{ return m_kMSKey; } /** *

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used * for Amazon S3 server-side encryption. Storage Gateway does not support * asymmetric CMKs. This value can only be set when KMSEncrypted is * true. Optional.

*/ inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; } /** *

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used * for Amazon S3 server-side encryption. Storage Gateway does not support * asymmetric CMKs. This value can only be set when KMSEncrypted is * true. Optional.

*/ inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; } /** *

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used * for Amazon S3 server-side encryption. Storage Gateway does not support * asymmetric CMKs. This value can only be set when KMSEncrypted is * true. Optional.

*/ inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); } /** *

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used * for Amazon S3 server-side encryption. Storage Gateway does not support * asymmetric CMKs. This value can only be set when KMSEncrypted is * true. Optional.

*/ inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); } /** *

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used * for Amazon S3 server-side encryption. Storage Gateway does not support * asymmetric CMKs. This value can only be set when KMSEncrypted is * true. Optional.

*/ inline CreateTapeWithBarcodeRequest& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;} /** *

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used * for Amazon S3 server-side encryption. Storage Gateway does not support * asymmetric CMKs. This value can only be set when KMSEncrypted is * true. Optional.

*/ inline CreateTapeWithBarcodeRequest& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used * for Amazon S3 server-side encryption. Storage Gateway does not support * asymmetric CMKs. This value can only be set when KMSEncrypted is * true. Optional.

*/ inline CreateTapeWithBarcodeRequest& WithKMSKey(const char* value) { SetKMSKey(value); return *this;} /** *

The ID of the pool that you want to add your tape to for archiving. The tape * in this pool is archived in the S3 storage class that is associated with the * pool. When you use your backup application to eject the tape, the tape is * archived directly into the storage class (S3 Glacier or S3 Deep Archive) that * corresponds to the pool.

*/ inline const Aws::String& GetPoolId() const{ return m_poolId; } /** *

The ID of the pool that you want to add your tape to for archiving. The tape * in this pool is archived in the S3 storage class that is associated with the * pool. When you use your backup application to eject the tape, the tape is * archived directly into the storage class (S3 Glacier or S3 Deep Archive) that * corresponds to the pool.

*/ inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; } /** *

The ID of the pool that you want to add your tape to for archiving. The tape * in this pool is archived in the S3 storage class that is associated with the * pool. When you use your backup application to eject the tape, the tape is * archived directly into the storage class (S3 Glacier or S3 Deep Archive) that * corresponds to the pool.

*/ inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; } /** *

The ID of the pool that you want to add your tape to for archiving. The tape * in this pool is archived in the S3 storage class that is associated with the * pool. When you use your backup application to eject the tape, the tape is * archived directly into the storage class (S3 Glacier or S3 Deep Archive) that * corresponds to the pool.

*/ inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); } /** *

The ID of the pool that you want to add your tape to for archiving. The tape * in this pool is archived in the S3 storage class that is associated with the * pool. When you use your backup application to eject the tape, the tape is * archived directly into the storage class (S3 Glacier or S3 Deep Archive) that * corresponds to the pool.

*/ inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); } /** *

The ID of the pool that you want to add your tape to for archiving. The tape * in this pool is archived in the S3 storage class that is associated with the * pool. When you use your backup application to eject the tape, the tape is * archived directly into the storage class (S3 Glacier or S3 Deep Archive) that * corresponds to the pool.

*/ inline CreateTapeWithBarcodeRequest& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;} /** *

The ID of the pool that you want to add your tape to for archiving. The tape * in this pool is archived in the S3 storage class that is associated with the * pool. When you use your backup application to eject the tape, the tape is * archived directly into the storage class (S3 Glacier or S3 Deep Archive) that * corresponds to the pool.

*/ inline CreateTapeWithBarcodeRequest& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;} /** *

The ID of the pool that you want to add your tape to for archiving. The tape * in this pool is archived in the S3 storage class that is associated with the * pool. When you use your backup application to eject the tape, the tape is * archived directly into the storage class (S3 Glacier or S3 Deep Archive) that * corresponds to the pool.

*/ inline CreateTapeWithBarcodeRequest& WithPoolId(const char* value) { SetPoolId(value); return *this;} /** *

Set to TRUE if the tape you are creating is to be configured as * a write-once-read-many (WORM) tape.

*/ inline bool GetWorm() const{ return m_worm; } /** *

Set to TRUE if the tape you are creating is to be configured as * a write-once-read-many (WORM) tape.

*/ inline bool WormHasBeenSet() const { return m_wormHasBeenSet; } /** *

Set to TRUE if the tape you are creating is to be configured as * a write-once-read-many (WORM) tape.

*/ inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; } /** *

Set to TRUE if the tape you are creating is to be configured as * a write-once-read-many (WORM) tape.

*/ inline CreateTapeWithBarcodeRequest& WithWorm(bool value) { SetWorm(value); return *this;} /** *

A list of up to 50 tags that can be assigned to a virtual tape that has a * barcode. Each tag is a key-value pair.

Valid characters for key * and value are letters, spaces, and numbers representable in UTF-8 format, and * the following special characters: + - = . _ : / @. The maximum length of a tag's * key is 128 characters, and the maximum length for a tag's value is 256.

* */ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of up to 50 tags that can be assigned to a virtual tape that has a * barcode. Each tag is a key-value pair.

Valid characters for key * and value are letters, spaces, and numbers representable in UTF-8 format, and * the following special characters: + - = . _ : / @. The maximum length of a tag's * key is 128 characters, and the maximum length for a tag's value is 256.

* */ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of up to 50 tags that can be assigned to a virtual tape that has a * barcode. Each tag is a key-value pair.

Valid characters for key * and value are letters, spaces, and numbers representable in UTF-8 format, and * the following special characters: + - = . _ : / @. The maximum length of a tag's * key is 128 characters, and the maximum length for a tag's value is 256.

* */ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of up to 50 tags that can be assigned to a virtual tape that has a * barcode. Each tag is a key-value pair.

Valid characters for key * and value are letters, spaces, and numbers representable in UTF-8 format, and * the following special characters: + - = . _ : / @. The maximum length of a tag's * key is 128 characters, and the maximum length for a tag's value is 256.

* */ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of up to 50 tags that can be assigned to a virtual tape that has a * barcode. Each tag is a key-value pair.

Valid characters for key * and value are letters, spaces, and numbers representable in UTF-8 format, and * the following special characters: + - = . _ : / @. The maximum length of a tag's * key is 128 characters, and the maximum length for a tag's value is 256.

* */ inline CreateTapeWithBarcodeRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of up to 50 tags that can be assigned to a virtual tape that has a * barcode. Each tag is a key-value pair.

Valid characters for key * and value are letters, spaces, and numbers representable in UTF-8 format, and * the following special characters: + - = . _ : / @. The maximum length of a tag's * key is 128 characters, and the maximum length for a tag's value is 256.

* */ inline CreateTapeWithBarcodeRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of up to 50 tags that can be assigned to a virtual tape that has a * barcode. Each tag is a key-value pair.

Valid characters for key * and value are letters, spaces, and numbers representable in UTF-8 format, and * the following special characters: + - = . _ : / @. The maximum length of a tag's * key is 128 characters, and the maximum length for a tag's value is 256.

* */ inline CreateTapeWithBarcodeRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of up to 50 tags that can be assigned to a virtual tape that has a * barcode. Each tag is a key-value pair.

Valid characters for key * and value are letters, spaces, and numbers representable in UTF-8 format, and * the following special characters: + - = . _ : / @. The maximum length of a tag's * key is 128 characters, and the maximum length for a tag's value is 256.

* */ inline CreateTapeWithBarcodeRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_gatewayARN; bool m_gatewayARNHasBeenSet = false; long long m_tapeSizeInBytes; bool m_tapeSizeInBytesHasBeenSet = false; Aws::String m_tapeBarcode; bool m_tapeBarcodeHasBeenSet = false; bool m_kMSEncrypted; bool m_kMSEncryptedHasBeenSet = false; Aws::String m_kMSKey; bool m_kMSKeyHasBeenSet = false; Aws::String m_poolId; bool m_poolIdHasBeenSet = false; bool m_worm; bool m_wormHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws