/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Glacier { namespace Model { /** *

Contains the Amazon S3 Glacier response to your request.

See * Also:

AWS * API Reference

*/ class DescribeVaultResult { public: AWS_GLACIER_API DescribeVaultResult(); AWS_GLACIER_API DescribeVaultResult(const Aws::AmazonWebServiceResult& result); AWS_GLACIER_API DescribeVaultResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the vault.

*/ inline const Aws::String& GetVaultARN() const{ return m_vaultARN; } /** *

The Amazon Resource Name (ARN) of the vault.

*/ inline void SetVaultARN(const Aws::String& value) { m_vaultARN = value; } /** *

The Amazon Resource Name (ARN) of the vault.

*/ inline void SetVaultARN(Aws::String&& value) { m_vaultARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the vault.

*/ inline void SetVaultARN(const char* value) { m_vaultARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the vault.

*/ inline DescribeVaultResult& WithVaultARN(const Aws::String& value) { SetVaultARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the vault.

*/ inline DescribeVaultResult& WithVaultARN(Aws::String&& value) { SetVaultARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the vault.

*/ inline DescribeVaultResult& WithVaultARN(const char* value) { SetVaultARN(value); return *this;} /** *

The name of the vault.

*/ inline const Aws::String& GetVaultName() const{ return m_vaultName; } /** *

The name of the vault.

*/ inline void SetVaultName(const Aws::String& value) { m_vaultName = value; } /** *

The name of the vault.

*/ inline void SetVaultName(Aws::String&& value) { m_vaultName = std::move(value); } /** *

The name of the vault.

*/ inline void SetVaultName(const char* value) { m_vaultName.assign(value); } /** *

The name of the vault.

*/ inline DescribeVaultResult& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;} /** *

The name of the vault.

*/ inline DescribeVaultResult& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;} /** *

The name of the vault.

*/ inline DescribeVaultResult& WithVaultName(const char* value) { SetVaultName(value); return *this;} /** *

The Universal Coordinated Time (UTC) date when the vault was created. This * value should be a string in the ISO 8601 date format, for example * 2012-03-20T17:03:43.221Z.

*/ inline const Aws::String& GetCreationDate() const{ return m_creationDate; } /** *

The Universal Coordinated Time (UTC) date when the vault was created. This * value should be a string in the ISO 8601 date format, for example * 2012-03-20T17:03:43.221Z.

*/ inline void SetCreationDate(const Aws::String& value) { m_creationDate = value; } /** *

The Universal Coordinated Time (UTC) date when the vault was created. This * value should be a string in the ISO 8601 date format, for example * 2012-03-20T17:03:43.221Z.

*/ inline void SetCreationDate(Aws::String&& value) { m_creationDate = std::move(value); } /** *

The Universal Coordinated Time (UTC) date when the vault was created. This * value should be a string in the ISO 8601 date format, for example * 2012-03-20T17:03:43.221Z.

*/ inline void SetCreationDate(const char* value) { m_creationDate.assign(value); } /** *

The Universal Coordinated Time (UTC) date when the vault was created. This * value should be a string in the ISO 8601 date format, for example * 2012-03-20T17:03:43.221Z.

*/ inline DescribeVaultResult& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;} /** *

The Universal Coordinated Time (UTC) date when the vault was created. This * value should be a string in the ISO 8601 date format, for example * 2012-03-20T17:03:43.221Z.

*/ inline DescribeVaultResult& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The Universal Coordinated Time (UTC) date when the vault was created. This * value should be a string in the ISO 8601 date format, for example * 2012-03-20T17:03:43.221Z.

*/ inline DescribeVaultResult& WithCreationDate(const char* value) { SetCreationDate(value); return *this;} /** *

The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed * the last vault inventory. This value should be a string in the ISO 8601 date * format, for example 2012-03-20T17:03:43.221Z.

*/ inline const Aws::String& GetLastInventoryDate() const{ return m_lastInventoryDate; } /** *

The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed * the last vault inventory. This value should be a string in the ISO 8601 date * format, for example 2012-03-20T17:03:43.221Z.

*/ inline void SetLastInventoryDate(const Aws::String& value) { m_lastInventoryDate = value; } /** *

The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed * the last vault inventory. This value should be a string in the ISO 8601 date * format, for example 2012-03-20T17:03:43.221Z.

*/ inline void SetLastInventoryDate(Aws::String&& value) { m_lastInventoryDate = std::move(value); } /** *

The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed * the last vault inventory. This value should be a string in the ISO 8601 date * format, for example 2012-03-20T17:03:43.221Z.

*/ inline void SetLastInventoryDate(const char* value) { m_lastInventoryDate.assign(value); } /** *

The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed * the last vault inventory. This value should be a string in the ISO 8601 date * format, for example 2012-03-20T17:03:43.221Z.

*/ inline DescribeVaultResult& WithLastInventoryDate(const Aws::String& value) { SetLastInventoryDate(value); return *this;} /** *

The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed * the last vault inventory. This value should be a string in the ISO 8601 date * format, for example 2012-03-20T17:03:43.221Z.

*/ inline DescribeVaultResult& WithLastInventoryDate(Aws::String&& value) { SetLastInventoryDate(std::move(value)); return *this;} /** *

The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed * the last vault inventory. This value should be a string in the ISO 8601 date * format, for example 2012-03-20T17:03:43.221Z.

*/ inline DescribeVaultResult& WithLastInventoryDate(const char* value) { SetLastInventoryDate(value); return *this;} /** *

The number of archives in the vault as of the last inventory date. This field * will return null if an inventory has not yet run on the vault, for * example if you just created the vault.

*/ inline long long GetNumberOfArchives() const{ return m_numberOfArchives; } /** *

The number of archives in the vault as of the last inventory date. This field * will return null if an inventory has not yet run on the vault, for * example if you just created the vault.

*/ inline void SetNumberOfArchives(long long value) { m_numberOfArchives = value; } /** *

The number of archives in the vault as of the last inventory date. This field * will return null if an inventory has not yet run on the vault, for * example if you just created the vault.

*/ inline DescribeVaultResult& WithNumberOfArchives(long long value) { SetNumberOfArchives(value); return *this;} /** *

Total size, in bytes, of the archives in the vault as of the last inventory * date. This field will return null if an inventory has not yet run on the vault, * for example if you just created the vault.

*/ inline long long GetSizeInBytes() const{ return m_sizeInBytes; } /** *

Total size, in bytes, of the archives in the vault as of the last inventory * date. This field will return null if an inventory has not yet run on the vault, * for example if you just created the vault.

*/ inline void SetSizeInBytes(long long value) { m_sizeInBytes = value; } /** *

Total size, in bytes, of the archives in the vault as of the last inventory * date. This field will return null if an inventory has not yet run on the vault, * for example if you just created the vault.

*/ inline DescribeVaultResult& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeVaultResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeVaultResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeVaultResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_vaultARN; Aws::String m_vaultName; Aws::String m_creationDate; Aws::String m_lastInventoryDate; long long m_numberOfArchives; long long m_sizeInBytes; Aws::String m_requestId; }; } // namespace Model } // namespace Glacier } // namespace Aws