/* * 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.dynamodbv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Contains the details of the backup created for the table. *

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

* ARN associated with the backup. *

*/ private String backupArn; /** *

* Name of the requested backup. *

*/ private String backupName; /** *

* Size of the backup in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not * be reflected in this value. *

*/ private Long backupSizeBytes; /** *

* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *

*/ private String backupStatus; /** *

* BackupType: *

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

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

* ARN associated with the backup. *

* * @param backupArn * ARN associated with the backup. */ public void setBackupArn(String backupArn) { this.backupArn = backupArn; } /** *

* ARN associated with the backup. *

* * @return ARN associated with the backup. */ public String getBackupArn() { return this.backupArn; } /** *

* ARN associated with the backup. *

* * @param backupArn * ARN associated with the backup. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDetails withBackupArn(String backupArn) { setBackupArn(backupArn); return this; } /** *

* Name of the requested backup. *

* * @param backupName * Name of the requested backup. */ public void setBackupName(String backupName) { this.backupName = backupName; } /** *

* Name of the requested backup. *

* * @return Name of the requested backup. */ public String getBackupName() { return this.backupName; } /** *

* Name of the requested backup. *

* * @param backupName * Name of the requested backup. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDetails withBackupName(String backupName) { setBackupName(backupName); return this; } /** *

* Size of the backup in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not * be reflected in this value. *

* * @param backupSizeBytes * Size of the backup in bytes. DynamoDB updates this value approximately every six hours. Recent changes * might not be reflected in this value. */ public void setBackupSizeBytes(Long backupSizeBytes) { this.backupSizeBytes = backupSizeBytes; } /** *

* Size of the backup in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not * be reflected in this value. *

* * @return Size of the backup in bytes. DynamoDB updates this value approximately every six hours. Recent changes * might not be reflected in this value. */ public Long getBackupSizeBytes() { return this.backupSizeBytes; } /** *

* Size of the backup in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not * be reflected in this value. *

* * @param backupSizeBytes * Size of the backup in bytes. DynamoDB updates this value approximately every six hours. Recent changes * might not be reflected in this value. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDetails withBackupSizeBytes(Long backupSizeBytes) { setBackupSizeBytes(backupSizeBytes); return this; } /** *

* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *

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

* * @return Backup can be in one of the following states: CREATING, ACTIVE, DELETED. * @see BackupStatus */ public String getBackupStatus() { return this.backupStatus; } /** *

* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *

* * @param backupStatus * Backup can be in one of the following states: CREATING, ACTIVE, DELETED. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupStatus */ public BackupDetails withBackupStatus(String backupStatus) { setBackupStatus(backupStatus); return this; } /** *

* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *

* * @param backupStatus * Backup can be in one of the following states: CREATING, ACTIVE, DELETED. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupStatus */ public BackupDetails withBackupStatus(BackupStatus backupStatus) { this.backupStatus = backupStatus.toString(); return this; } /** *

* BackupType: *

* * * @param backupType * BackupType:

*