com.amazonaws.services.backup.model.BackupJob Maven / Gradle / Ivy
Show all versions of aws-java-sdk-backup Show documentation
/*
* 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 detailed information about a backup job.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class BackupJob implements Serializable, Cloneable, StructuredPojo {
/**
*
* The account ID that owns the backup job.
*
*/
private String accountId;
/**
*
* Uniquely identifies a request to Backup to back up a resource.
*
*/
private String backupJobId;
/**
*
* The name of a logical container where backups are stored. Backup vaults are identified by names that are unique
* to the account used to create them and the Amazon Web Services Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*
*/
private String backupVaultName;
/**
*
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*
*/
private String backupVaultArn;
/**
*
* 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;
/**
*
* An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
*
*/
private String resourceArn;
/**
*
* The date and time a backup 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 create a backup job 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;
/**
*
* The current state of a backup job.
*
*/
private String state;
/**
*
* A detailed message explaining the status of the job to back up a resource.
*
*/
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 a backup.
*
*/
private Long backupSizeInBytes;
/**
*
* Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default role must
* include either AWSBackup
or AwsBackup
in the role name. For example,
* arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack permissions
* to perform backup jobs.
*
*/
private String iamRoleArn;
/**
*
* Contains identifying information about the creation of a backup job, including the BackupPlanArn
,
* BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan used
* to create it.
*
*/
private RecoveryPointCreator createdBy;
/**
*
* The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of ExpectedCompletionDate
is accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*
*/
private java.util.Date expectedCompletionDate;
/**
*
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before
* it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled
* time were 6:00 PM and the start window is 2 hours, the StartBy
time would be 8:00 PM on the date
* specified. The value of StartBy
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
*
*/
private java.util.Date startBy;
/**
*
* The type of Amazon Web Services resource to be backed up; 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 size in bytes transferred to a backup vault at the time that the job status was queried.
*
*/
private Long bytesTransferred;
/**
*
* Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy
* Service (VSS) backup jobs.
*
*
* Valid values: Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and
* create a Windows VSS backup. Set to "WindowsVSS":"disabled"
to create a regular backup. If you
* specify an invalid option, you get an InvalidParameterValueException
exception.
*
*/
private java.util.Map backupOptions;
/**
*
* Represents the type of backup for a backup job.
*
*/
private String backupType;
/**
*
* This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job
* ID.
*
*/
private String parentJobId;
/**
*
* This is a boolean value indicating this is a parent (composite) backup job.
*
*/
private Boolean isParent;
/**
*
* This is the non-unique name of the resource that belongs to the specified backup.
*
*/
private String resourceName;
/**
*
* This is the date on which the backup job was initiated.
*
*/
private java.util.Date initiationDate;
/**
*
* This parameter is the job count for the specified message category.
*
*
* Example strings may include AccessDenied
, SUCCESS
, AGGREGATE_ALL
, and
* INVALIDPARAMETERS
. See Monitoring for a list of
* MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*
*/
private String messageCategory;
/**
*
* The account ID that owns the backup job.
*
*
* @param accountId
* The account ID that owns the backup job.
*/
public void setAccountId(String accountId) {
this.accountId = accountId;
}
/**
*
* The account ID that owns the backup job.
*
*
* @return The account ID that owns the backup job.
*/
public String getAccountId() {
return this.accountId;
}
/**
*
* The account ID that owns the backup job.
*
*
* @param accountId
* The account ID that owns the backup job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withAccountId(String accountId) {
setAccountId(accountId);
return this;
}
/**
*
* Uniquely identifies a request to Backup to back up a resource.
*
*
* @param backupJobId
* Uniquely identifies a request to Backup to back up a resource.
*/
public void setBackupJobId(String backupJobId) {
this.backupJobId = backupJobId;
}
/**
*
* Uniquely identifies a request to Backup to back up a resource.
*
*
* @return Uniquely identifies a request to Backup to back up a resource.
*/
public String getBackupJobId() {
return this.backupJobId;
}
/**
*
* Uniquely identifies a request to Backup to back up a resource.
*
*
* @param backupJobId
* Uniquely identifies a request to Backup to back up a resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withBackupJobId(String backupJobId) {
setBackupJobId(backupJobId);
return this;
}
/**
*
* The name of a logical container where backups are stored. Backup vaults are identified by names that are unique
* to the account used to create them and the Amazon Web Services Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*
*
* @param backupVaultName
* The name of a logical container where backups are stored. Backup vaults are identified by names that are
* unique to the account used to create them and the Amazon Web Services Region where they are created. They
* consist of lowercase letters, numbers, and hyphens.
*/
public void setBackupVaultName(String backupVaultName) {
this.backupVaultName = backupVaultName;
}
/**
*
* The name of a logical container where backups are stored. Backup vaults are identified by names that are unique
* to the account used to create them and the Amazon Web Services Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*
*
* @return The name of a logical container where backups are stored. Backup vaults are identified by names that are
* unique to the account used to create them and the Amazon Web Services Region where they are created. They
* consist of lowercase letters, numbers, and hyphens.
*/
public String getBackupVaultName() {
return this.backupVaultName;
}
/**
*
* The name of a logical container where backups are stored. Backup vaults are identified by names that are unique
* to the account used to create them and the Amazon Web Services Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*
*
* @param backupVaultName
* The name of a logical container where backups are stored. Backup vaults are identified by names that are
* unique to the account used to create them and the Amazon Web Services Region where they are created. They
* consist of lowercase letters, numbers, and hyphens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withBackupVaultName(String backupVaultName) {
setBackupVaultName(backupVaultName);
return this;
}
/**
*
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*
*
* @param backupVaultArn
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*/
public void setBackupVaultArn(String backupVaultArn) {
this.backupVaultArn = backupVaultArn;
}
/**
*
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*
*
* @return An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*/
public String getBackupVaultArn() {
return this.backupVaultArn;
}
/**
*
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*
*
* @param backupVaultArn
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withBackupVaultArn(String backupVaultArn) {
setBackupVaultArn(backupVaultArn);
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 BackupJob withRecoveryPointArn(String recoveryPointArn) {
setRecoveryPointArn(recoveryPointArn);
return this;
}
/**
*
* An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
*
*
* @param resourceArn
* An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
*/
public void setResourceArn(String resourceArn) {
this.resourceArn = resourceArn;
}
/**
*
* An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
*
*
* @return An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
*
* An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
*
*
* @param resourceArn
* An 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 BackupJob withResourceArn(String resourceArn) {
setResourceArn(resourceArn);
return this;
}
/**
*
* The date and time a backup 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 backup 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 backup 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 backup 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 backup 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 backup 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 BackupJob withCreationDate(java.util.Date creationDate) {
setCreationDate(creationDate);
return this;
}
/**
*
* The date and time a job to create a backup job 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 create a backup job 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 create a backup job 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 create a backup job 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 create a backup job 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 create a backup job 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 BackupJob withCompletionDate(java.util.Date completionDate) {
setCompletionDate(completionDate);
return this;
}
/**
*
* The current state of a backup job.
*
*
* @param state
* The current state of a backup job.
* @see BackupJobState
*/
public void setState(String state) {
this.state = state;
}
/**
*
* The current state of a backup job.
*
*
* @return The current state of a backup job.
* @see BackupJobState
*/
public String getState() {
return this.state;
}
/**
*
* The current state of a backup job.
*
*
* @param state
* The current state of a backup job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BackupJobState
*/
public BackupJob withState(String state) {
setState(state);
return this;
}
/**
*
* The current state of a backup job.
*
*
* @param state
* The current state of a backup job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BackupJobState
*/
public BackupJob withState(BackupJobState state) {
this.state = state.toString();
return this;
}
/**
*
* A detailed message explaining the status of the job to back up a resource.
*
*
* @param statusMessage
* A detailed message explaining the status of the job to back up a resource.
*/
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
*
* A detailed message explaining the status of the job to back up a resource.
*
*
* @return A detailed message explaining the status of the job to back up a resource.
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
*
* A detailed message explaining the status of the job to back up a resource.
*
*
* @param statusMessage
* A detailed message explaining the status of the job to back up a resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob 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 BackupJob withPercentDone(String percentDone) {
setPercentDone(percentDone);
return this;
}
/**
*
* The size, in bytes, of a backup.
*
*
* @param backupSizeInBytes
* The size, in bytes, of a backup.
*/
public void setBackupSizeInBytes(Long backupSizeInBytes) {
this.backupSizeInBytes = backupSizeInBytes;
}
/**
*
* The size, in bytes, of a backup.
*
*
* @return The size, in bytes, of a backup.
*/
public Long getBackupSizeInBytes() {
return this.backupSizeInBytes;
}
/**
*
* The size, in bytes, of a backup.
*
*
* @param backupSizeInBytes
* The size, in bytes, of a backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withBackupSizeInBytes(Long backupSizeInBytes) {
setBackupSizeInBytes(backupSizeInBytes);
return this;
}
/**
*
* Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default role must
* include either AWSBackup
or AwsBackup
in the role name. For example,
* arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack permissions
* to perform backup jobs.
*
*
* @param iamRoleArn
* Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default role
* must include either AWSBackup
or AwsBackup
in the role name. For example,
* arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack
* permissions to perform backup jobs.
*/
public void setIamRoleArn(String iamRoleArn) {
this.iamRoleArn = iamRoleArn;
}
/**
*
* Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default role must
* include either AWSBackup
or AwsBackup
in the role name. For example,
* arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack permissions
* to perform backup jobs.
*
*
* @return Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default
* role must include either AWSBackup
or AwsBackup
in the role name. For example,
* arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack
* permissions to perform backup jobs.
*/
public String getIamRoleArn() {
return this.iamRoleArn;
}
/**
*
* Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default role must
* include either AWSBackup
or AwsBackup
in the role name. For example,
* arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack permissions
* to perform backup jobs.
*
*
* @param iamRoleArn
* Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default role
* must include either AWSBackup
or AwsBackup
in the role name. For example,
* arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack
* permissions to perform backup jobs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withIamRoleArn(String iamRoleArn) {
setIamRoleArn(iamRoleArn);
return this;
}
/**
*
* Contains identifying information about the creation of a backup job, including the BackupPlanArn
,
* BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan used
* to create it.
*
*
* @param createdBy
* Contains identifying information about the creation of a backup job, including the
* BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and
* BackupRuleId
of the backup plan used to create it.
*/
public void setCreatedBy(RecoveryPointCreator createdBy) {
this.createdBy = createdBy;
}
/**
*
* Contains identifying information about the creation of a backup job, including the BackupPlanArn
,
* BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan used
* to create it.
*
*
* @return Contains identifying information about the creation of a backup job, including the
* BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and
* BackupRuleId
of the backup plan used to create it.
*/
public RecoveryPointCreator getCreatedBy() {
return this.createdBy;
}
/**
*
* Contains identifying information about the creation of a backup job, including the BackupPlanArn
,
* BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan used
* to create it.
*
*
* @param createdBy
* Contains identifying information about the creation of a backup job, including the
* BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and
* BackupRuleId
of the backup plan used to create it.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withCreatedBy(RecoveryPointCreator createdBy) {
setCreatedBy(createdBy);
return this;
}
/**
*
* The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of ExpectedCompletionDate
is accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @param expectedCompletionDate
* The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of ExpectedCompletionDate
is accurate to milliseconds. For
* example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public void setExpectedCompletionDate(java.util.Date expectedCompletionDate) {
this.expectedCompletionDate = expectedCompletionDate;
}
/**
*
* The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of ExpectedCompletionDate
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 back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of ExpectedCompletionDate
is accurate to milliseconds. For
* example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public java.util.Date getExpectedCompletionDate() {
return this.expectedCompletionDate;
}
/**
*
* The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of ExpectedCompletionDate
is accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @param expectedCompletionDate
* The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated
* Universal Time (UTC). The value of ExpectedCompletionDate
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 BackupJob withExpectedCompletionDate(java.util.Date expectedCompletionDate) {
setExpectedCompletionDate(expectedCompletionDate);
return this;
}
/**
*
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before
* it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled
* time were 6:00 PM and the start window is 2 hours, the StartBy
time would be 8:00 PM on the date
* specified. The value of StartBy
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @param startBy
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started
* before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the
* scheduled time were 6:00 PM and the start window is 2 hours, the StartBy
time would be 8:00
* PM on the date specified. The value of StartBy
is accurate to milliseconds. For example, the
* value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public void setStartBy(java.util.Date startBy) {
this.startBy = startBy;
}
/**
*
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before
* it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled
* time were 6:00 PM and the start window is 2 hours, the StartBy
time would be 8:00 PM on the date
* specified. The value of StartBy
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @return Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started
* before it is canceled. The value is calculated by adding the start window to the scheduled time. So if
* the scheduled time were 6:00 PM and the start window is 2 hours, the StartBy
time would be
* 8:00 PM on the date specified. The value of StartBy
is accurate to milliseconds. For
* example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public java.util.Date getStartBy() {
return this.startBy;
}
/**
*
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before
* it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled
* time were 6:00 PM and the start window is 2 hours, the StartBy
time would be 8:00 PM on the date
* specified. The value of StartBy
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @param startBy
* Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started
* before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the
* scheduled time were 6:00 PM and the start window is 2 hours, the StartBy
time would be 8:00
* PM on the date specified. The value of StartBy
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 BackupJob withStartBy(java.util.Date startBy) {
setStartBy(startBy);
return this;
}
/**
*
* The type of Amazon Web Services resource to be backed up; 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 type of Amazon Web Services resource to be backed up; 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 type of Amazon Web Services resource to be backed up; 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 type of Amazon Web Services resource to be backed up; 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 type of Amazon Web Services resource to be backed up; 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 type of Amazon Web Services resource to be backed up; 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 BackupJob withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
*
* The size in bytes transferred to a backup vault at the time that the job status was queried.
*
*
* @param bytesTransferred
* The size in bytes transferred to a backup vault at the time that the job status was queried.
*/
public void setBytesTransferred(Long bytesTransferred) {
this.bytesTransferred = bytesTransferred;
}
/**
*
* The size in bytes transferred to a backup vault at the time that the job status was queried.
*
*
* @return The size in bytes transferred to a backup vault at the time that the job status was queried.
*/
public Long getBytesTransferred() {
return this.bytesTransferred;
}
/**
*
* The size in bytes transferred to a backup vault at the time that the job status was queried.
*
*
* @param bytesTransferred
* The size in bytes transferred to a backup vault at the time that the job status was queried.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withBytesTransferred(Long bytesTransferred) {
setBytesTransferred(bytesTransferred);
return this;
}
/**
*
* Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy
* Service (VSS) backup jobs.
*
*
* Valid values: Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and
* create a Windows VSS backup. Set to "WindowsVSS":"disabled"
to create a regular backup. If you
* specify an invalid option, you get an InvalidParameterValueException
exception.
*
*
* @return Specifies the backup option for a selected resource. This option is only available for Windows Volume
* Shadow Copy Service (VSS) backup jobs.
*
* Valid values: Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup
* option and create a Windows VSS backup. Set to "WindowsVSS":"disabled"
to create a regular
* backup. If you specify an invalid option, you get an InvalidParameterValueException
* exception.
*/
public java.util.Map getBackupOptions() {
return backupOptions;
}
/**
*
* Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy
* Service (VSS) backup jobs.
*
*
* Valid values: Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and
* create a Windows VSS backup. Set to "WindowsVSS":"disabled"
to create a regular backup. If you
* specify an invalid option, you get an InvalidParameterValueException
exception.
*
*
* @param backupOptions
* Specifies the backup option for a selected resource. This option is only available for Windows Volume
* Shadow Copy Service (VSS) backup jobs.
*
* Valid values: Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup
* option and create a Windows VSS backup. Set to "WindowsVSS":"disabled"
to create a regular
* backup. If you specify an invalid option, you get an InvalidParameterValueException
* exception.
*/
public void setBackupOptions(java.util.Map backupOptions) {
this.backupOptions = backupOptions;
}
/**
*
* Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy
* Service (VSS) backup jobs.
*
*
* Valid values: Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and
* create a Windows VSS backup. Set to "WindowsVSS":"disabled"
to create a regular backup. If you
* specify an invalid option, you get an InvalidParameterValueException
exception.
*
*
* @param backupOptions
* Specifies the backup option for a selected resource. This option is only available for Windows Volume
* Shadow Copy Service (VSS) backup jobs.
*
* Valid values: Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup
* option and create a Windows VSS backup. Set to "WindowsVSS":"disabled"
to create a regular
* backup. If you specify an invalid option, you get an InvalidParameterValueException
* exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withBackupOptions(java.util.Map backupOptions) {
setBackupOptions(backupOptions);
return this;
}
/**
* Add a single BackupOptions entry
*
* @see BackupJob#withBackupOptions
* @returns a reference to this object so that method calls can be chained together.
*/
public BackupJob addBackupOptionsEntry(String key, String value) {
if (null == this.backupOptions) {
this.backupOptions = new java.util.HashMap();
}
if (this.backupOptions.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.backupOptions.put(key, value);
return this;
}
/**
* Removes all the entries added into BackupOptions.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob clearBackupOptionsEntries() {
this.backupOptions = null;
return this;
}
/**
*
* Represents the type of backup for a backup job.
*
*
* @param backupType
* Represents the type of backup for a backup job.
*/
public void setBackupType(String backupType) {
this.backupType = backupType;
}
/**
*
* Represents the type of backup for a backup job.
*
*
* @return Represents the type of backup for a backup job.
*/
public String getBackupType() {
return this.backupType;
}
/**
*
* Represents the type of backup for a backup job.
*
*
* @param backupType
* Represents the type of backup for a backup job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withBackupType(String backupType) {
setBackupType(backupType);
return this;
}
/**
*
* This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job
* ID.
*
*
* @param parentJobId
* This uniquely identifies a request to Backup to back up a resource. The return will be the parent
* (composite) job ID.
*/
public void setParentJobId(String parentJobId) {
this.parentJobId = parentJobId;
}
/**
*
* This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job
* ID.
*
*
* @return This uniquely identifies a request to Backup to back up a resource. The return will be the parent
* (composite) job ID.
*/
public String getParentJobId() {
return this.parentJobId;
}
/**
*
* This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job
* ID.
*
*
* @param parentJobId
* This uniquely identifies a request to Backup to back up a resource. The return will be the parent
* (composite) job ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withParentJobId(String parentJobId) {
setParentJobId(parentJobId);
return this;
}
/**
*
* This is a boolean value indicating this is a parent (composite) backup job.
*
*
* @param isParent
* This is a boolean value indicating this is a parent (composite) backup job.
*/
public void setIsParent(Boolean isParent) {
this.isParent = isParent;
}
/**
*
* This is a boolean value indicating this is a parent (composite) backup job.
*
*
* @return This is a boolean value indicating this is a parent (composite) backup job.
*/
public Boolean getIsParent() {
return this.isParent;
}
/**
*
* This is a boolean value indicating this is a parent (composite) backup job.
*
*
* @param isParent
* This is a boolean value indicating this is a parent (composite) backup job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withIsParent(Boolean isParent) {
setIsParent(isParent);
return this;
}
/**
*
* This is a boolean value indicating this is a parent (composite) backup job.
*
*
* @return This is a boolean value indicating this is a parent (composite) backup job.
*/
public Boolean isParent() {
return this.isParent;
}
/**
*
* This is the non-unique name of the resource that belongs to the specified backup.
*
*
* @param resourceName
* This is the non-unique name of the resource that belongs to the specified backup.
*/
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
/**
*
* This is the non-unique name of the resource that belongs to the specified backup.
*
*
* @return This is the non-unique name of the resource that belongs to the specified backup.
*/
public String getResourceName() {
return this.resourceName;
}
/**
*
* This is the non-unique name of the resource that belongs to the specified backup.
*
*
* @param resourceName
* This is the non-unique name of the resource that belongs to the specified backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withResourceName(String resourceName) {
setResourceName(resourceName);
return this;
}
/**
*
* This is the date on which the backup job was initiated.
*
*
* @param initiationDate
* This is the date on which the backup job was initiated.
*/
public void setInitiationDate(java.util.Date initiationDate) {
this.initiationDate = initiationDate;
}
/**
*
* This is the date on which the backup job was initiated.
*
*
* @return This is the date on which the backup job was initiated.
*/
public java.util.Date getInitiationDate() {
return this.initiationDate;
}
/**
*
* This is the date on which the backup job was initiated.
*
*
* @param initiationDate
* This is the date on which the backup job was initiated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withInitiationDate(java.util.Date initiationDate) {
setInitiationDate(initiationDate);
return this;
}
/**
*
* This parameter is the job count for the specified message category.
*
*
* Example strings may include AccessDenied
, SUCCESS
, AGGREGATE_ALL
, and
* INVALIDPARAMETERS
. See Monitoring for a list of
* MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*
*
* @param messageCategory
* This parameter is the job count for the specified message category.
*
* Example strings may include AccessDenied
, SUCCESS
, AGGREGATE_ALL
,
* and INVALIDPARAMETERS
. See Monitoring for a list of
* MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*/
public void setMessageCategory(String messageCategory) {
this.messageCategory = messageCategory;
}
/**
*
* This parameter is the job count for the specified message category.
*
*
* Example strings may include AccessDenied
, SUCCESS
, AGGREGATE_ALL
, and
* INVALIDPARAMETERS
. See Monitoring for a list of
* MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*
*
* @return This parameter is the job count for the specified message category.
*
* Example strings may include AccessDenied
, SUCCESS
, AGGREGATE_ALL
,
* and INVALIDPARAMETERS
. See Monitoring for a list
* of MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*/
public String getMessageCategory() {
return this.messageCategory;
}
/**
*
* This parameter is the job count for the specified message category.
*
*
* Example strings may include AccessDenied
, SUCCESS
, AGGREGATE_ALL
, and
* INVALIDPARAMETERS
. See Monitoring for a list of
* MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*
*
* @param messageCategory
* This parameter is the job count for the specified message category.
*
* Example strings may include AccessDenied
, SUCCESS
, AGGREGATE_ALL
,
* and INVALIDPARAMETERS
. See Monitoring for a list of
* MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupJob withMessageCategory(String messageCategory) {
setMessageCategory(messageCategory);
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 (getBackupJobId() != null)
sb.append("BackupJobId: ").append(getBackupJobId()).append(",");
if (getBackupVaultName() != null)
sb.append("BackupVaultName: ").append(getBackupVaultName()).append(",");
if (getBackupVaultArn() != null)
sb.append("BackupVaultArn: ").append(getBackupVaultArn()).append(",");
if (getRecoveryPointArn() != null)
sb.append("RecoveryPointArn: ").append(getRecoveryPointArn()).append(",");
if (getResourceArn() != null)
sb.append("ResourceArn: ").append(getResourceArn()).append(",");
if (getCreationDate() != null)
sb.append("CreationDate: ").append(getCreationDate()).append(",");
if (getCompletionDate() != null)
sb.append("CompletionDate: ").append(getCompletionDate()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).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 (getCreatedBy() != null)
sb.append("CreatedBy: ").append(getCreatedBy()).append(",");
if (getExpectedCompletionDate() != null)
sb.append("ExpectedCompletionDate: ").append(getExpectedCompletionDate()).append(",");
if (getStartBy() != null)
sb.append("StartBy: ").append(getStartBy()).append(",");
if (getResourceType() != null)
sb.append("ResourceType: ").append(getResourceType()).append(",");
if (getBytesTransferred() != null)
sb.append("BytesTransferred: ").append(getBytesTransferred()).append(",");
if (getBackupOptions() != null)
sb.append("BackupOptions: ").append(getBackupOptions()).append(",");
if (getBackupType() != null)
sb.append("BackupType: ").append(getBackupType()).append(",");
if (getParentJobId() != null)
sb.append("ParentJobId: ").append(getParentJobId()).append(",");
if (getIsParent() != null)
sb.append("IsParent: ").append(getIsParent()).append(",");
if (getResourceName() != null)
sb.append("ResourceName: ").append(getResourceName()).append(",");
if (getInitiationDate() != null)
sb.append("InitiationDate: ").append(getInitiationDate()).append(",");
if (getMessageCategory() != null)
sb.append("MessageCategory: ").append(getMessageCategory());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof BackupJob == false)
return false;
BackupJob other = (BackupJob) obj;
if (other.getAccountId() == null ^ this.getAccountId() == null)
return false;
if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false)
return false;
if (other.getBackupJobId() == null ^ this.getBackupJobId() == null)
return false;
if (other.getBackupJobId() != null && other.getBackupJobId().equals(this.getBackupJobId()) == false)
return false;
if (other.getBackupVaultName() == null ^ this.getBackupVaultName() == null)
return false;
if (other.getBackupVaultName() != null && other.getBackupVaultName().equals(this.getBackupVaultName()) == false)
return false;
if (other.getBackupVaultArn() == null ^ this.getBackupVaultArn() == null)
return false;
if (other.getBackupVaultArn() != null && other.getBackupVaultArn().equals(this.getBackupVaultArn()) == 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.getResourceArn() == null ^ this.getResourceArn() == null)
return false;
if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == 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.getState() == null ^ this.getState() == null)
return false;
if (other.getState() != null && other.getState().equals(this.getState()) == 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.getCreatedBy() == null ^ this.getCreatedBy() == null)
return false;
if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false)
return false;
if (other.getExpectedCompletionDate() == null ^ this.getExpectedCompletionDate() == null)
return false;
if (other.getExpectedCompletionDate() != null && other.getExpectedCompletionDate().equals(this.getExpectedCompletionDate()) == false)
return false;
if (other.getStartBy() == null ^ this.getStartBy() == null)
return false;
if (other.getStartBy() != null && other.getStartBy().equals(this.getStartBy()) == 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.getBytesTransferred() == null ^ this.getBytesTransferred() == null)
return false;
if (other.getBytesTransferred() != null && other.getBytesTransferred().equals(this.getBytesTransferred()) == false)
return false;
if (other.getBackupOptions() == null ^ this.getBackupOptions() == null)
return false;
if (other.getBackupOptions() != null && other.getBackupOptions().equals(this.getBackupOptions()) == false)
return false;
if (other.getBackupType() == null ^ this.getBackupType() == null)
return false;
if (other.getBackupType() != null && other.getBackupType().equals(this.getBackupType()) == false)
return false;
if (other.getParentJobId() == null ^ this.getParentJobId() == null)
return false;
if (other.getParentJobId() != null && other.getParentJobId().equals(this.getParentJobId()) == false)
return false;
if (other.getIsParent() == null ^ this.getIsParent() == null)
return false;
if (other.getIsParent() != null && other.getIsParent().equals(this.getIsParent()) == false)
return false;
if (other.getResourceName() == null ^ this.getResourceName() == null)
return false;
if (other.getResourceName() != null && other.getResourceName().equals(this.getResourceName()) == false)
return false;
if (other.getInitiationDate() == null ^ this.getInitiationDate() == null)
return false;
if (other.getInitiationDate() != null && other.getInitiationDate().equals(this.getInitiationDate()) == false)
return false;
if (other.getMessageCategory() == null ^ this.getMessageCategory() == null)
return false;
if (other.getMessageCategory() != null && other.getMessageCategory().equals(this.getMessageCategory()) == 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 + ((getBackupJobId() == null) ? 0 : getBackupJobId().hashCode());
hashCode = prime * hashCode + ((getBackupVaultName() == null) ? 0 : getBackupVaultName().hashCode());
hashCode = prime * hashCode + ((getBackupVaultArn() == null) ? 0 : getBackupVaultArn().hashCode());
hashCode = prime * hashCode + ((getRecoveryPointArn() == null) ? 0 : getRecoveryPointArn().hashCode());
hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
hashCode = prime * hashCode + ((getCompletionDate() == null) ? 0 : getCompletionDate().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().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 + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
hashCode = prime * hashCode + ((getExpectedCompletionDate() == null) ? 0 : getExpectedCompletionDate().hashCode());
hashCode = prime * hashCode + ((getStartBy() == null) ? 0 : getStartBy().hashCode());
hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode());
hashCode = prime * hashCode + ((getBytesTransferred() == null) ? 0 : getBytesTransferred().hashCode());
hashCode = prime * hashCode + ((getBackupOptions() == null) ? 0 : getBackupOptions().hashCode());
hashCode = prime * hashCode + ((getBackupType() == null) ? 0 : getBackupType().hashCode());
hashCode = prime * hashCode + ((getParentJobId() == null) ? 0 : getParentJobId().hashCode());
hashCode = prime * hashCode + ((getIsParent() == null) ? 0 : getIsParent().hashCode());
hashCode = prime * hashCode + ((getResourceName() == null) ? 0 : getResourceName().hashCode());
hashCode = prime * hashCode + ((getInitiationDate() == null) ? 0 : getInitiationDate().hashCode());
hashCode = prime * hashCode + ((getMessageCategory() == null) ? 0 : getMessageCategory().hashCode());
return hashCode;
}
@Override
public BackupJob clone() {
try {
return (BackupJob) 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.BackupJobMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}