com.amazonaws.services.backup.model.RecoveryPointByBackupVault Maven / Gradle / Ivy
Show all versions of aws-java-sdk-backup Show documentation
/*
* Copyright 2017-2022 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 the recovery points stored in a backup vault.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RecoveryPointByBackupVault implements Serializable, Cloneable, StructuredPojo {
/**
*
* An Amazon Resource Name (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 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 ARN that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*
*/
private String backupVaultArn;
/**
*
* The backup vault where the recovery point was originally copied from. If the recovery point is restored to the
* same account this value will be null
.
*
*/
private String sourceBackupVaultArn;
/**
*
* An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
*
*/
private String resourceArn;
/**
*
* The type of Amazon Web Services resource saved as a recovery point; 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;
/**
*
* Contains identifying information about the creation of a recovery point, including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan
* that is used to create it.
*
*/
private RecoveryPointCreator createdBy;
/**
*
* Specifies the IAM role ARN used to create the target recovery point; for example,
* arn:aws:iam::123456789012:role/S3Access
.
*
*/
private String iamRoleArn;
/**
*
* A status code specifying the state of the recovery point.
*
*/
private String status;
/**
*
* A message explaining the reason of the recovery point deletion failure.
*
*/
private String statusMessage;
/**
*
* The date and time a recovery point 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;
/**
*
* The size, in bytes, of a backup.
*
*/
private Long backupSizeInBytes;
/**
*
* A CalculatedLifecycle
object containing DeleteAt
and MoveToColdStorageAt
* timestamps.
*
*/
private CalculatedLifecycle calculatedLifecycle;
/**
*
* The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup
* transitions and expires backups automatically according to the lifecycle that you define.
*
*
* Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the
* “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to
* cold after days” setting cannot be changed after a backup has been transitioned to cold.
*
*
* Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage"
* section of the Feature
* availability by resource table. Backup ignores this expression for other resource types.
*
*/
private Lifecycle lifecycle;
/**
*
* The server-side encryption key that is used to protect your backups; for example,
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
*/
private String encryptionKeyArn;
/**
*
* A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or
* FALSE
if the recovery point is not encrypted.
*
*/
private Boolean isEncrypted;
/**
*
* The date and time a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). The
* value of LastRestoreTime
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
*
*/
private java.util.Date lastRestoreTime;
/**
*
* This is the Amazon Resource Name (ARN) of the parent (composite) recovery point.
*
*/
private String parentRecoveryPointArn;
/**
*
* This is the identifier of a resource within a composite group, such as nested (child) recovery point belonging to
* a composite (parent) stack. The ID is transferred from the logical ID within a stack.
*
*/
private String compositeMemberIdentifier;
/**
*
* This is a boolean value indicating this is a parent (composite) recovery point.
*
*/
private Boolean isParent;
/**
*
* An Amazon Resource Name (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 Amazon Resource Name (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 Amazon Resource Name (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 Amazon Resource Name (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 Amazon Resource Name (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 Amazon Resource Name (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 RecoveryPointByBackupVault withRecoveryPointArn(String recoveryPointArn) {
setRecoveryPointArn(recoveryPointArn);
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 RecoveryPointByBackupVault withBackupVaultName(String backupVaultName) {
setBackupVaultName(backupVaultName);
return this;
}
/**
*
* An ARN that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*
*
* @param backupVaultArn
* An 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 ARN that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*
*
* @return An 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 ARN that uniquely identifies a backup vault; for example,
* arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
*
*
* @param backupVaultArn
* An 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 RecoveryPointByBackupVault withBackupVaultArn(String backupVaultArn) {
setBackupVaultArn(backupVaultArn);
return this;
}
/**
*
* The backup vault where the recovery point was originally copied from. If the recovery point is restored to the
* same account this value will be null
.
*
*
* @param sourceBackupVaultArn
* The backup vault where the recovery point was originally copied from. If the recovery point is restored to
* the same account this value will be null
.
*/
public void setSourceBackupVaultArn(String sourceBackupVaultArn) {
this.sourceBackupVaultArn = sourceBackupVaultArn;
}
/**
*
* The backup vault where the recovery point was originally copied from. If the recovery point is restored to the
* same account this value will be null
.
*
*
* @return The backup vault where the recovery point was originally copied from. If the recovery point is restored
* to the same account this value will be null
.
*/
public String getSourceBackupVaultArn() {
return this.sourceBackupVaultArn;
}
/**
*
* The backup vault where the recovery point was originally copied from. If the recovery point is restored to the
* same account this value will be null
.
*
*
* @param sourceBackupVaultArn
* The backup vault where the recovery point was originally copied from. If the recovery point is restored to
* the same account this value will be null
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withSourceBackupVaultArn(String sourceBackupVaultArn) {
setSourceBackupVaultArn(sourceBackupVaultArn);
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 RecoveryPointByBackupVault withResourceArn(String resourceArn) {
setResourceArn(resourceArn);
return this;
}
/**
*
* The type of Amazon Web Services resource saved as a recovery point; 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 saved as a recovery point; 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 saved as a recovery point; 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 saved as a recovery point; 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 saved as a recovery point; 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 saved as a recovery point; 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 RecoveryPointByBackupVault withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
*
* Contains identifying information about the creation of a recovery point, including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan
* that is used to create it.
*
*
* @param createdBy
* Contains identifying information about the creation of a recovery point, including the
* BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and
* BackupRuleId
of the backup plan that is used to create it.
*/
public void setCreatedBy(RecoveryPointCreator createdBy) {
this.createdBy = createdBy;
}
/**
*
* Contains identifying information about the creation of a recovery point, including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan
* that is used to create it.
*
*
* @return Contains identifying information about the creation of a recovery point, including the
* BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and
* BackupRuleId
of the backup plan that is used to create it.
*/
public RecoveryPointCreator getCreatedBy() {
return this.createdBy;
}
/**
*
* Contains identifying information about the creation of a recovery point, including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan
* that is used to create it.
*
*
* @param createdBy
* Contains identifying information about the creation of a recovery point, including the
* BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and
* BackupRuleId
of the backup plan that is used to create it.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withCreatedBy(RecoveryPointCreator createdBy) {
setCreatedBy(createdBy);
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 RecoveryPointByBackupVault withIamRoleArn(String iamRoleArn) {
setIamRoleArn(iamRoleArn);
return this;
}
/**
*
* A status code specifying the state of the recovery point.
*
*
* @param status
* A status code specifying the state of the recovery point.
* @see RecoveryPointStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* A status code specifying the state of the recovery point.
*
*
* @return A status code specifying the state of the recovery point.
* @see RecoveryPointStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* A status code specifying the state of the recovery point.
*
*
* @param status
* A status code specifying the state of the recovery point.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RecoveryPointStatus
*/
public RecoveryPointByBackupVault withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* A status code specifying the state of the recovery point.
*
*
* @param status
* A status code specifying the state of the recovery point.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RecoveryPointStatus
*/
public RecoveryPointByBackupVault withStatus(RecoveryPointStatus status) {
this.status = status.toString();
return this;
}
/**
*
* A message explaining the reason of the recovery point deletion failure.
*
*
* @param statusMessage
* A message explaining the reason of the recovery point deletion failure.
*/
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
*
* A message explaining the reason of the recovery point deletion failure.
*
*
* @return A message explaining the reason of the recovery point deletion failure.
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
*
* A message explaining the reason of the recovery point deletion failure.
*
*
* @param statusMessage
* A message explaining the reason of the recovery point deletion failure.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withStatusMessage(String statusMessage) {
setStatusMessage(statusMessage);
return this;
}
/**
*
* The date and time a recovery point 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 recovery point 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 recovery point 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 recovery point 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 recovery point 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 recovery point 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 RecoveryPointByBackupVault 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 RecoveryPointByBackupVault withCompletionDate(java.util.Date completionDate) {
setCompletionDate(completionDate);
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 RecoveryPointByBackupVault withBackupSizeInBytes(Long backupSizeInBytes) {
setBackupSizeInBytes(backupSizeInBytes);
return this;
}
/**
*
* A CalculatedLifecycle
object containing DeleteAt
and MoveToColdStorageAt
* timestamps.
*
*
* @param calculatedLifecycle
* A CalculatedLifecycle
object containing DeleteAt
and
* MoveToColdStorageAt
timestamps.
*/
public void setCalculatedLifecycle(CalculatedLifecycle calculatedLifecycle) {
this.calculatedLifecycle = calculatedLifecycle;
}
/**
*
* A CalculatedLifecycle
object containing DeleteAt
and MoveToColdStorageAt
* timestamps.
*
*
* @return A CalculatedLifecycle
object containing DeleteAt
and
* MoveToColdStorageAt
timestamps.
*/
public CalculatedLifecycle getCalculatedLifecycle() {
return this.calculatedLifecycle;
}
/**
*
* A CalculatedLifecycle
object containing DeleteAt
and MoveToColdStorageAt
* timestamps.
*
*
* @param calculatedLifecycle
* A CalculatedLifecycle
object containing DeleteAt
and
* MoveToColdStorageAt
timestamps.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withCalculatedLifecycle(CalculatedLifecycle calculatedLifecycle) {
setCalculatedLifecycle(calculatedLifecycle);
return this;
}
/**
*
* The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup
* transitions and expires backups automatically according to the lifecycle that you define.
*
*
* Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the
* “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to
* cold after days” setting cannot be changed after a backup has been transitioned to cold.
*
*
* Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage"
* section of the Feature
* availability by resource table. Backup ignores this expression for other resource types.
*
*
* @param lifecycle
* The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.
* Backup transitions and expires backups automatically according to the lifecycle that you define.
*
* Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore,
* the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The
* “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
*
*
* Resource types that are able to be transitioned to cold storage are listed in the
* "Lifecycle to cold storage" section of the
* Feature availability by resource table. Backup ignores this expression for other resource types.
*/
public void setLifecycle(Lifecycle lifecycle) {
this.lifecycle = lifecycle;
}
/**
*
* The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup
* transitions and expires backups automatically according to the lifecycle that you define.
*
*
* Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the
* “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to
* cold after days” setting cannot be changed after a backup has been transitioned to cold.
*
*
* Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage"
* section of the Feature
* availability by resource table. Backup ignores this expression for other resource types.
*
*
* @return The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.
* Backup transitions and expires backups automatically according to the lifecycle that you define.
*
* Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore,
* the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The
* “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
*
*
* Resource types that are able to be transitioned to cold storage are listed in the
* "Lifecycle to cold storage" section of the
* Feature availability by resource table. Backup ignores this expression for other resource types.
*/
public Lifecycle getLifecycle() {
return this.lifecycle;
}
/**
*
* The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup
* transitions and expires backups automatically according to the lifecycle that you define.
*
*
* Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the
* “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to
* cold after days” setting cannot be changed after a backup has been transitioned to cold.
*
*
* Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage"
* section of the Feature
* availability by resource table. Backup ignores this expression for other resource types.
*
*
* @param lifecycle
* The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.
* Backup transitions and expires backups automatically according to the lifecycle that you define.
*
* Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore,
* the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The
* “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
*
*
* Resource types that are able to be transitioned to cold storage are listed in the
* "Lifecycle to cold storage" section of the
* Feature availability by resource table. Backup ignores this expression for other resource types.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withLifecycle(Lifecycle lifecycle) {
setLifecycle(lifecycle);
return this;
}
/**
*
* The server-side encryption key that is used to protect your backups; for example,
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
*
* @param encryptionKeyArn
* The server-side encryption key that is used to protect your backups; for example,
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*/
public void setEncryptionKeyArn(String encryptionKeyArn) {
this.encryptionKeyArn = encryptionKeyArn;
}
/**
*
* The server-side encryption key that is used to protect your backups; for example,
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
*
* @return The server-side encryption key that is used to protect your backups; for example,
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*/
public String getEncryptionKeyArn() {
return this.encryptionKeyArn;
}
/**
*
* The server-side encryption key that is used to protect your backups; for example,
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
*
* @param encryptionKeyArn
* The server-side encryption key that is used to protect your backups; for example,
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withEncryptionKeyArn(String encryptionKeyArn) {
setEncryptionKeyArn(encryptionKeyArn);
return this;
}
/**
*
* A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or
* FALSE
if the recovery point is not encrypted.
*
*
* @param isEncrypted
* A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or
* FALSE
if the recovery point is not encrypted.
*/
public void setIsEncrypted(Boolean isEncrypted) {
this.isEncrypted = isEncrypted;
}
/**
*
* A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or
* FALSE
if the recovery point is not encrypted.
*
*
* @return A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or
* FALSE
if the recovery point is not encrypted.
*/
public Boolean getIsEncrypted() {
return this.isEncrypted;
}
/**
*
* A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or
* FALSE
if the recovery point is not encrypted.
*
*
* @param isEncrypted
* A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or
* FALSE
if the recovery point is not encrypted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withIsEncrypted(Boolean isEncrypted) {
setIsEncrypted(isEncrypted);
return this;
}
/**
*
* A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or
* FALSE
if the recovery point is not encrypted.
*
*
* @return A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or
* FALSE
if the recovery point is not encrypted.
*/
public Boolean isEncrypted() {
return this.isEncrypted;
}
/**
*
* The date and time a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). The
* value of LastRestoreTime
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @param lastRestoreTime
* The date and time a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC).
* The value of LastRestoreTime
is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public void setLastRestoreTime(java.util.Date lastRestoreTime) {
this.lastRestoreTime = lastRestoreTime;
}
/**
*
* The date and time a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). The
* value of LastRestoreTime
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 recovery point was last restored, in Unix format and Coordinated Universal Time
* (UTC). The value of LastRestoreTime
is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public java.util.Date getLastRestoreTime() {
return this.lastRestoreTime;
}
/**
*
* The date and time a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). The
* value of LastRestoreTime
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @param lastRestoreTime
* The date and time a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC).
* The value of LastRestoreTime
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 RecoveryPointByBackupVault withLastRestoreTime(java.util.Date lastRestoreTime) {
setLastRestoreTime(lastRestoreTime);
return this;
}
/**
*
* This is the Amazon Resource Name (ARN) of the parent (composite) recovery point.
*
*
* @param parentRecoveryPointArn
* This is the Amazon Resource Name (ARN) of the parent (composite) recovery point.
*/
public void setParentRecoveryPointArn(String parentRecoveryPointArn) {
this.parentRecoveryPointArn = parentRecoveryPointArn;
}
/**
*
* This is the Amazon Resource Name (ARN) of the parent (composite) recovery point.
*
*
* @return This is the Amazon Resource Name (ARN) of the parent (composite) recovery point.
*/
public String getParentRecoveryPointArn() {
return this.parentRecoveryPointArn;
}
/**
*
* This is the Amazon Resource Name (ARN) of the parent (composite) recovery point.
*
*
* @param parentRecoveryPointArn
* This is the Amazon Resource Name (ARN) of the parent (composite) recovery point.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withParentRecoveryPointArn(String parentRecoveryPointArn) {
setParentRecoveryPointArn(parentRecoveryPointArn);
return this;
}
/**
*
* This is the identifier of a resource within a composite group, such as nested (child) recovery point belonging to
* a composite (parent) stack. The ID is transferred from the logical ID within a stack.
*
*
* @param compositeMemberIdentifier
* This is the identifier of a resource within a composite group, such as nested (child) recovery point
* belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.
*/
public void setCompositeMemberIdentifier(String compositeMemberIdentifier) {
this.compositeMemberIdentifier = compositeMemberIdentifier;
}
/**
*
* This is the identifier of a resource within a composite group, such as nested (child) recovery point belonging to
* a composite (parent) stack. The ID is transferred from the logical ID within a stack.
*
*
* @return This is the identifier of a resource within a composite group, such as nested (child) recovery point
* belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.
*/
public String getCompositeMemberIdentifier() {
return this.compositeMemberIdentifier;
}
/**
*
* This is the identifier of a resource within a composite group, such as nested (child) recovery point belonging to
* a composite (parent) stack. The ID is transferred from the logical ID within a stack.
*
*
* @param compositeMemberIdentifier
* This is the identifier of a resource within a composite group, such as nested (child) recovery point
* belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withCompositeMemberIdentifier(String compositeMemberIdentifier) {
setCompositeMemberIdentifier(compositeMemberIdentifier);
return this;
}
/**
*
* This is a boolean value indicating this is a parent (composite) recovery point.
*
*
* @param isParent
* This is a boolean value indicating this is a parent (composite) recovery point.
*/
public void setIsParent(Boolean isParent) {
this.isParent = isParent;
}
/**
*
* This is a boolean value indicating this is a parent (composite) recovery point.
*
*
* @return This is a boolean value indicating this is a parent (composite) recovery point.
*/
public Boolean getIsParent() {
return this.isParent;
}
/**
*
* This is a boolean value indicating this is a parent (composite) recovery point.
*
*
* @param isParent
* This is a boolean value indicating this is a parent (composite) recovery point.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecoveryPointByBackupVault withIsParent(Boolean isParent) {
setIsParent(isParent);
return this;
}
/**
*
* This is a boolean value indicating this is a parent (composite) recovery point.
*
*
* @return This is a boolean value indicating this is a parent (composite) recovery point.
*/
public Boolean isParent() {
return this.isParent;
}
/**
* 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 (getRecoveryPointArn() != null)
sb.append("RecoveryPointArn: ").append(getRecoveryPointArn()).append(",");
if (getBackupVaultName() != null)
sb.append("BackupVaultName: ").append(getBackupVaultName()).append(",");
if (getBackupVaultArn() != null)
sb.append("BackupVaultArn: ").append(getBackupVaultArn()).append(",");
if (getSourceBackupVaultArn() != null)
sb.append("SourceBackupVaultArn: ").append(getSourceBackupVaultArn()).append(",");
if (getResourceArn() != null)
sb.append("ResourceArn: ").append(getResourceArn()).append(",");
if (getResourceType() != null)
sb.append("ResourceType: ").append(getResourceType()).append(",");
if (getCreatedBy() != null)
sb.append("CreatedBy: ").append(getCreatedBy()).append(",");
if (getIamRoleArn() != null)
sb.append("IamRoleArn: ").append(getIamRoleArn()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusMessage() != null)
sb.append("StatusMessage: ").append(getStatusMessage()).append(",");
if (getCreationDate() != null)
sb.append("CreationDate: ").append(getCreationDate()).append(",");
if (getCompletionDate() != null)
sb.append("CompletionDate: ").append(getCompletionDate()).append(",");
if (getBackupSizeInBytes() != null)
sb.append("BackupSizeInBytes: ").append(getBackupSizeInBytes()).append(",");
if (getCalculatedLifecycle() != null)
sb.append("CalculatedLifecycle: ").append(getCalculatedLifecycle()).append(",");
if (getLifecycle() != null)
sb.append("Lifecycle: ").append(getLifecycle()).append(",");
if (getEncryptionKeyArn() != null)
sb.append("EncryptionKeyArn: ").append(getEncryptionKeyArn()).append(",");
if (getIsEncrypted() != null)
sb.append("IsEncrypted: ").append(getIsEncrypted()).append(",");
if (getLastRestoreTime() != null)
sb.append("LastRestoreTime: ").append(getLastRestoreTime()).append(",");
if (getParentRecoveryPointArn() != null)
sb.append("ParentRecoveryPointArn: ").append(getParentRecoveryPointArn()).append(",");
if (getCompositeMemberIdentifier() != null)
sb.append("CompositeMemberIdentifier: ").append(getCompositeMemberIdentifier()).append(",");
if (getIsParent() != null)
sb.append("IsParent: ").append(getIsParent());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof RecoveryPointByBackupVault == false)
return false;
RecoveryPointByBackupVault other = (RecoveryPointByBackupVault) obj;
if (other.getRecoveryPointArn() == null ^ this.getRecoveryPointArn() == null)
return false;
if (other.getRecoveryPointArn() != null && other.getRecoveryPointArn().equals(this.getRecoveryPointArn()) == 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.getSourceBackupVaultArn() == null ^ this.getSourceBackupVaultArn() == null)
return false;
if (other.getSourceBackupVaultArn() != null && other.getSourceBackupVaultArn().equals(this.getSourceBackupVaultArn()) == 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.getResourceType() == null ^ this.getResourceType() == null)
return false;
if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == 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.getIamRoleArn() == null ^ this.getIamRoleArn() == null)
return false;
if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == 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.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.getBackupSizeInBytes() == null ^ this.getBackupSizeInBytes() == null)
return false;
if (other.getBackupSizeInBytes() != null && other.getBackupSizeInBytes().equals(this.getBackupSizeInBytes()) == false)
return false;
if (other.getCalculatedLifecycle() == null ^ this.getCalculatedLifecycle() == null)
return false;
if (other.getCalculatedLifecycle() != null && other.getCalculatedLifecycle().equals(this.getCalculatedLifecycle()) == false)
return false;
if (other.getLifecycle() == null ^ this.getLifecycle() == null)
return false;
if (other.getLifecycle() != null && other.getLifecycle().equals(this.getLifecycle()) == false)
return false;
if (other.getEncryptionKeyArn() == null ^ this.getEncryptionKeyArn() == null)
return false;
if (other.getEncryptionKeyArn() != null && other.getEncryptionKeyArn().equals(this.getEncryptionKeyArn()) == false)
return false;
if (other.getIsEncrypted() == null ^ this.getIsEncrypted() == null)
return false;
if (other.getIsEncrypted() != null && other.getIsEncrypted().equals(this.getIsEncrypted()) == false)
return false;
if (other.getLastRestoreTime() == null ^ this.getLastRestoreTime() == null)
return false;
if (other.getLastRestoreTime() != null && other.getLastRestoreTime().equals(this.getLastRestoreTime()) == false)
return false;
if (other.getParentRecoveryPointArn() == null ^ this.getParentRecoveryPointArn() == null)
return false;
if (other.getParentRecoveryPointArn() != null && other.getParentRecoveryPointArn().equals(this.getParentRecoveryPointArn()) == false)
return false;
if (other.getCompositeMemberIdentifier() == null ^ this.getCompositeMemberIdentifier() == null)
return false;
if (other.getCompositeMemberIdentifier() != null && other.getCompositeMemberIdentifier().equals(this.getCompositeMemberIdentifier()) == false)
return false;
if (other.getIsParent() == null ^ this.getIsParent() == null)
return false;
if (other.getIsParent() != null && other.getIsParent().equals(this.getIsParent()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getRecoveryPointArn() == null) ? 0 : getRecoveryPointArn().hashCode());
hashCode = prime * hashCode + ((getBackupVaultName() == null) ? 0 : getBackupVaultName().hashCode());
hashCode = prime * hashCode + ((getBackupVaultArn() == null) ? 0 : getBackupVaultArn().hashCode());
hashCode = prime * hashCode + ((getSourceBackupVaultArn() == null) ? 0 : getSourceBackupVaultArn().hashCode());
hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode());
hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode());
hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
hashCode = prime * hashCode + ((getCompletionDate() == null) ? 0 : getCompletionDate().hashCode());
hashCode = prime * hashCode + ((getBackupSizeInBytes() == null) ? 0 : getBackupSizeInBytes().hashCode());
hashCode = prime * hashCode + ((getCalculatedLifecycle() == null) ? 0 : getCalculatedLifecycle().hashCode());
hashCode = prime * hashCode + ((getLifecycle() == null) ? 0 : getLifecycle().hashCode());
hashCode = prime * hashCode + ((getEncryptionKeyArn() == null) ? 0 : getEncryptionKeyArn().hashCode());
hashCode = prime * hashCode + ((getIsEncrypted() == null) ? 0 : getIsEncrypted().hashCode());
hashCode = prime * hashCode + ((getLastRestoreTime() == null) ? 0 : getLastRestoreTime().hashCode());
hashCode = prime * hashCode + ((getParentRecoveryPointArn() == null) ? 0 : getParentRecoveryPointArn().hashCode());
hashCode = prime * hashCode + ((getCompositeMemberIdentifier() == null) ? 0 : getCompositeMemberIdentifier().hashCode());
hashCode = prime * hashCode + ((getIsParent() == null) ? 0 : getIsParent().hashCode());
return hashCode;
}
@Override
public RecoveryPointByBackupVault clone() {
try {
return (RecoveryPointByBackupVault) 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.RecoveryPointByBackupVaultMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}