/* * Copyright 2018-2023 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
.
*
* An ARN that uniquely identifies a recovery point; for example,
* arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
*
* 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.
*
* 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.
*
* The current state of a resource recovery point. *
*/ 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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; /** ** 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
.
*
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
.
*
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
.
*
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
.
*
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
.
*
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
.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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 resource recovery point. *
* * @param state * The current state of a resource recovery point. * @see BackupJobState */ public void setState(String state) { this.state = state; } /** ** The current state of a resource recovery point. *
* * @return The current state of a resource recovery point. * @see BackupJobState */ public String getState() { return this.state; } /** ** The current state of a resource recovery point. *
* * @param state * The current state of a resource recovery point. * @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 resource recovery point. *
* * @param state * The current state of a resource recovery point. * @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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
* Valid values: Set to
* 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"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.
*
* Valid values: Set to
* 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"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.
*
* Valid values: Set to
* Represents the type of backup for a backup job.
*
* Represents the type of backup for a backup job.
*
* Represents the type of backup for a backup job.
*
* This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job
* ID.
*
* This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job
* ID.
*
* This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job
* ID.
*
* This is a boolean value indicating this is a parent (composite) backup job.
*
* This is a boolean value indicating this is a parent (composite) backup job.
*
* This is a boolean value indicating this is a parent (composite) backup job.
*
* This is a boolean value indicating this is a parent (composite) backup job.
*
* This is the non-unique name of the resource that belongs to the specified backup.
*
* This is the non-unique name of the resource that belongs to the specified backup.
*
* This is the non-unique name of the resource that belongs to the specified backup.
* "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