All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.backup.model.RestoreJobsListMember Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Backup module holds the client classes that are used for communicating with AWS Backup Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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.
 */
package com.amazonaws.services.backup.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains metadata about a restore job. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RestoreJobsListMember implements Serializable, Cloneable, StructuredPojo { /** *

* The account ID that owns the restore job. *

*/ private String accountId; /** *

* Uniquely identifies the job that restores a recovery point. *

*/ private String restoreJobId; /** *

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

*/ private String recoveryPointArn; /** *

* 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. *

*/ private java.util.Date creationDate; /** *

* 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. *

*/ private java.util.Date completionDate; /** *

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

*/ private String status; /** *

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

*/ private String statusMessage; /** *

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

*/ private String percentDone; /** *

* The size, in bytes, of the restored resource. *

*/ private Long backupSizeInBytes; /** *

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

*/ private String iamRoleArn; /** *

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

*/ private Long expectedCompletionTimeMinutes; /** *

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

*/ private String createdResourceArn; /** *

* 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. *

*/ private String resourceType; /** *

* The date on which a recovery point was created. *

*/ private java.util.Date recoveryPointCreationDate; /** *

* Contains identifying information about the creation of a restore job. *

*/ private RestoreJobCreator createdBy; /** *

* This is the status of validation run on the indicated restore job. *

*/ private String validationStatus; /** *

* This describes the status of validation run on the indicated restore job. *

*/ private String validationStatusMessage; /** *

* This notes the status of the data generated by the restore test. The status may be Deleting, * Failed, or Successful. *

*/ private String deletionStatus; /** *

* This describes the restore job deletion status. *

*/ private String deletionStatusMessage; /** *

* The account ID that owns the restore job. *

* * @param accountId * The account ID that owns the restore job. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The account ID that owns the restore job. *

* * @return The account ID that owns the restore job. */ public String getAccountId() { return this.accountId; } /** *

* The account ID that owns the restore job. *

* * @param accountId * The account ID that owns the restore job. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* Uniquely identifies the job that restores a recovery point. *

* * @param restoreJobId * Uniquely identifies the job that restores a recovery point. */ public void setRestoreJobId(String restoreJobId) { this.restoreJobId = restoreJobId; } /** *

* Uniquely identifies the job that restores a recovery point. *

* * @return Uniquely identifies the job that restores a recovery point. */ public String getRestoreJobId() { return this.restoreJobId; } /** *

* Uniquely identifies the job that restores a recovery point. *

* * @param restoreJobId * Uniquely identifies the job that restores a recovery point. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withRestoreJobId(String restoreJobId) { setRestoreJobId(restoreJobId); 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. *

* * @param 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 void setRecoveryPointArn(String recoveryPointArn) { this.recoveryPointArn = 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. *

* * @return 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 getRecoveryPointArn() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withRecoveryPointArn(String recoveryPointArn) { setRecoveryPointArn(recoveryPointArn); 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. *

* * @param 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. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = 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. *

* * @return 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. */ public java.util.Date getCreationDate() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); 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. *

