/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace StorageGateway { namespace Model { /** */ class CreateTapePoolRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API CreateTapePoolRequest(); // 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 "CreateTapePool"; } AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override; AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the new custom tape pool.

*/ inline const Aws::String& GetPoolName() const{ return m_poolName; } /** *

The name of the new custom tape pool.

*/ inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; } /** *

The name of the new custom tape pool.

*/ inline void SetPoolName(const Aws::String& value) { m_poolNameHasBeenSet = true; m_poolName = value; } /** *

The name of the new custom tape pool.

*/ inline void SetPoolName(Aws::String&& value) { m_poolNameHasBeenSet = true; m_poolName = std::move(value); } /** *

The name of the new custom tape pool.

*/ inline void SetPoolName(const char* value) { m_poolNameHasBeenSet = true; m_poolName.assign(value); } /** *

The name of the new custom tape pool.

*/ inline CreateTapePoolRequest& WithPoolName(const Aws::String& value) { SetPoolName(value); return *this;} /** *

The name of the new custom tape pool.

*/ inline CreateTapePoolRequest& WithPoolName(Aws::String&& value) { SetPoolName(std::move(value)); return *this;} /** *

The name of the new custom tape pool.

*/ inline CreateTapePoolRequest& WithPoolName(const char* value) { SetPoolName(value); return *this;} /** *

The storage class that is associated with the new custom pool. When you use * your backup application to eject the tape, the tape is archived directly into * the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to * the pool.

*/ inline const TapeStorageClass& GetStorageClass() const{ return m_storageClass; } /** *

The storage class that is associated with the new custom pool. When you use * your backup application to eject the tape, the tape is archived directly into * the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to * the pool.

*/ inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; } /** *

The storage class that is associated with the new custom pool. When you use * your backup application to eject the tape, the tape is archived directly into * the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to * the pool.

*/ inline void SetStorageClass(const TapeStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; } /** *

The storage class that is associated with the new custom pool. When you use * your backup application to eject the tape, the tape is archived directly into * the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to * the pool.

*/ inline void SetStorageClass(TapeStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); } /** *

The storage class that is associated with the new custom pool. When you use * your backup application to eject the tape, the tape is archived directly into * the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to * the pool.

*/ inline CreateTapePoolRequest& WithStorageClass(const TapeStorageClass& value) { SetStorageClass(value); return *this;} /** *

The storage class that is associated with the new custom pool. When you use * your backup application to eject the tape, the tape is archived directly into * the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to * the pool.

*/ inline CreateTapePoolRequest& WithStorageClass(TapeStorageClass&& value) { SetStorageClass(std::move(value)); return *this;} /** *

Tape retention lock can be configured in two modes. When configured in * governance mode, Amazon Web Services accounts with specific IAM permissions are * authorized to remove the tape retention lock from archived virtual tapes. When * configured in compliance mode, the tape retention lock cannot be removed by any * user, including the root Amazon Web Services account.

*/ inline const RetentionLockType& GetRetentionLockType() const{ return m_retentionLockType; } /** *

Tape retention lock can be configured in two modes. When configured in * governance mode, Amazon Web Services accounts with specific IAM permissions are * authorized to remove the tape retention lock from archived virtual tapes. When * configured in compliance mode, the tape retention lock cannot be removed by any * user, including the root Amazon Web Services account.

*/ inline bool RetentionLockTypeHasBeenSet() const { return m_retentionLockTypeHasBeenSet; } /** *

Tape retention lock can be configured in two modes. When configured in * governance mode, Amazon Web Services accounts with specific IAM permissions are * authorized to remove the tape retention lock from archived virtual tapes. When * configured in compliance mode, the tape retention lock cannot be removed by any * user, including the root Amazon Web Services account.

*/ inline void SetRetentionLockType(const RetentionLockType& value) { m_retentionLockTypeHasBeenSet = true; m_retentionLockType = value; } /** *

Tape retention lock can be configured in two modes. When configured in * governance mode, Amazon Web Services accounts with specific IAM permissions are * authorized to remove the tape retention lock from archived virtual tapes. When * configured in compliance mode, the tape retention lock cannot be removed by any * user, including the root Amazon Web Services account.

*/ inline void SetRetentionLockType(RetentionLockType&& value) { m_retentionLockTypeHasBeenSet = true; m_retentionLockType = std::move(value); } /** *

Tape retention lock can be configured in two modes. When configured in * governance mode, Amazon Web Services accounts with specific IAM permissions are * authorized to remove the tape retention lock from archived virtual tapes. When * configured in compliance mode, the tape retention lock cannot be removed by any * user, including the root Amazon Web Services account.

*/ inline CreateTapePoolRequest& WithRetentionLockType(const RetentionLockType& value) { SetRetentionLockType(value); return *this;} /** *

Tape retention lock can be configured in two modes. When configured in * governance mode, Amazon Web Services accounts with specific IAM permissions are * authorized to remove the tape retention lock from archived virtual tapes. When * configured in compliance mode, the tape retention lock cannot be removed by any * user, including the root Amazon Web Services account.

*/ inline CreateTapePoolRequest& WithRetentionLockType(RetentionLockType&& value) { SetRetentionLockType(std::move(value)); return *this;} /** *

Tape retention lock time is set in days. Tape retention lock can be enabled * for up to 100 years (36,500 days).

*/ inline int GetRetentionLockTimeInDays() const{ return m_retentionLockTimeInDays; } /** *

Tape retention lock time is set in days. Tape retention lock can be enabled * for up to 100 years (36,500 days).

*/ inline bool RetentionLockTimeInDaysHasBeenSet() const { return m_retentionLockTimeInDaysHasBeenSet; } /** *

Tape retention lock time is set in days. Tape retention lock can be enabled * for up to 100 years (36,500 days).

*/ inline void SetRetentionLockTimeInDays(int value) { m_retentionLockTimeInDaysHasBeenSet = true; m_retentionLockTimeInDays = value; } /** *

Tape retention lock time is set in days. Tape retention lock can be enabled * for up to 100 years (36,500 days).

*/ inline CreateTapePoolRequest& WithRetentionLockTimeInDays(int value) { SetRetentionLockTimeInDays(value); return *this;} /** *

A list of up to 50 tags that can be assigned to tape pool. 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 tape pool. 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 tape pool. 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 tape pool. 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 tape pool. 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 CreateTapePoolRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of up to 50 tags that can be assigned to tape pool. 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 CreateTapePoolRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of up to 50 tags that can be assigned to tape pool. 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 CreateTapePoolRequest& 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 tape pool. 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 CreateTapePoolRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_poolName; bool m_poolNameHasBeenSet = false; TapeStorageClass m_storageClass; bool m_storageClassHasBeenSet = false; RetentionLockType m_retentionLockType; bool m_retentionLockTypeHasBeenSet = false; int m_retentionLockTimeInDays; bool m_retentionLockTimeInDaysHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws