/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Backup.Model { /// /// This is the response object from the DescribeRestoreJob operation. /// public partial class DescribeRestoreJobResponse : AmazonWebServiceResponse { private string _accountId; private long? _backupSizeInBytes; private DateTime? _completionDate; private string _createdResourceArn; private DateTime? _creationDate; private long? _expectedCompletionTimeMinutes; private string _iamRoleArn; private string _percentDone; private string _recoveryPointArn; private string _resourceType; private string _restoreJobId; private RestoreJobStatus _status; private string _statusMessage; /// /// Gets and sets the property AccountId. /// /// Returns the account ID that owns the restore job. /// /// public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// /// Gets and sets the property BackupSizeInBytes. /// /// The size, in bytes, of the restored resource. /// /// public long BackupSizeInBytes { get { return this._backupSizeInBytes.GetValueOrDefault(); } set { this._backupSizeInBytes = value; } } // Check to see if BackupSizeInBytes property is set internal bool IsSetBackupSizeInBytes() { return this._backupSizeInBytes.HasValue; } /// /// Gets and sets the property 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. /// /// public DateTime CompletionDate { get { return this._completionDate.GetValueOrDefault(); } set { this._completionDate = value; } } // Check to see if CompletionDate property is set internal bool IsSetCompletionDate() { return this._completionDate.HasValue; } /// /// Gets and sets the property 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. /// /// public string CreatedResourceArn { get { return this._createdResourceArn; } set { this._createdResourceArn = value; } } // Check to see if CreatedResourceArn property is set internal bool IsSetCreatedResourceArn() { return this._createdResourceArn != null; } /// /// Gets and sets the property 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. /// /// public DateTime CreationDate { get { return this._creationDate.GetValueOrDefault(); } set { this._creationDate = value; } } // Check to see if CreationDate property is set internal bool IsSetCreationDate() { return this._creationDate.HasValue; } /// /// Gets and sets the property ExpectedCompletionTimeMinutes. /// /// The amount of time in minutes that a job restoring a recovery point is expected to /// take. /// /// public long ExpectedCompletionTimeMinutes { get { return this._expectedCompletionTimeMinutes.GetValueOrDefault(); } set { this._expectedCompletionTimeMinutes = value; } } // Check to see if ExpectedCompletionTimeMinutes property is set internal bool IsSetExpectedCompletionTimeMinutes() { return this._expectedCompletionTimeMinutes.HasValue; } /// /// Gets and sets the property IamRoleArn. /// /// Specifies the IAM role ARN used to create the target recovery point; for example, /// arn:aws:iam::123456789012:role/S3Access. /// /// public string IamRoleArn { get { return this._iamRoleArn; } set { this._iamRoleArn = value; } } // Check to see if IamRoleArn property is set internal bool IsSetIamRoleArn() { return this._iamRoleArn != null; } /// /// Gets and sets the property PercentDone. /// /// Contains an estimated percentage that is complete of a job at the time the job status /// was queried. /// /// public string PercentDone { get { return this._percentDone; } set { this._percentDone = value; } } // Check to see if PercentDone property is set internal bool IsSetPercentDone() { return this._percentDone != null; } /// /// Gets and sets the property 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. /// /// public string RecoveryPointArn { get { return this._recoveryPointArn; } set { this._recoveryPointArn = value; } } // Check to see if RecoveryPointArn property is set internal bool IsSetRecoveryPointArn() { return this._recoveryPointArn != null; } /// /// Gets and sets the property ResourceType. /// /// Returns metadata associated with a restore job listed by resource type. /// /// public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// /// Gets and sets the property RestoreJobId. /// /// Uniquely identifies the job that restores a recovery point. /// /// public string RestoreJobId { get { return this._restoreJobId; } set { this._restoreJobId = value; } } // Check to see if RestoreJobId property is set internal bool IsSetRestoreJobId() { return this._restoreJobId != null; } /// /// Gets and sets the property Status. /// /// Status code specifying the state of the job that is initiated by Backup to restore /// a recovery point. /// /// public RestoreJobStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property StatusMessage. /// /// A message showing the status of a job to restore a recovery point. /// /// public string StatusMessage { get { return this._statusMessage; } set { this._statusMessage = value; } } // Check to see if StatusMessage property is set internal bool IsSetStatusMessage() { return this._statusMessage != null; } } }