/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Backup { namespace Model { /** *

Contains metadata about a restore job.

See Also:

AWS * API Reference

*/ class RestoreJobsListMember { public: AWS_BACKUP_API RestoreJobsListMember(); AWS_BACKUP_API RestoreJobsListMember(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUP_API RestoreJobsListMember& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The account ID that owns the restore job.

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

The account ID that owns the restore job.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The account ID that owns the restore job.

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

The account ID that owns the restore job.

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

The account ID that owns the restore job.

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

The account ID that owns the restore job.

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

The account ID that owns the restore job.

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

The account ID that owns the restore job.

*/ inline RestoreJobsListMember& 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 bool RestoreJobIdHasBeenSet() const { return m_restoreJobIdHasBeenSet; } /** *

Uniquely identifies the job that restores a recovery point.

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

Uniquely identifies the job that restores a recovery point.

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

Uniquely identifies the job that restores a recovery point.

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

Uniquely identifies the job that restores a recovery point.

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

Uniquely identifies the job that restores a recovery point.

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

Uniquely identifies the job that restores a recovery point.

*/ inline RestoreJobsListMember& 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 bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; } /** *

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_recoveryPointArnHasBeenSet = true; 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_recoveryPointArnHasBeenSet = true; 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_recoveryPointArnHasBeenSet = true; 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 RestoreJobsListMember& 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 RestoreJobsListMember& 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 RestoreJobsListMember& WithRecoveryPointArn(const char* value) { SetRecoveryPointArn(value); return *this;} /** *

The date and time 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 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 bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The date and time 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_creationDateHasBeenSet = true; m_creationDate = value; } /** *

The date and time 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_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

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

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

The date and time 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 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 bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; } /** *

The date and time 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_completionDateHasBeenSet = true; m_completionDate = value; } /** *

The date and time 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_completionDateHasBeenSet = true; m_completionDate = std::move(value); } /** *

The date and time 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 RestoreJobsListMember& WithCompletionDate(const Aws::Utils::DateTime& value) { SetCompletionDate(value); return *this;} /** *

The date and time 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 RestoreJobsListMember& WithCompletionDate(Aws::Utils::DateTime&& value) { SetCompletionDate(std::move(value)); return *this;} /** *

A status code specifying the state of the job initiated by Backup to restore * a recovery point.

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

A status code specifying the state of the job initiated by Backup to restore * a recovery point.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

A status code specifying the state of the job initiated by Backup to restore * a recovery point.

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

A status code specifying the state of the job initiated by Backup to restore * a recovery point.

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

A status code specifying the state of the job initiated by Backup to restore * a recovery point.

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

A status code specifying the state of the job initiated by Backup to restore * a recovery point.

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

A detailed message explaining the status of the job to restore a recovery * point.

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

A detailed message explaining the status of the job to restore a recovery * point.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

A detailed message explaining the status of the job to restore a recovery * point.

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

A detailed message explaining the status of the job to restore a recovery * point.

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

A detailed message explaining the status of the job to restore a recovery * point.

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

A detailed message explaining the status of the job to restore a recovery * point.

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

A detailed message explaining the status of the job to restore a recovery * point.

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

A detailed message explaining the status of the job to restore a recovery * point.

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

Contains an estimated percentage 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 complete of a job at the time the job status * was queried.

*/ inline bool PercentDoneHasBeenSet() const { return m_percentDoneHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline RestoreJobsListMember& 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 bool BackupSizeInBytesHasBeenSet() const { return m_backupSizeInBytesHasBeenSet; } /** *

The size, in bytes, of the restored resource.

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

The size, in bytes, of the restored resource.

*/ inline RestoreJobsListMember& 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 bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; } /** *

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_iamRoleArnHasBeenSet = true; 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_iamRoleArnHasBeenSet = true; 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_iamRoleArnHasBeenSet = true; 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 RestoreJobsListMember& 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 RestoreJobsListMember& 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 RestoreJobsListMember& 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 bool ExpectedCompletionTimeMinutesHasBeenSet() const { return m_expectedCompletionTimeMinutesHasBeenSet; } /** *

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

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

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

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

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

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

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline bool CreatedResourceArnHasBeenSet() const { return m_createdResourceArnHasBeenSet; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

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

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

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

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

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

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

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

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

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

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

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

The resource type of the listed restore jobs; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

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

The resource type of the listed restore jobs; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type of the listed restore jobs; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

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

The resource type of the listed restore jobs; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

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

The resource type of the listed restore jobs; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

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

The resource type of the listed restore jobs; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

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

The resource type of the listed restore jobs; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

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

The resource type of the listed restore jobs; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon * RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only * supported resource type is Amazon EC2.

*/ inline RestoreJobsListMember& WithResourceType(const char* value) { SetResourceType(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_restoreJobId; bool m_restoreJobIdHasBeenSet = false; Aws::String m_recoveryPointArn; bool m_recoveryPointArnHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_completionDate; bool m_completionDateHasBeenSet = false; RestoreJobStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::String m_percentDone; bool m_percentDoneHasBeenSet = false; long long m_backupSizeInBytes; bool m_backupSizeInBytesHasBeenSet = false; Aws::String m_iamRoleArn; bool m_iamRoleArnHasBeenSet = false; long long m_expectedCompletionTimeMinutes; bool m_expectedCompletionTimeMinutesHasBeenSet = false; Aws::String m_createdResourceArn; bool m_createdResourceArnHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws