/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Backup { namespace Model { class CreateBackupVaultResult { public: AWS_BACKUP_API CreateBackupVaultResult(); AWS_BACKUP_API CreateBackupVaultResult(const Aws::AmazonWebServiceResult& result); AWS_BACKUP_API CreateBackupVaultResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Region where they are created. They consist of lowercase letters, numbers, and * hyphens.

*/ inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; } /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Region where they are created. They consist of lowercase letters, numbers, and * hyphens.

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

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Region where they are created. They consist of lowercase letters, numbers, and * hyphens.

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

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Region where they are created. They consist of lowercase letters, numbers, and * hyphens.

*/ inline void SetBackupVaultName(const char* value) { m_backupVaultName.assign(value); } /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Region where they are created. They consist of lowercase letters, numbers, and * hyphens.

*/ inline CreateBackupVaultResult& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;} /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Region where they are created. They consist of lowercase letters, numbers, and * hyphens.

*/ inline CreateBackupVaultResult& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;} /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Region where they are created. They consist of lowercase letters, numbers, and * hyphens.

*/ inline CreateBackupVaultResult& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for * example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline const Aws::String& GetBackupVaultArn() const{ return m_backupVaultArn; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for * example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

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

An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for * example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

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

An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for * example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline void SetBackupVaultArn(const char* value) { m_backupVaultArn.assign(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for * example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline CreateBackupVaultResult& WithBackupVaultArn(const Aws::String& value) { SetBackupVaultArn(value); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for * example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline CreateBackupVaultResult& WithBackupVaultArn(Aws::String&& value) { SetBackupVaultArn(std::move(value)); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for * example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline CreateBackupVaultResult& WithBackupVaultArn(const char* value) { SetBackupVaultArn(value); return *this;} /** *

The date and time a backup vault is created, in Unix format and Coordinated * Universal Time (UTC). The value of CreationDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

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

The date and time a backup vault is created, in Unix format and Coordinated * Universal Time (UTC). The value of CreationDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

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

The date and time a backup vault is created, in Unix format and Coordinated * Universal Time (UTC). The value of CreationDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

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

The date and time a backup vault is created, in Unix format and Coordinated * Universal Time (UTC). The value of CreationDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

*/ inline CreateBackupVaultResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date and time a backup vault is created, in Unix format and Coordinated * Universal Time (UTC). The value of CreationDate is accurate to * milliseconds. For example, the value 1516925490.087 represents Friday, January * 26, 2018 12:11:30.087 AM.

*/ inline CreateBackupVaultResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(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 CreateBackupVaultResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateBackupVaultResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateBackupVaultResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_backupVaultName; Aws::String m_backupVaultArn; Aws::Utils::DateTime m_creationDate; Aws::String m_requestId; }; } // namespace Model } // namespace Backup } // namespace Aws