* * @param 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. */ public void setCompletionDate(java.util.Date completionDate) { this.completionDate = 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. *

* * @return 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. */ public java.util.Date getCompletionDate() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withCompletionDate(java.util.Date completionDate) { setCompletionDate(completionDate); return this; } /** *

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

* * @param status * A status code specifying the state of the job initiated by Backup to restore a recovery point. * @see RestoreJobStatus */ public void setStatus(String status) { this.status = status; } /** *

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

* * @return A status code specifying the state of the job initiated by Backup to restore a recovery point. * @see RestoreJobStatus */ public String getStatus() { return this.status; } /** *

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

* * @param status * A status code specifying the state of the job initiated by Backup to restore a recovery point. * @return Returns a reference to this object so that method calls can be chained together. * @see RestoreJobStatus */ public RestoreJobsListMember withStatus(String status) { setStatus(status); return this; } /** *

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

* * @param status * A status code specifying the state of the job initiated by Backup to restore a recovery point. * @return Returns a reference to this object so that method calls can be chained together. * @see RestoreJobStatus */ public RestoreJobsListMember withStatus(RestoreJobStatus status) { this.status = status.toString(); return this; } /** *

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

* * @param statusMessage * A detailed message explaining the status of the job to restore a recovery point. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** *

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

* * @return A detailed message explaining the status of the job to restore a recovery point. */ public String getStatusMessage() { return this.statusMessage; } /** *

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

* * @param statusMessage * A detailed message explaining the status of the job to restore a recovery point. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** *

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

* * @param percentDone * Contains an estimated percentage complete of a job at the time the job status was queried. */ public void setPercentDone(String percentDone) { this.percentDone = percentDone; } /** *

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

* * @return Contains an estimated percentage complete of a job at the time the job status was queried. */ public String getPercentDone() { return this.percentDone; } /** *

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

* * @param percentDone * Contains an estimated percentage complete of a job at the time the job status was queried. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withPercentDone(String percentDone) { setPercentDone(percentDone); return this; } /** *

* The size, in bytes, of the restored resource. *

* * @param backupSizeInBytes * The size, in bytes, of the restored resource. */ public void setBackupSizeInBytes(Long backupSizeInBytes) { this.backupSizeInBytes = backupSizeInBytes; } /** *

* The size, in bytes, of the restored resource. *

* * @return The size, in bytes, of the restored resource. */ public Long getBackupSizeInBytes() { return this.backupSizeInBytes; } /** *

* The size, in bytes, of the restored resource. *

* * @param backupSizeInBytes * The size, in bytes, of the restored resource. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withBackupSizeInBytes(Long backupSizeInBytes) { setBackupSizeInBytes(backupSizeInBytes); return this; } /** *

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

* * @param iamRoleArn * Specifies the IAM role ARN used to create the target recovery point; for example, * arn:aws:iam::123456789012:role/S3Access. */ public void setIamRoleArn(String iamRoleArn) { this.iamRoleArn = iamRoleArn; } /** *

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

* * @return Specifies the IAM role ARN used to create the target recovery point; for example, * arn:aws:iam::123456789012:role/S3Access. */ public String getIamRoleArn() { return this.iamRoleArn; } /** *

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

* * @param iamRoleArn * Specifies the IAM role ARN used to create the target recovery point; for example, * arn:aws:iam::123456789012:role/S3Access. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withIamRoleArn(String iamRoleArn) { setIamRoleArn(iamRoleArn); return this; } /** *

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

* * @param expectedCompletionTimeMinutes * The amount of time in minutes that a job restoring a recovery point is expected to take. */ public void setExpectedCompletionTimeMinutes(Long expectedCompletionTimeMinutes) { this.expectedCompletionTimeMinutes = expectedCompletionTimeMinutes; } /** *

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

* * @return The amount of time in minutes that a job restoring a recovery point is expected to take. */ public Long getExpectedCompletionTimeMinutes() { return this.expectedCompletionTimeMinutes; } /** *

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

* * @param expectedCompletionTimeMinutes * The amount of time in minutes that a job restoring a recovery point is expected to take. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withExpectedCompletionTimeMinutes(Long expectedCompletionTimeMinutes) { setExpectedCompletionTimeMinutes(expectedCompletionTimeMinutes); return this; } /** *

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

* * @param createdResourceArn * An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the * resource type. */ public void setCreatedResourceArn(String createdResourceArn) { this.createdResourceArn = createdResourceArn; } /** *

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

* * @return An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the * resource type. */ public String getCreatedResourceArn() { return this.createdResourceArn; } /** *

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

* * @param createdResourceArn * An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the * resource type. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withCreatedResourceArn(String createdResourceArn) { setCreatedResourceArn(createdResourceArn); 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. *

* * @param 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. */ public void setResourceType(String resourceType) { this.resourceType = 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. *

* * @return 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. */ public String getResourceType() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* The date on which a recovery point was created. *

* * @param recoveryPointCreationDate * The date on which a recovery point was created. */ public void setRecoveryPointCreationDate(java.util.Date recoveryPointCreationDate) { this.recoveryPointCreationDate = recoveryPointCreationDate; } /** *

* The date on which a recovery point was created. *

* * @return The date on which a recovery point was created. */ public java.util.Date getRecoveryPointCreationDate() { return this.recoveryPointCreationDate; } /** *

* The date on which a recovery point was created. *

* * @param recoveryPointCreationDate * The date on which a recovery point was created. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withRecoveryPointCreationDate(java.util.Date recoveryPointCreationDate) { setRecoveryPointCreationDate(recoveryPointCreationDate); return this; } /** *

* Contains identifying information about the creation of a restore job. *

* * @param createdBy * Contains identifying information about the creation of a restore job. */ public void setCreatedBy(RestoreJobCreator createdBy) { this.createdBy = createdBy; } /** *

* Contains identifying information about the creation of a restore job. *

* * @return Contains identifying information about the creation of a restore job. */ public RestoreJobCreator getCreatedBy() { return this.createdBy; } /** *

* Contains identifying information about the creation of a restore job. *

* * @param createdBy * Contains identifying information about the creation of a restore job. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withCreatedBy(RestoreJobCreator createdBy) { setCreatedBy(createdBy); return this; } /** *

* This is the status of validation run on the indicated restore job. *

* * @param validationStatus * This is the status of validation run on the indicated restore job. * @see RestoreValidationStatus */ public void setValidationStatus(String validationStatus) { this.validationStatus = validationStatus; } /** *

* This is the status of validation run on the indicated restore job. *

* * @return This is the status of validation run on the indicated restore job. * @see RestoreValidationStatus */ public String getValidationStatus() { return this.validationStatus; } /** *

* This is the status of validation run on the indicated restore job. *

* * @param validationStatus * This is the status of validation run on the indicated restore job. * @return Returns a reference to this object so that method calls can be chained together. * @see RestoreValidationStatus */ public RestoreJobsListMember withValidationStatus(String validationStatus) { setValidationStatus(validationStatus); return this; } /** *

* This is the status of validation run on the indicated restore job. *

* * @param validationStatus * This is the status of validation run on the indicated restore job. * @return Returns a reference to this object so that method calls can be chained together. * @see RestoreValidationStatus */ public RestoreJobsListMember withValidationStatus(RestoreValidationStatus validationStatus) { this.validationStatus = validationStatus.toString(); return this; } /** *

* This describes the status of validation run on the indicated restore job. *

* * @param validationStatusMessage * This describes the status of validation run on the indicated restore job. */ public void setValidationStatusMessage(String validationStatusMessage) { this.validationStatusMessage = validationStatusMessage; } /** *

* This describes the status of validation run on the indicated restore job. *

* * @return This describes the status of validation run on the indicated restore job. */ public String getValidationStatusMessage() { return this.validationStatusMessage; } /** *

* This describes the status of validation run on the indicated restore job. *

* * @param validationStatusMessage * This describes the status of validation run on the indicated restore job. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withValidationStatusMessage(String validationStatusMessage) { setValidationStatusMessage(validationStatusMessage); return this; } /** *

* This notes the status of the data generated by the restore test. The status may be Deleting, * Failed, or Successful. *

* * @param deletionStatus * This notes the status of the data generated by the restore test. The status may be Deleting, * Failed, or Successful. * @see RestoreDeletionStatus */ public void setDeletionStatus(String deletionStatus) { this.deletionStatus = deletionStatus; } /** *

* This notes the status of the data generated by the restore test. The status may be Deleting, * Failed, or Successful. *

* * @return This notes the status of the data generated by the restore test. The status may be Deleting, * Failed, or Successful. * @see RestoreDeletionStatus */ public String getDeletionStatus() { return this.deletionStatus; } /** *

* This notes the status of the data generated by the restore test. The status may be Deleting, * Failed, or Successful. *

* * @param deletionStatus * This notes the status of the data generated by the restore test. The status may be Deleting, * Failed, or Successful. * @return Returns a reference to this object so that method calls can be chained together. * @see RestoreDeletionStatus */ public RestoreJobsListMember withDeletionStatus(String deletionStatus) { setDeletionStatus(deletionStatus); return this; } /** *

* This notes the status of the data generated by the restore test. The status may be Deleting, * Failed, or Successful. *

* * @param deletionStatus * This notes the status of the data generated by the restore test. The status may be Deleting, * Failed, or Successful. * @return Returns a reference to this object so that method calls can be chained together. * @see RestoreDeletionStatus */ public RestoreJobsListMember withDeletionStatus(RestoreDeletionStatus deletionStatus) { this.deletionStatus = deletionStatus.toString(); return this; } /** *

* This describes the restore job deletion status. *

* * @param deletionStatusMessage * This describes the restore job deletion status. */ public void setDeletionStatusMessage(String deletionStatusMessage) { this.deletionStatusMessage = deletionStatusMessage; } /** *

* This describes the restore job deletion status. *

* * @return This describes the restore job deletion status. */ public String getDeletionStatusMessage() { return this.deletionStatusMessage; } /** *

* This describes the restore job deletion status. *

* * @param deletionStatusMessage * This describes the restore job deletion status. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreJobsListMember withDeletionStatusMessage(String deletionStatusMessage) { setDeletionStatusMessage(deletionStatusMessage); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getRestoreJobId() != null) sb.append("RestoreJobId: ").append(getRestoreJobId()).append(","); if (getRecoveryPointArn() != null) sb.append("RecoveryPointArn: ").append(getRecoveryPointArn()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getCompletionDate() != null) sb.append("CompletionDate: ").append(getCompletionDate()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getPercentDone() != null) sb.append("PercentDone: ").append(getPercentDone()).append(","); if (getBackupSizeInBytes() != null) sb.append("BackupSizeInBytes: ").append(getBackupSizeInBytes()).append(","); if (getIamRoleArn() != null) sb.append("IamRoleArn: ").append(getIamRoleArn()).append(","); if (getExpectedCompletionTimeMinutes() != null) sb.append("ExpectedCompletionTimeMinutes: ").append(getExpectedCompletionTimeMinutes()).append(","); if (getCreatedResourceArn() != null) sb.append("CreatedResourceArn: ").append(getCreatedResourceArn()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getRecoveryPointCreationDate() != null) sb.append("RecoveryPointCreationDate: ").append(getRecoveryPointCreationDate()).append(","); if (getCreatedBy() != null) sb.append("CreatedBy: ").append(getCreatedBy()).append(","); if (getValidationStatus() != null) sb.append("ValidationStatus: ").append(getValidationStatus()).append(","); if (getValidationStatusMessage() != null) sb.append("ValidationStatusMessage: ").append(getValidationStatusMessage()).append(","); if (getDeletionStatus() != null) sb.append("DeletionStatus: ").append(getDeletionStatus()).append(","); if (getDeletionStatusMessage() != null) sb.append("DeletionStatusMessage: ").append(getDeletionStatusMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RestoreJobsListMember == false) return false; RestoreJobsListMember other = (RestoreJobsListMember) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getRestoreJobId() == null ^ this.getRestoreJobId() == null) return false; if (other.getRestoreJobId() != null && other.getRestoreJobId().equals(this.getRestoreJobId()) == false) return false; if (other.getRecoveryPointArn() == null ^ this.getRecoveryPointArn() == null) return false; if (other.getRecoveryPointArn() != null && other.getRecoveryPointArn().equals(this.getRecoveryPointArn()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getCompletionDate() == null ^ this.getCompletionDate() == null) return false; if (other.getCompletionDate() != null && other.getCompletionDate().equals(this.getCompletionDate()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getPercentDone() == null ^ this.getPercentDone() == null) return false; if (other.getPercentDone() != null && other.getPercentDone().equals(this.getPercentDone()) == false) return false; if (other.getBackupSizeInBytes() == null ^ this.getBackupSizeInBytes() == null) return false; if (other.getBackupSizeInBytes() != null && other.getBackupSizeInBytes().equals(this.getBackupSizeInBytes()) == false) return false; if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == null) return false; if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == false) return false; if (other.getExpectedCompletionTimeMinutes() == null ^ this.getExpectedCompletionTimeMinutes() == null) return false; if (other.getExpectedCompletionTimeMinutes() != null && other.getExpectedCompletionTimeMinutes().equals(this.getExpectedCompletionTimeMinutes()) == false) return false; if (other.getCreatedResourceArn() == null ^ this.getCreatedResourceArn() == null) return false; if (other.getCreatedResourceArn() != null && other.getCreatedResourceArn().equals(this.getCreatedResourceArn()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getRecoveryPointCreationDate() == null ^ this.getRecoveryPointCreationDate() == null) return false; if (other.getRecoveryPointCreationDate() != null && other.getRecoveryPointCreationDate().equals(this.getRecoveryPointCreationDate()) == false) return false; if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) return false; if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false) return false; if (other.getValidationStatus() == null ^ this.getValidationStatus() == null) return false; if (other.getValidationStatus() != null && other.getValidationStatus().equals(this.getValidationStatus()) == false) return false; if (other.getValidationStatusMessage() == null ^ this.getValidationStatusMessage() == null) return false; if (other.getValidationStatusMessage() != null && other.getValidationStatusMessage().equals(this.getValidationStatusMessage()) == false) return false; if (other.getDeletionStatus() == null ^ this.getDeletionStatus() == null) return false; if (other.getDeletionStatus() != null && other.getDeletionStatus().equals(this.getDeletionStatus()) == false) return false; if (other.getDeletionStatusMessage() == null ^ this.getDeletionStatusMessage() == null) return false; if (other.getDeletionStatusMessage() != null && other.getDeletionStatusMessage().equals(this.getDeletionStatusMessage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getRestoreJobId() == null) ? 0 : getRestoreJobId().hashCode()); hashCode = prime * hashCode + ((getRecoveryPointArn() == null) ? 0 : getRecoveryPointArn().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getCompletionDate() == null) ? 0 : getCompletionDate().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getPercentDone() == null) ? 0 : getPercentDone().hashCode()); hashCode = prime * hashCode + ((getBackupSizeInBytes() == null) ? 0 : getBackupSizeInBytes().hashCode()); hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode()); hashCode = prime * hashCode + ((getExpectedCompletionTimeMinutes() == null) ? 0 : getExpectedCompletionTimeMinutes().hashCode()); hashCode = prime * hashCode + ((getCreatedResourceArn() == null) ? 0 : getCreatedResourceArn().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getRecoveryPointCreationDate() == null) ? 0 : getRecoveryPointCreationDate().hashCode()); hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); hashCode = prime * hashCode + ((getValidationStatus() == null) ? 0 : getValidationStatus().hashCode()); hashCode = prime * hashCode + ((getValidationStatusMessage() == null) ? 0 : getValidationStatusMessage().hashCode()); hashCode = prime * hashCode + ((getDeletionStatus() == null) ? 0 : getDeletionStatus().hashCode()); hashCode = prime * hashCode + ((getDeletionStatusMessage() == null) ? 0 : getDeletionStatusMessage().hashCode()); return hashCode; } @Override public RestoreJobsListMember clone() { try { return (RestoreJobsListMember) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.backup.model.transform.RestoreJobsListMemberMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy