/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Backup { namespace Model { class CreateLegalHoldResult { public: AWS_BACKUP_API CreateLegalHoldResult(); AWS_BACKUP_API CreateLegalHoldResult(const Aws::AmazonWebServiceResult& result); AWS_BACKUP_API CreateLegalHoldResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

This is the string title of the legal hold returned after creating the legal * hold.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

This is the string title of the legal hold returned after creating the legal * hold.

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

This is the string title of the legal hold returned after creating the legal * hold.

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

This is the string title of the legal hold returned after creating the legal * hold.

*/ inline void SetTitle(const char* value) { m_title.assign(value); } /** *

This is the string title of the legal hold returned after creating the legal * hold.

*/ inline CreateLegalHoldResult& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

This is the string title of the legal hold returned after creating the legal * hold.

*/ inline CreateLegalHoldResult& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

This is the string title of the legal hold returned after creating the legal * hold.

*/ inline CreateLegalHoldResult& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

This displays the status of the legal hold returned after creating the legal * hold. Statuses can be ACTIVE, PENDING, * CANCELED, CANCELING, or FAILED.

*/ inline const LegalHoldStatus& GetStatus() const{ return m_status; } /** *

This displays the status of the legal hold returned after creating the legal * hold. Statuses can be ACTIVE, PENDING, * CANCELED, CANCELING, or FAILED.

*/ inline void SetStatus(const LegalHoldStatus& value) { m_status = value; } /** *

This displays the status of the legal hold returned after creating the legal * hold. Statuses can be ACTIVE, PENDING, * CANCELED, CANCELING, or FAILED.

*/ inline void SetStatus(LegalHoldStatus&& value) { m_status = std::move(value); } /** *

This displays the status of the legal hold returned after creating the legal * hold. Statuses can be ACTIVE, PENDING, * CANCELED, CANCELING, or FAILED.

*/ inline CreateLegalHoldResult& WithStatus(const LegalHoldStatus& value) { SetStatus(value); return *this;} /** *

This displays the status of the legal hold returned after creating the legal * hold. Statuses can be ACTIVE, PENDING, * CANCELED, CANCELING, or FAILED.

*/ inline CreateLegalHoldResult& WithStatus(LegalHoldStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

This is the returned string description of the legal hold.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

This is the returned string description of the legal hold.

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

This is the returned string description of the legal hold.

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

This is the returned string description of the legal hold.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

This is the returned string description of the legal hold.

*/ inline CreateLegalHoldResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

This is the returned string description of the legal hold.

*/ inline CreateLegalHoldResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

This is the returned string description of the legal hold.

*/ inline CreateLegalHoldResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Legal hold ID returned for the specified legal hold on a recovery point.

*/ inline const Aws::String& GetLegalHoldId() const{ return m_legalHoldId; } /** *

Legal hold ID returned for the specified legal hold on a recovery point.

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

Legal hold ID returned for the specified legal hold on a recovery point.

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

Legal hold ID returned for the specified legal hold on a recovery point.

*/ inline void SetLegalHoldId(const char* value) { m_legalHoldId.assign(value); } /** *

Legal hold ID returned for the specified legal hold on a recovery point.

*/ inline CreateLegalHoldResult& WithLegalHoldId(const Aws::String& value) { SetLegalHoldId(value); return *this;} /** *

Legal hold ID returned for the specified legal hold on a recovery point.

*/ inline CreateLegalHoldResult& WithLegalHoldId(Aws::String&& value) { SetLegalHoldId(std::move(value)); return *this;} /** *

Legal hold ID returned for the specified legal hold on a recovery point.

*/ inline CreateLegalHoldResult& WithLegalHoldId(const char* value) { SetLegalHoldId(value); return *this;} /** *

This is the ARN (Amazon Resource Number) of the created legal hold.

*/ inline const Aws::String& GetLegalHoldArn() const{ return m_legalHoldArn; } /** *

This is the ARN (Amazon Resource Number) of the created legal hold.

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

This is the ARN (Amazon Resource Number) of the created legal hold.

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

This is the ARN (Amazon Resource Number) of the created legal hold.

*/ inline void SetLegalHoldArn(const char* value) { m_legalHoldArn.assign(value); } /** *

This is the ARN (Amazon Resource Number) of the created legal hold.

*/ inline CreateLegalHoldResult& WithLegalHoldArn(const Aws::String& value) { SetLegalHoldArn(value); return *this;} /** *

This is the ARN (Amazon Resource Number) of the created legal hold.

*/ inline CreateLegalHoldResult& WithLegalHoldArn(Aws::String&& value) { SetLegalHoldArn(std::move(value)); return *this;} /** *

This is the ARN (Amazon Resource Number) of the created legal hold.

*/ inline CreateLegalHoldResult& WithLegalHoldArn(const char* value) { SetLegalHoldArn(value); return *this;} /** *

Time in number format when legal hold was created.

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

Time in number format when legal hold was created.

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

Time in number format when legal hold was created.

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

Time in number format when legal hold was created.

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

Time in number format when legal hold was created.

*/ inline CreateLegalHoldResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

This specifies criteria to assign a set of resources, such as resource types * or backup vaults.

*/ inline const RecoveryPointSelection& GetRecoveryPointSelection() const{ return m_recoveryPointSelection; } /** *

This specifies criteria to assign a set of resources, such as resource types * or backup vaults.

*/ inline void SetRecoveryPointSelection(const RecoveryPointSelection& value) { m_recoveryPointSelection = value; } /** *

This specifies criteria to assign a set of resources, such as resource types * or backup vaults.

*/ inline void SetRecoveryPointSelection(RecoveryPointSelection&& value) { m_recoveryPointSelection = std::move(value); } /** *

This specifies criteria to assign a set of resources, such as resource types * or backup vaults.

*/ inline CreateLegalHoldResult& WithRecoveryPointSelection(const RecoveryPointSelection& value) { SetRecoveryPointSelection(value); return *this;} /** *

This specifies criteria to assign a set of resources, such as resource types * or backup vaults.

*/ inline CreateLegalHoldResult& WithRecoveryPointSelection(RecoveryPointSelection&& value) { SetRecoveryPointSelection(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 CreateLegalHoldResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateLegalHoldResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateLegalHoldResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_title; LegalHoldStatus m_status; Aws::String m_description; Aws::String m_legalHoldId; Aws::String m_legalHoldArn; Aws::Utils::DateTime m_creationDate; RecoveryPointSelection m_recoveryPointSelection; Aws::String m_requestId; }; } // namespace Model } // namespace Backup } // namespace Aws