/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 GetBackupSelectionResult { public: AWS_BACKUP_API GetBackupSelectionResult(); AWS_BACKUP_API GetBackupSelectionResult(const Aws::AmazonWebServiceResult& result); AWS_BACKUP_API GetBackupSelectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Specifies the body of a request to assign a set of resources to a backup * plan.

*/ inline const BackupSelection& GetBackupSelection() const{ return m_backupSelection; } /** *

Specifies the body of a request to assign a set of resources to a backup * plan.

*/ inline void SetBackupSelection(const BackupSelection& value) { m_backupSelection = value; } /** *

Specifies the body of a request to assign a set of resources to a backup * plan.

*/ inline void SetBackupSelection(BackupSelection&& value) { m_backupSelection = std::move(value); } /** *

Specifies the body of a request to assign a set of resources to a backup * plan.

*/ inline GetBackupSelectionResult& WithBackupSelection(const BackupSelection& value) { SetBackupSelection(value); return *this;} /** *

Specifies the body of a request to assign a set of resources to a backup * plan.

*/ inline GetBackupSelectionResult& WithBackupSelection(BackupSelection&& value) { SetBackupSelection(std::move(value)); return *this;} /** *

Uniquely identifies the body of a request to assign a set of resources to a * backup plan.

*/ inline const Aws::String& GetSelectionId() const{ return m_selectionId; } /** *

Uniquely identifies the body of a request to assign a set of resources to a * backup plan.

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

Uniquely identifies the body of a request to assign a set of resources to a * backup plan.

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

Uniquely identifies the body of a request to assign a set of resources to a * backup plan.

*/ inline void SetSelectionId(const char* value) { m_selectionId.assign(value); } /** *

Uniquely identifies the body of a request to assign a set of resources to a * backup plan.

*/ inline GetBackupSelectionResult& WithSelectionId(const Aws::String& value) { SetSelectionId(value); return *this;} /** *

Uniquely identifies the body of a request to assign a set of resources to a * backup plan.

*/ inline GetBackupSelectionResult& WithSelectionId(Aws::String&& value) { SetSelectionId(std::move(value)); return *this;} /** *

Uniquely identifies the body of a request to assign a set of resources to a * backup plan.

*/ inline GetBackupSelectionResult& WithSelectionId(const char* value) { SetSelectionId(value); return *this;} /** *

Uniquely identifies a backup plan.

*/ inline const Aws::String& GetBackupPlanId() const{ return m_backupPlanId; } /** *

Uniquely identifies a backup plan.

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

Uniquely identifies a backup plan.

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

Uniquely identifies a backup plan.

*/ inline void SetBackupPlanId(const char* value) { m_backupPlanId.assign(value); } /** *

Uniquely identifies a backup plan.

*/ inline GetBackupSelectionResult& WithBackupPlanId(const Aws::String& value) { SetBackupPlanId(value); return *this;} /** *

Uniquely identifies a backup plan.

*/ inline GetBackupSelectionResult& WithBackupPlanId(Aws::String&& value) { SetBackupPlanId(std::move(value)); return *this;} /** *

Uniquely identifies a backup plan.

*/ inline GetBackupSelectionResult& WithBackupPlanId(const char* value) { SetBackupPlanId(value); return *this;} /** *

The date and time a backup selection 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 selection 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 selection 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 selection 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 GetBackupSelectionResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date and time a backup selection 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 GetBackupSelectionResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice.

*/ inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; } /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice.

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

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice.

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

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice.

*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestId.assign(value); } /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice.

*/ inline GetBackupSelectionResult& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice.

*/ inline GetBackupSelectionResult& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *

A unique string that identifies the request and allows failed requests to be * retried without the risk of running the operation twice.

*/ inline GetBackupSelectionResult& WithCreatorRequestId(const char* value) { SetCreatorRequestId(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 GetBackupSelectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetBackupSelectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetBackupSelectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: BackupSelection m_backupSelection; Aws::String m_selectionId; Aws::String m_backupPlanId; Aws::Utils::DateTime m_creationDate; Aws::String m_creatorRequestId; Aws::String m_requestId; }; } // namespace Model } // namespace Backup } // namespace Aws