/* * 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 of a table archival operation. *

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

* The date and time when table archival was initiated by DynamoDB, in UNIX epoch time format. *

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

* The reason DynamoDB archived the table. Currently, the only possible value is: *

* */ private String archivalReason; /** *

* The Amazon Resource Name (ARN) of the backup the table was archived to, when applicable in the archival reason. * If you wish to restore this backup to the same table name, you will need to delete the original table. *

*/ private String archivalBackupArn; /** *

* The date and time when table archival was initiated by DynamoDB, in UNIX epoch time format. *

* * @param archivalDateTime * The date and time when table archival was initiated by DynamoDB, in UNIX epoch time format. */ public void setArchivalDateTime(java.util.Date archivalDateTime) { this.archivalDateTime = archivalDateTime; } /** *

* The date and time when table archival was initiated by DynamoDB, in UNIX epoch time format. *

* * @return The date and time when table archival was initiated by DynamoDB, in UNIX epoch time format. */ public java.util.Date getArchivalDateTime() { return this.archivalDateTime; } /** *

* The date and time when table archival was initiated by DynamoDB, in UNIX epoch time format. *

* * @param archivalDateTime * The date and time when table archival was initiated by DynamoDB, in UNIX epoch time format. * @return Returns a reference to this object so that method calls can be chained together. */ public ArchivalSummary withArchivalDateTime(java.util.Date archivalDateTime) { setArchivalDateTime(archivalDateTime); return this; } /** *

* The reason DynamoDB archived the table. Currently, the only possible value is: *

* * * @param archivalReason * The reason DynamoDB archived the table. Currently, the only possible value is:

*