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

com.amazonaws.services.dynamodbv2.model.PointInTimeRecoveryDescription 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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2016-2021 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;

/**
 * 

* The description of the point in time settings applied to the table. *

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

* The current state of point in time recovery: *

*
    *
  • *

    * ENABLING - Point in time recovery is being enabled. *

    *
  • *
  • *

    * ENABLED - Point in time recovery is enabled. *

    *
  • *
  • *

    * DISABLED - Point in time recovery is disabled. *

    *
  • *
*/ private String pointInTimeRecoveryStatus; /** *

* Specifies the earliest point in time you can restore your table to. You can restore your table to any point in * time during the last 35 days. *

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

* LatestRestorableDateTime is typically 5 minutes before the current time. *

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

* The current state of point in time recovery: *

*
    *
  • *

    * ENABLING - Point in time recovery is being enabled. *

    *
  • *
  • *

    * ENABLED - Point in time recovery is enabled. *

    *
  • *
  • *

    * DISABLED - Point in time recovery is disabled. *

    *
  • *
* * @param pointInTimeRecoveryStatus * The current state of point in time recovery:

*
    *
  • *

    * ENABLING - Point in time recovery is being enabled. *

    *
  • *
  • *

    * ENABLED - Point in time recovery is enabled. *

    *
  • *
  • *

    * DISABLED - Point in time recovery is disabled. *

    *
  • * @see PointInTimeRecoveryStatus */ public void setPointInTimeRecoveryStatus(String pointInTimeRecoveryStatus) { this.pointInTimeRecoveryStatus = pointInTimeRecoveryStatus; } /** *

    * The current state of point in time recovery: *

    *
      *
    • *

      * ENABLING - Point in time recovery is being enabled. *

      *
    • *
    • *

      * ENABLED - Point in time recovery is enabled. *

      *
    • *
    • *

      * DISABLED - Point in time recovery is disabled. *

      *
    • *
    * * @return The current state of point in time recovery:

    *
      *
    • *

      * ENABLING - Point in time recovery is being enabled. *

      *
    • *
    • *

      * ENABLED - Point in time recovery is enabled. *

      *
    • *
    • *

      * DISABLED - Point in time recovery is disabled. *

      *
    • * @see PointInTimeRecoveryStatus */ public String getPointInTimeRecoveryStatus() { return this.pointInTimeRecoveryStatus; } /** *

      * The current state of point in time recovery: *

      *
        *
      • *

        * ENABLING - Point in time recovery is being enabled. *

        *
      • *
      • *

        * ENABLED - Point in time recovery is enabled. *

        *
      • *
      • *

        * DISABLED - Point in time recovery is disabled. *

        *
      • *
      * * @param pointInTimeRecoveryStatus * The current state of point in time recovery:

      *
        *
      • *

        * ENABLING - Point in time recovery is being enabled. *

        *
      • *
      • *

        * ENABLED - Point in time recovery is enabled. *

        *
      • *
      • *

        * DISABLED - Point in time recovery is disabled. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see PointInTimeRecoveryStatus */ public PointInTimeRecoveryDescription withPointInTimeRecoveryStatus(String pointInTimeRecoveryStatus) { setPointInTimeRecoveryStatus(pointInTimeRecoveryStatus); return this; } /** *

        * The current state of point in time recovery: *

        *
          *
        • *

          * ENABLING - Point in time recovery is being enabled. *

          *
        • *
        • *

          * ENABLED - Point in time recovery is enabled. *

          *
        • *
        • *

          * DISABLED - Point in time recovery is disabled. *

          *
        • *
        * * @param pointInTimeRecoveryStatus * The current state of point in time recovery:

        *
          *
        • *

          * ENABLING - Point in time recovery is being enabled. *

          *
        • *
        • *

          * ENABLED - Point in time recovery is enabled. *

          *
        • *
        • *

          * DISABLED - Point in time recovery is disabled. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see PointInTimeRecoveryStatus */ public PointInTimeRecoveryDescription withPointInTimeRecoveryStatus(PointInTimeRecoveryStatus pointInTimeRecoveryStatus) { this.pointInTimeRecoveryStatus = pointInTimeRecoveryStatus.toString(); return this; } /** *

          * Specifies the earliest point in time you can restore your table to. You can restore your table to any point in * time during the last 35 days. *

          * * @param earliestRestorableDateTime * Specifies the earliest point in time you can restore your table to. You can restore your table to any * point in time during the last 35 days. */ public void setEarliestRestorableDateTime(java.util.Date earliestRestorableDateTime) { this.earliestRestorableDateTime = earliestRestorableDateTime; } /** *

          * Specifies the earliest point in time you can restore your table to. You can restore your table to any point in * time during the last 35 days. *

          * * @return Specifies the earliest point in time you can restore your table to. You can restore your table to any * point in time during the last 35 days. */ public java.util.Date getEarliestRestorableDateTime() { return this.earliestRestorableDateTime; } /** *

          * Specifies the earliest point in time you can restore your table to. You can restore your table to any point in * time during the last 35 days. *

          * * @param earliestRestorableDateTime * Specifies the earliest point in time you can restore your table to. You can restore your table to any * point in time during the last 35 days. * @return Returns a reference to this object so that method calls can be chained together. */ public PointInTimeRecoveryDescription withEarliestRestorableDateTime(java.util.Date earliestRestorableDateTime) { setEarliestRestorableDateTime(earliestRestorableDateTime); return this; } /** *

          * LatestRestorableDateTime is typically 5 minutes before the current time. *

          * * @param latestRestorableDateTime * LatestRestorableDateTime is typically 5 minutes before the current time. */ public void setLatestRestorableDateTime(java.util.Date latestRestorableDateTime) { this.latestRestorableDateTime = latestRestorableDateTime; } /** *

          * LatestRestorableDateTime is typically 5 minutes before the current time. *

          * * @return LatestRestorableDateTime is typically 5 minutes before the current time. */ public java.util.Date getLatestRestorableDateTime() { return this.latestRestorableDateTime; } /** *

          * LatestRestorableDateTime is typically 5 minutes before the current time. *

          * * @param latestRestorableDateTime * LatestRestorableDateTime is typically 5 minutes before the current time. * @return Returns a reference to this object so that method calls can be chained together. */ public PointInTimeRecoveryDescription withLatestRestorableDateTime(java.util.Date latestRestorableDateTime) { setLatestRestorableDateTime(latestRestorableDateTime); 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 (getPointInTimeRecoveryStatus() != null) sb.append("PointInTimeRecoveryStatus: ").append(getPointInTimeRecoveryStatus()).append(","); if (getEarliestRestorableDateTime() != null) sb.append("EarliestRestorableDateTime: ").append(getEarliestRestorableDateTime()).append(","); if (getLatestRestorableDateTime() != null) sb.append("LatestRestorableDateTime: ").append(getLatestRestorableDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PointInTimeRecoveryDescription == false) return false; PointInTimeRecoveryDescription other = (PointInTimeRecoveryDescription) obj; if (other.getPointInTimeRecoveryStatus() == null ^ this.getPointInTimeRecoveryStatus() == null) return false; if (other.getPointInTimeRecoveryStatus() != null && other.getPointInTimeRecoveryStatus().equals(this.getPointInTimeRecoveryStatus()) == false) return false; if (other.getEarliestRestorableDateTime() == null ^ this.getEarliestRestorableDateTime() == null) return false; if (other.getEarliestRestorableDateTime() != null && other.getEarliestRestorableDateTime().equals(this.getEarliestRestorableDateTime()) == false) return false; if (other.getLatestRestorableDateTime() == null ^ this.getLatestRestorableDateTime() == null) return false; if (other.getLatestRestorableDateTime() != null && other.getLatestRestorableDateTime().equals(this.getLatestRestorableDateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPointInTimeRecoveryStatus() == null) ? 0 : getPointInTimeRecoveryStatus().hashCode()); hashCode = prime * hashCode + ((getEarliestRestorableDateTime() == null) ? 0 : getEarliestRestorableDateTime().hashCode()); hashCode = prime * hashCode + ((getLatestRestorableDateTime() == null) ? 0 : getLatestRestorableDateTime().hashCode()); return hashCode; } @Override public PointInTimeRecoveryDescription clone() { try { return (PointInTimeRecoveryDescription) 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.PointInTimeRecoveryDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy