/* * Copyright 2010-2019 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.dynamodbv2.model; import java.io.Serializable; /** *
* Contains the details of the backup created for the table. *
*/ public class BackupDetails implements Serializable { /** ** ARN associated with the backup. *
*
* Constraints:
* Length: 37 - 1024
*/
private String backupArn;
/**
*
* Name of the requested backup. *
*
* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
*/
private String backupName;
/**
*
* Size of the backup in bytes. *
*
* Constraints:
* Range: 0 -
*/
private Long backupSizeBytes;
/**
*
* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *
*
* Constraints:
* Allowed Values: CREATING, DELETED, AVAILABLE
*/
private String backupStatus;
/**
*
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created by DynamoDB.
*
* Constraints:
* Allowed Values: USER, SYSTEM
*/
private String backupType;
/**
*
* Time at which the backup was created. This is the request time of the * backup. *
*/ private java.util.Date backupCreationDateTime; /** *
* Time at which the automatic on-demand backup created by DynamoDB will
* expire. This SYSTEM
on-demand backup expires automatically
* 35 days after its creation.
*
* ARN associated with the backup. *
*
* Constraints:
* Length: 37 - 1024
*
* @return
* ARN associated with the backup. *
*/ public String getBackupArn() { return backupArn; } /** ** ARN associated with the backup. *
*
* Constraints:
* Length: 37 - 1024
*
* @param backupArn
* ARN associated with the backup. *
*/ public void setBackupArn(String backupArn) { this.backupArn = backupArn; } /** ** ARN associated with the backup. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 37 - 1024
*
* @param backupArn
* ARN associated with the backup. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BackupDetails withBackupArn(String backupArn) { this.backupArn = backupArn; return this; } /** ** Name of the requested backup. *
*
* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
*
* @return
* Name of the requested backup. *
*/ public String getBackupName() { return backupName; } /** ** Name of the requested backup. *
*
* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
*
* @param backupName
* Name of the requested backup. *
*/ public void setBackupName(String backupName) { this.backupName = backupName; } /** ** Name of the requested backup. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
*
* @param backupName
* Name of the requested backup. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BackupDetails withBackupName(String backupName) { this.backupName = backupName; return this; } /** ** Size of the backup in bytes. *
*
* Constraints:
* Range: 0 -
*
* @return
* Size of the backup in bytes. *
*/ public Long getBackupSizeBytes() { return backupSizeBytes; } /** ** Size of the backup in bytes. *
*
* Constraints:
* Range: 0 -
*
* @param backupSizeBytes
* Size of the backup in bytes. *
*/ public void setBackupSizeBytes(Long backupSizeBytes) { this.backupSizeBytes = backupSizeBytes; } /** ** Size of the backup in bytes. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 0 -
*
* @param backupSizeBytes
* Size of the backup in bytes. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BackupDetails withBackupSizeBytes(Long backupSizeBytes) { this.backupSizeBytes = backupSizeBytes; return this; } /** ** Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *
*
* Constraints:
* Allowed Values: CREATING, DELETED, AVAILABLE
*
* @return
* Backup can be in one of the following states: CREATING, ACTIVE, * DELETED. *
* @see BackupStatus */ public String getBackupStatus() { return backupStatus; } /** ** Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *
*
* Constraints:
* Allowed Values: CREATING, DELETED, AVAILABLE
*
* @param backupStatus
* Backup can be in one of the following states: CREATING, * ACTIVE, DELETED. *
* @see BackupStatus */ public void setBackupStatus(String backupStatus) { this.backupStatus = backupStatus; } /** ** Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: CREATING, DELETED, AVAILABLE
*
* @param backupStatus
* Backup can be in one of the following states: CREATING, * ACTIVE, DELETED. *
* @return A reference to this updated object so that method calls can be * chained together. * @see BackupStatus */ public BackupDetails withBackupStatus(String backupStatus) { this.backupStatus = backupStatus; return this; } /** ** Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *
*
* Constraints:
* Allowed Values: CREATING, DELETED, AVAILABLE
*
* @param backupStatus
* Backup can be in one of the following states: CREATING, * ACTIVE, DELETED. *
* @see BackupStatus */ public void setBackupStatus(BackupStatus backupStatus) { this.backupStatus = backupStatus.toString(); } /** ** Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: CREATING, DELETED, AVAILABLE
*
* @param backupStatus
* Backup can be in one of the following states: CREATING, * ACTIVE, DELETED. *
* @return A reference to this updated object so that method calls can be * chained together. * @see BackupStatus */ public BackupDetails withBackupStatus(BackupStatus backupStatus) { this.backupStatus = backupStatus.toString(); return this; } /** ** BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created by DynamoDB.
*
* Constraints:
* Allowed Values: USER, SYSTEM
*
* @return
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created by
* DynamoDB.
*
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created by DynamoDB.
*
* Constraints:
* Allowed Values: USER, SYSTEM
*
* @param backupType
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created
* by DynamoDB.
*
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created by DynamoDB.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: USER, SYSTEM
*
* @param backupType
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created
* by DynamoDB.
*
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created by DynamoDB.
*
* Constraints:
* Allowed Values: USER, SYSTEM
*
* @param backupType
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created
* by DynamoDB.
*
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created by DynamoDB.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: USER, SYSTEM
*
* @param backupType
* BackupType: *
*
* USER
- On-demand backup created by you.
*
* SYSTEM
- On-demand backup automatically created
* by DynamoDB.
*
* Time at which the backup was created. This is the request time of the * backup. *
* * @return* Time at which the backup was created. This is the request time of * the backup. *
*/ public java.util.Date getBackupCreationDateTime() { return backupCreationDateTime; } /** ** Time at which the backup was created. This is the request time of the * backup. *
* * @param backupCreationDateTime* Time at which the backup was created. This is the request time * of the backup. *
*/ public void setBackupCreationDateTime(java.util.Date backupCreationDateTime) { this.backupCreationDateTime = backupCreationDateTime; } /** ** Time at which the backup was created. This is the request time of the * backup. *
** Returns a reference to this object so that method calls can be chained * together. * * @param backupCreationDateTime
* Time at which the backup was created. This is the request time * of the backup. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BackupDetails withBackupCreationDateTime(java.util.Date backupCreationDateTime) { this.backupCreationDateTime = backupCreationDateTime; return this; } /** *
* Time at which the automatic on-demand backup created by DynamoDB will
* expire. This SYSTEM
on-demand backup expires automatically
* 35 days after its creation.
*
* Time at which the automatic on-demand backup created by DynamoDB
* will expire. This SYSTEM
on-demand backup expires
* automatically 35 days after its creation.
*
* Time at which the automatic on-demand backup created by DynamoDB will
* expire. This SYSTEM
on-demand backup expires automatically
* 35 days after its creation.
*
* Time at which the automatic on-demand backup created by
* DynamoDB will expire. This SYSTEM
on-demand
* backup expires automatically 35 days after its creation.
*
* Time at which the automatic on-demand backup created by DynamoDB will
* expire. This SYSTEM
on-demand backup expires automatically
* 35 days after its creation.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param backupExpiryDateTime
* Time at which the automatic on-demand backup created by
* DynamoDB will expire. This SYSTEM
on-demand
* backup expires automatically 35 days after its creation.
*