/* * 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 details for the backup. *

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

* Name of the table. *

*/ private String tableName; /** *

* Unique identifier for the table. *

*/ private String tableId; /** *

* ARN associated with the table. *

*/ private String tableArn; /** *

* ARN associated with the backup. *

*/ private String backupArn; /** *

* Name of the specified backup. *

*/ private String backupName; /** *

* Time at which the backup was created. *

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

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

*/ private String backupStatus; /** *

* BackupType: *

* */ private String backupType; /** *

* Size of the backup in bytes. *

*/ private Long backupSizeBytes; /** *

* Name of the table. *

* * @param tableName * Name of the table. */ public void setTableName(String tableName) { this.tableName = tableName; } /** *

* Name of the table. *

* * @return Name of the table. */ public String getTableName() { return this.tableName; } /** *

* Name of the table. *

* * @param tableName * Name of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupSummary withTableName(String tableName) { setTableName(tableName); return this; } /** *

* Unique identifier for the table. *

* * @param tableId * Unique identifier for the table. */ public void setTableId(String tableId) { this.tableId = tableId; } /** *

* Unique identifier for the table. *

* * @return Unique identifier for the table. */ public String getTableId() { return this.tableId; } /** *

* Unique identifier for the table. *

* * @param tableId * Unique identifier for the table. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupSummary withTableId(String tableId) { setTableId(tableId); return this; } /** *

* ARN associated with the table. *

* * @param tableArn * ARN associated with the table. */ public void setTableArn(String tableArn) { this.tableArn = tableArn; } /** *

* ARN associated with the table. *

* * @return ARN associated with the table. */ public String getTableArn() { return this.tableArn; } /** *

* ARN associated with the table. *

* * @param tableArn * ARN associated with the table. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupSummary withTableArn(String tableArn) { setTableArn(tableArn); return this; } /** *

* 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 BackupSummary withBackupArn(String backupArn) { setBackupArn(backupArn); return this; } /** *

* Name of the specified backup. *

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

* Name of the specified backup. *

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

* Name of the specified backup. *

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

* Time at which the backup was created. *

* * @param backupCreationDateTime * Time at which the backup was created. */ public void setBackupCreationDateTime(java.util.Date backupCreationDateTime) { this.backupCreationDateTime = backupCreationDateTime; } /** *

* Time at which the backup was created. *

* * @return Time at which the backup was created. */ public java.util.Date getBackupCreationDateTime() { return this.backupCreationDateTime; } /** *

* Time at which the backup was created. *

* * @param backupCreationDateTime * Time at which the backup was created. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupSummary withBackupCreationDateTime(java.util.Date backupCreationDateTime) { setBackupCreationDateTime(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. *

* * @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. */ public void setBackupExpiryDateTime(java.util.Date backupExpiryDateTime) { this.backupExpiryDateTime = 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. *

* * @return 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. */ public java.util.Date getBackupExpiryDateTime() { return this.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. *

* * @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. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupSummary withBackupExpiryDateTime(java.util.Date backupExpiryDateTime) { setBackupExpiryDateTime(backupExpiryDateTime); 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 BackupSummary 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 BackupSummary withBackupStatus(BackupStatus backupStatus) { this.backupStatus = backupStatus.toString(); return this; } /** *

* BackupType: *

* * * @param backupType * BackupType:

*