All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.dynamodbv2.model.ArchivalSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DynamoDB module holds the client classes that are used for communicating with Amazon DynamoDB Service

The newest version!
/*
 * Copyright 2019-2024 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: *

*
    *
  • *

    * INACCESSIBLE_ENCRYPTION_CREDENTIALS - The table was archived due to the table's KMS key being * inaccessible for more than seven days. An On-Demand backup was created at the archival time. *

    *
  • *
*/ 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: *

*
    *
  • *

    * INACCESSIBLE_ENCRYPTION_CREDENTIALS - The table was archived due to the table's KMS key being * inaccessible for more than seven days. An On-Demand backup was created at the archival time. *

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

*
    *
  • *

    * INACCESSIBLE_ENCRYPTION_CREDENTIALS - The table was archived due to the table's KMS key being * inaccessible for more than seven days. An On-Demand backup was created at the archival time. *

    *
  • */ public void setArchivalReason(String archivalReason) { this.archivalReason = archivalReason; } /** *

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

    *
      *
    • *

      * INACCESSIBLE_ENCRYPTION_CREDENTIALS - The table was archived due to the table's KMS key being * inaccessible for more than seven days. An On-Demand backup was created at the archival time. *

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

    *
      *
    • *

      * INACCESSIBLE_ENCRYPTION_CREDENTIALS - The table was archived due to the table's KMS key * being inaccessible for more than seven days. An On-Demand backup was created at the archival time. *

      *
    • */ public String getArchivalReason() { return this.archivalReason; } /** *

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

      *
        *
      • *

        * INACCESSIBLE_ENCRYPTION_CREDENTIALS - The table was archived due to the table's KMS key being * inaccessible for more than seven days. An On-Demand backup was created at the archival time. *

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

      *
        *
      • *

        * INACCESSIBLE_ENCRYPTION_CREDENTIALS - The table was archived due to the table's KMS key being * inaccessible for more than seven days. An On-Demand backup was created at the archival time. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public ArchivalSummary withArchivalReason(String archivalReason) { setArchivalReason(archivalReason); return this; } /** *

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

        * * @param archivalBackupArn * 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. */ public void setArchivalBackupArn(String archivalBackupArn) { this.archivalBackupArn = archivalBackupArn; } /** *

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

        * * @return 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. */ public String getArchivalBackupArn() { return this.archivalBackupArn; } /** *

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

        * * @param archivalBackupArn * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ArchivalSummary withArchivalBackupArn(String archivalBackupArn) { setArchivalBackupArn(archivalBackupArn); return this; } /** * 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 (getArchivalDateTime() != null) sb.append("ArchivalDateTime: ").append(getArchivalDateTime()).append(","); if (getArchivalReason() != null) sb.append("ArchivalReason: ").append(getArchivalReason()).append(","); if (getArchivalBackupArn() != null) sb.append("ArchivalBackupArn: ").append(getArchivalBackupArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ArchivalSummary == false) return false; ArchivalSummary other = (ArchivalSummary) obj; if (other.getArchivalDateTime() == null ^ this.getArchivalDateTime() == null) return false; if (other.getArchivalDateTime() != null && other.getArchivalDateTime().equals(this.getArchivalDateTime()) == false) return false; if (other.getArchivalReason() == null ^ this.getArchivalReason() == null) return false; if (other.getArchivalReason() != null && other.getArchivalReason().equals(this.getArchivalReason()) == false) return false; if (other.getArchivalBackupArn() == null ^ this.getArchivalBackupArn() == null) return false; if (other.getArchivalBackupArn() != null && other.getArchivalBackupArn().equals(this.getArchivalBackupArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArchivalDateTime() == null) ? 0 : getArchivalDateTime().hashCode()); hashCode = prime * hashCode + ((getArchivalReason() == null) ? 0 : getArchivalReason().hashCode()); hashCode = prime * hashCode + ((getArchivalBackupArn() == null) ? 0 : getArchivalBackupArn().hashCode()); return hashCode; } @Override public ArchivalSummary clone() { try { return (ArchivalSummary) 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.dynamodbv2.model.transform.ArchivalSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy