/** * 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 DescribeRestoreJobResult { public: AWS_BACKUP_API DescribeRestoreJobResult(); AWS_BACKUP_API DescribeRestoreJobResult(const Aws::AmazonWebServiceResult& result); AWS_BACKUP_API DescribeRestoreJobResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Returns the account ID that owns the restore job.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

Returns the account ID that owns the restore job.

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

Returns the account ID that owns the restore job.

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

Returns the account ID that owns the restore job.

*/ inline void SetAccountId(const char* value) { m_accountId.assign(value); } /** *

Returns the account ID that owns the restore job.

*/ inline DescribeRestoreJobResult& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

Returns the account ID that owns the restore job.

*/ inline DescribeRestoreJobResult& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

Returns the account ID that owns the restore job.

*/ inline DescribeRestoreJobResult& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

Uniquely identifies the job that restores a recovery point.

*/ inline const Aws::String& GetRestoreJobId() const{ return m_restoreJobId; } /** *

Uniquely identifies the job that restores a recovery point.

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

Uniquely identifies the job that restores a recovery point.

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

Uniquely identifies the job that restores a recovery point.

*/ inline void SetRestoreJobId(const char* value) { m_restoreJobId.assign(value); } /** *

Uniquely identifies the job that restores a recovery point.

*/ inline DescribeRestoreJobResult& WithRestoreJobId(const Aws::String& value) { SetRestoreJobId(value); return *this;} /** *

Uniquely identifies the job that restores a recovery point.

*/ inline DescribeRestoreJobResult& WithRestoreJobId(Aws::String&& value) { SetRestoreJobId(std::move(value)); return *this;} /** *

Uniquely identifies the job that restores a recovery point.

*/ inline DescribeRestoreJobResult& WithRestoreJobId(const char* value) { SetRestoreJobId(value); return *this;} /** *

An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

*/ inline const Aws::String& GetRecoveryPointArn() const{ return m_recoveryPointArn; } /** *

An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

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

An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

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

An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

*/ inline void SetRecoveryPointArn(const char* value) { m_recoveryPointArn.assign(value); } /** *

An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

*/ inline DescribeRestoreJobResult& WithRecoveryPointArn(const Aws::String& value) { SetRecoveryPointArn(value); return *this;} /** *

An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

*/ inline DescribeRestoreJobResult& WithRecoveryPointArn(Aws::String&& value) { SetRecoveryPointArn(std::move(value)); return *this;} /** *

An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

*/ inline DescribeRestoreJobResult& WithRecoveryPointArn(const char* value) { SetRecoveryPointArn(value); return *this;} /** *

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

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

The date and time that a job to restore a recovery point is completed, in * Unix format and Coordinated Universal Time (UTC). The value of * CompletionDate 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& GetCompletionDate() const{ return m_completionDate; } /** *

The date and time that a job to restore a recovery point is completed, in * Unix format and Coordinated Universal Time (UTC). The value of * CompletionDate is accurate to milliseconds. For example, the value * 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

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

The date and time that a job to restore a recovery point is completed, in * Unix format and Coordinated Universal Time (UTC). The value of * CompletionDate is accurate to milliseconds. For example, the value * 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

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

The date and time that a job to restore a recovery point is completed, in * Unix format and Coordinated Universal Time (UTC). The value of * CompletionDate is accurate to milliseconds. For example, the value * 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

*/ inline DescribeRestoreJobResult& WithCompletionDate(const Aws::Utils::DateTime& value) { SetCompletionDate(value); return *this;} /** *

The date and time that a job to restore a recovery point is completed, in * Unix format and Coordinated Universal Time (UTC). The value of * CompletionDate is accurate to milliseconds. For example, the value * 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

*/ inline DescribeRestoreJobResult& WithCompletionDate(Aws::Utils::DateTime&& value) { SetCompletionDate(std::move(value)); return *this;} /** *

Status code specifying the state of the job that is initiated by Backup to * restore a recovery point.

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

Status code specifying the state of the job that is initiated by Backup to * restore a recovery point.

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

Status code specifying the state of the job that is initiated by Backup to * restore a recovery point.

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

Status code specifying the state of the job that is initiated by Backup to * restore a recovery point.

*/ inline DescribeRestoreJobResult& WithStatus(const RestoreJobStatus& value) { SetStatus(value); return *this;} /** *

Status code specifying the state of the job that is initiated by Backup to * restore a recovery point.

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

A message showing the status of a job to restore a recovery point.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

A message showing the status of a job to restore a recovery point.

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

A message showing the status of a job to restore a recovery point.

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

A message showing the status of a job to restore a recovery point.

*/ inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); } /** *

A message showing the status of a job to restore a recovery point.

*/ inline DescribeRestoreJobResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

A message showing the status of a job to restore a recovery point.

*/ inline DescribeRestoreJobResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

A message showing the status of a job to restore a recovery point.

*/ inline DescribeRestoreJobResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

Contains an estimated percentage that is complete of a job at the time the * job status was queried.

*/ inline const Aws::String& GetPercentDone() const{ return m_percentDone; } /** *

Contains an estimated percentage that is complete of a job at the time the * job status was queried.

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

Contains an estimated percentage that is complete of a job at the time the * job status was queried.

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

Contains an estimated percentage that is complete of a job at the time the * job status was queried.

*/ inline void SetPercentDone(const char* value) { m_percentDone.assign(value); } /** *

Contains an estimated percentage that is complete of a job at the time the * job status was queried.

*/ inline DescribeRestoreJobResult& WithPercentDone(const Aws::String& value) { SetPercentDone(value); return *this;} /** *

Contains an estimated percentage that is complete of a job at the time the * job status was queried.

*/ inline DescribeRestoreJobResult& WithPercentDone(Aws::String&& value) { SetPercentDone(std::move(value)); return *this;} /** *

Contains an estimated percentage that is complete of a job at the time the * job status was queried.

*/ inline DescribeRestoreJobResult& WithPercentDone(const char* value) { SetPercentDone(value); return *this;} /** *

The size, in bytes, of the restored resource.

*/ inline long long GetBackupSizeInBytes() const{ return m_backupSizeInBytes; } /** *

The size, in bytes, of the restored resource.

*/ inline void SetBackupSizeInBytes(long long value) { m_backupSizeInBytes = value; } /** *

The size, in bytes, of the restored resource.

*/ inline DescribeRestoreJobResult& WithBackupSizeInBytes(long long value) { SetBackupSizeInBytes(value); return *this;} /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; } /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

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

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

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

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline void SetIamRoleArn(const char* value) { m_iamRoleArn.assign(value); } /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline DescribeRestoreJobResult& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;} /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline DescribeRestoreJobResult& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;} /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline DescribeRestoreJobResult& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;} /** *

The amount of time in minutes that a job restoring a recovery point is * expected to take.

*/ inline long long GetExpectedCompletionTimeMinutes() const{ return m_expectedCompletionTimeMinutes; } /** *

The amount of time in minutes that a job restoring a recovery point is * expected to take.

*/ inline void SetExpectedCompletionTimeMinutes(long long value) { m_expectedCompletionTimeMinutes = value; } /** *

The amount of time in minutes that a job restoring a recovery point is * expected to take.

*/ inline DescribeRestoreJobResult& WithExpectedCompletionTimeMinutes(long long value) { SetExpectedCompletionTimeMinutes(value); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource whose * recovery point is being restored. The format of the ARN depends on the resource * type of the backed-up resource.

*/ inline const Aws::String& GetCreatedResourceArn() const{ return m_createdResourceArn; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource whose * recovery point is being restored. The format of the ARN depends on the resource * type of the backed-up resource.

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

An Amazon Resource Name (ARN) that uniquely identifies a resource whose * recovery point is being restored. The format of the ARN depends on the resource * type of the backed-up resource.

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

An Amazon Resource Name (ARN) that uniquely identifies a resource whose * recovery point is being restored. The format of the ARN depends on the resource * type of the backed-up resource.

*/ inline void SetCreatedResourceArn(const char* value) { m_createdResourceArn.assign(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource whose * recovery point is being restored. The format of the ARN depends on the resource * type of the backed-up resource.

*/ inline DescribeRestoreJobResult& WithCreatedResourceArn(const Aws::String& value) { SetCreatedResourceArn(value); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource whose * recovery point is being restored. The format of the ARN depends on the resource * type of the backed-up resource.

*/ inline DescribeRestoreJobResult& WithCreatedResourceArn(Aws::String&& value) { SetCreatedResourceArn(std::move(value)); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource whose * recovery point is being restored. The format of the ARN depends on the resource * type of the backed-up resource.

*/ inline DescribeRestoreJobResult& WithCreatedResourceArn(const char* value) { SetCreatedResourceArn(value); return *this;} /** *

Returns metadata associated with a restore job listed by resource type.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

Returns metadata associated with a restore job listed by resource type.

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

Returns metadata associated with a restore job listed by resource type.

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

Returns metadata associated with a restore job listed by resource type.

*/ inline void SetResourceType(const char* value) { m_resourceType.assign(value); } /** *

Returns metadata associated with a restore job listed by resource type.

*/ inline DescribeRestoreJobResult& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

Returns metadata associated with a restore job listed by resource type.

*/ inline DescribeRestoreJobResult& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

Returns metadata associated with a restore job listed by resource type.

*/ inline DescribeRestoreJobResult& WithResourceType(const char* value) { SetResourceType(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 DescribeRestoreJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeRestoreJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeRestoreJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_accountId; Aws::String m_restoreJobId; Aws::String m_recoveryPointArn; Aws::Utils::DateTime m_creationDate; Aws::Utils::DateTime m_completionDate; RestoreJobStatus m_status; Aws::String m_statusMessage; Aws::String m_percentDone; long long m_backupSizeInBytes; Aws::String m_iamRoleArn; long long m_expectedCompletionTimeMinutes; Aws::String m_createdResourceArn; Aws::String m_resourceType; Aws::String m_requestId; }; } // namespace Model } // namespace Backup } // namespace Aws