/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace StorageGateway { namespace Model { /** *

Describes a custom tape pool.

See Also:

AWS * API Reference

*/ class PoolInfo { public: AWS_STORAGEGATEWAY_API PoolInfo(); AWS_STORAGEGATEWAY_API PoolInfo(Aws::Utils::Json::JsonView jsonValue); AWS_STORAGEGATEWAY_API PoolInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the custom tape pool. Use the * ListTapePools operation to return a list of custom tape pools for your * account and Amazon Web Services Region.

*/ inline const Aws::String& GetPoolARN() const{ return m_poolARN; } /** *

The Amazon Resource Name (ARN) of the custom tape pool. Use the * ListTapePools operation to return a list of custom tape pools for your * account and Amazon Web Services Region.

*/ inline bool PoolARNHasBeenSet() const { return m_poolARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the custom tape pool. Use the * ListTapePools operation to return a list of custom tape pools for your * account and Amazon Web Services Region.

*/ inline void SetPoolARN(const Aws::String& value) { m_poolARNHasBeenSet = true; m_poolARN = value; } /** *

The Amazon Resource Name (ARN) of the custom tape pool. Use the * ListTapePools operation to return a list of custom tape pools for your * account and Amazon Web Services Region.

*/ inline void SetPoolARN(Aws::String&& value) { m_poolARNHasBeenSet = true; m_poolARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the custom tape pool. Use the * ListTapePools operation to return a list of custom tape pools for your * account and Amazon Web Services Region.

*/ inline void SetPoolARN(const char* value) { m_poolARNHasBeenSet = true; m_poolARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the custom tape pool. Use the * ListTapePools operation to return a list of custom tape pools for your * account and Amazon Web Services Region.

*/ inline PoolInfo& WithPoolARN(const Aws::String& value) { SetPoolARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the custom tape pool. Use the * ListTapePools operation to return a list of custom tape pools for your * account and Amazon Web Services Region.

*/ inline PoolInfo& WithPoolARN(Aws::String&& value) { SetPoolARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the custom tape pool. Use the * ListTapePools operation to return a list of custom tape pools for your * account and Amazon Web Services Region.

*/ inline PoolInfo& WithPoolARN(const char* value) { SetPoolARN(value); return *this;} /** *

The name of the custom tape pool. PoolName can use all ASCII * characters, except '/' and '\'.

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

The name of the custom tape pool. PoolName can use all ASCII * characters, except '/' and '\'.

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

The name of the custom tape pool. PoolName can use all ASCII * characters, except '/' and '\'.

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

The name of the custom tape pool. PoolName can use all ASCII * characters, except '/' and '\'.

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

The name of the custom tape pool. PoolName can use all ASCII * characters, except '/' and '\'.

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

The name of the custom tape pool. PoolName can use all ASCII * characters, except '/' and '\'.

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

The name of the custom tape pool. PoolName can use all ASCII * characters, except '/' and '\'.

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

The name of the custom tape pool. PoolName can use all ASCII * characters, except '/' and '\'.

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

The storage class that is associated with the 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 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 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 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 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 PoolInfo& WithStorageClass(const TapeStorageClass& value) { SetStorageClass(value); return *this;} /** *

The storage class that is associated with the 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 PoolInfo& WithStorageClass(TapeStorageClass&& value) { SetStorageClass(std::move(value)); return *this;} /** *

Tape retention lock type, which 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 type, which 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 type, which 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 type, which 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 type, which 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 PoolInfo& WithRetentionLockType(const RetentionLockType& value) { SetRetentionLockType(value); return *this;} /** *

Tape retention lock type, which 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 PoolInfo& 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 PoolInfo& WithRetentionLockTimeInDays(int value) { SetRetentionLockTimeInDays(value); return *this;} /** *

Status of the custom tape pool. Pool can be ACTIVE or * DELETED.

*/ inline const PoolStatus& GetPoolStatus() const{ return m_poolStatus; } /** *

Status of the custom tape pool. Pool can be ACTIVE or * DELETED.

*/ inline bool PoolStatusHasBeenSet() const { return m_poolStatusHasBeenSet; } /** *

Status of the custom tape pool. Pool can be ACTIVE or * DELETED.

*/ inline void SetPoolStatus(const PoolStatus& value) { m_poolStatusHasBeenSet = true; m_poolStatus = value; } /** *

Status of the custom tape pool. Pool can be ACTIVE or * DELETED.

*/ inline void SetPoolStatus(PoolStatus&& value) { m_poolStatusHasBeenSet = true; m_poolStatus = std::move(value); } /** *

Status of the custom tape pool. Pool can be ACTIVE or * DELETED.

*/ inline PoolInfo& WithPoolStatus(const PoolStatus& value) { SetPoolStatus(value); return *this;} /** *

Status of the custom tape pool. Pool can be ACTIVE or * DELETED.

*/ inline PoolInfo& WithPoolStatus(PoolStatus&& value) { SetPoolStatus(std::move(value)); return *this;} private: Aws::String m_poolARN; bool m_poolARNHasBeenSet = false; 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; PoolStatus m_poolStatus; bool m_poolStatusHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws