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

com.amazonaws.services.dynamodbv2.model.RestoreTableToPointInTimeRequest 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 2017-2022 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.AmazonWebServiceRequest;

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

    /**
     * 

* The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN). *

*/ private String sourceTableArn; /** *

* Name of the source table that is being restored. *

*/ private String sourceTableName; /** *

* The name of the new table to which it must be restored to. *

*/ private String targetTableName; /** *

* Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes * before the current time. *

*/ private Boolean useLatestRestorableTime; /** *

* Time in the past to restore the table to. *

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

* The billing mode of the restored table. *

*/ private String billingModeOverride; /** *

* List of global secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

*/ private java.util.List globalSecondaryIndexOverride; /** *

* List of local secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

*/ private java.util.List localSecondaryIndexOverride; /** *

* Provisioned throughput settings for the restored table. *

*/ private ProvisionedThroughput provisionedThroughputOverride; /** *

* The new server-side encryption settings for the restored table. *

*/ private SSESpecification sSESpecificationOverride; /** *

* The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN). *

* * @param sourceTableArn * The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN). */ public void setSourceTableArn(String sourceTableArn) { this.sourceTableArn = sourceTableArn; } /** *

* The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN). *

* * @return The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN). */ public String getSourceTableArn() { return this.sourceTableArn; } /** *

* The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN). *

* * @param sourceTableArn * The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withSourceTableArn(String sourceTableArn) { setSourceTableArn(sourceTableArn); return this; } /** *

* Name of the source table that is being restored. *

* * @param sourceTableName * Name of the source table that is being restored. */ public void setSourceTableName(String sourceTableName) { this.sourceTableName = sourceTableName; } /** *

* Name of the source table that is being restored. *

* * @return Name of the source table that is being restored. */ public String getSourceTableName() { return this.sourceTableName; } /** *

* Name of the source table that is being restored. *

* * @param sourceTableName * Name of the source table that is being restored. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withSourceTableName(String sourceTableName) { setSourceTableName(sourceTableName); return this; } /** *

* The name of the new table to which it must be restored to. *

* * @param targetTableName * The name of the new table to which it must be restored to. */ public void setTargetTableName(String targetTableName) { this.targetTableName = targetTableName; } /** *

* The name of the new table to which it must be restored to. *

* * @return The name of the new table to which it must be restored to. */ public String getTargetTableName() { return this.targetTableName; } /** *

* The name of the new table to which it must be restored to. *

* * @param targetTableName * The name of the new table to which it must be restored to. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withTargetTableName(String targetTableName) { setTargetTableName(targetTableName); return this; } /** *

* Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes * before the current time. *

* * @param useLatestRestorableTime * Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 * minutes before the current time. */ public void setUseLatestRestorableTime(Boolean useLatestRestorableTime) { this.useLatestRestorableTime = useLatestRestorableTime; } /** *

* Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes * before the current time. *

* * @return Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 * minutes before the current time. */ public Boolean getUseLatestRestorableTime() { return this.useLatestRestorableTime; } /** *

* Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes * before the current time. *

* * @param useLatestRestorableTime * Restore the table to the latest possible time. 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 RestoreTableToPointInTimeRequest withUseLatestRestorableTime(Boolean useLatestRestorableTime) { setUseLatestRestorableTime(useLatestRestorableTime); return this; } /** *

* Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes * before the current time. *

* * @return Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 * minutes before the current time. */ public Boolean isUseLatestRestorableTime() { return this.useLatestRestorableTime; } /** *

* Time in the past to restore the table to. *

* * @param restoreDateTime * Time in the past to restore the table to. */ public void setRestoreDateTime(java.util.Date restoreDateTime) { this.restoreDateTime = restoreDateTime; } /** *

* Time in the past to restore the table to. *

* * @return Time in the past to restore the table to. */ public java.util.Date getRestoreDateTime() { return this.restoreDateTime; } /** *

* Time in the past to restore the table to. *

* * @param restoreDateTime * Time in the past to restore the table to. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withRestoreDateTime(java.util.Date restoreDateTime) { setRestoreDateTime(restoreDateTime); return this; } /** *

* The billing mode of the restored table. *

* * @param billingModeOverride * The billing mode of the restored table. * @see BillingMode */ public void setBillingModeOverride(String billingModeOverride) { this.billingModeOverride = billingModeOverride; } /** *

* The billing mode of the restored table. *

* * @return The billing mode of the restored table. * @see BillingMode */ public String getBillingModeOverride() { return this.billingModeOverride; } /** *

* The billing mode of the restored table. *

* * @param billingModeOverride * The billing mode of the restored table. * @return Returns a reference to this object so that method calls can be chained together. * @see BillingMode */ public RestoreTableToPointInTimeRequest withBillingModeOverride(String billingModeOverride) { setBillingModeOverride(billingModeOverride); return this; } /** *

* The billing mode of the restored table. *

* * @param billingModeOverride * The billing mode of the restored table. * @return Returns a reference to this object so that method calls can be chained together. * @see BillingMode */ public RestoreTableToPointInTimeRequest withBillingModeOverride(BillingMode billingModeOverride) { this.billingModeOverride = billingModeOverride.toString(); return this; } /** *

* List of global secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

* * @return List of global secondary indexes for the restored table. The indexes provided should match existing * secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. */ public java.util.List getGlobalSecondaryIndexOverride() { return globalSecondaryIndexOverride; } /** *

* List of global secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

* * @param globalSecondaryIndexOverride * List of global secondary indexes for the restored table. The indexes provided should match existing * secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. */ public void setGlobalSecondaryIndexOverride(java.util.Collection globalSecondaryIndexOverride) { if (globalSecondaryIndexOverride == null) { this.globalSecondaryIndexOverride = null; return; } this.globalSecondaryIndexOverride = new java.util.ArrayList(globalSecondaryIndexOverride); } /** *

* List of global secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setGlobalSecondaryIndexOverride(java.util.Collection)} or * {@link #withGlobalSecondaryIndexOverride(java.util.Collection)} if you want to override the existing values. *

* * @param globalSecondaryIndexOverride * List of global secondary indexes for the restored table. The indexes provided should match existing * secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withGlobalSecondaryIndexOverride(GlobalSecondaryIndex... globalSecondaryIndexOverride) { if (this.globalSecondaryIndexOverride == null) { setGlobalSecondaryIndexOverride(new java.util.ArrayList(globalSecondaryIndexOverride.length)); } for (GlobalSecondaryIndex ele : globalSecondaryIndexOverride) { this.globalSecondaryIndexOverride.add(ele); } return this; } /** *

* List of global secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

* * @param globalSecondaryIndexOverride * List of global secondary indexes for the restored table. The indexes provided should match existing * secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withGlobalSecondaryIndexOverride(java.util.Collection globalSecondaryIndexOverride) { setGlobalSecondaryIndexOverride(globalSecondaryIndexOverride); return this; } /** *

* List of local secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

* * @return List of local secondary indexes for the restored table. The indexes provided should match existing * secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. */ public java.util.List getLocalSecondaryIndexOverride() { return localSecondaryIndexOverride; } /** *

* List of local secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

* * @param localSecondaryIndexOverride * List of local secondary indexes for the restored table. The indexes provided should match existing * secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. */ public void setLocalSecondaryIndexOverride(java.util.Collection localSecondaryIndexOverride) { if (localSecondaryIndexOverride == null) { this.localSecondaryIndexOverride = null; return; } this.localSecondaryIndexOverride = new java.util.ArrayList(localSecondaryIndexOverride); } /** *

* List of local secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLocalSecondaryIndexOverride(java.util.Collection)} or * {@link #withLocalSecondaryIndexOverride(java.util.Collection)} if you want to override the existing values. *

* * @param localSecondaryIndexOverride * List of local secondary indexes for the restored table. The indexes provided should match existing * secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withLocalSecondaryIndexOverride(LocalSecondaryIndex... localSecondaryIndexOverride) { if (this.localSecondaryIndexOverride == null) { setLocalSecondaryIndexOverride(new java.util.ArrayList(localSecondaryIndexOverride.length)); } for (LocalSecondaryIndex ele : localSecondaryIndexOverride) { this.localSecondaryIndexOverride.add(ele); } return this; } /** *

* List of local secondary indexes for the restored table. The indexes provided should match existing secondary * indexes. You can choose to exclude some or all of the indexes at the time of restore. *

* * @param localSecondaryIndexOverride * List of local secondary indexes for the restored table. The indexes provided should match existing * secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withLocalSecondaryIndexOverride(java.util.Collection localSecondaryIndexOverride) { setLocalSecondaryIndexOverride(localSecondaryIndexOverride); return this; } /** *

* Provisioned throughput settings for the restored table. *

* * @param provisionedThroughputOverride * Provisioned throughput settings for the restored table. */ public void setProvisionedThroughputOverride(ProvisionedThroughput provisionedThroughputOverride) { this.provisionedThroughputOverride = provisionedThroughputOverride; } /** *

* Provisioned throughput settings for the restored table. *

* * @return Provisioned throughput settings for the restored table. */ public ProvisionedThroughput getProvisionedThroughputOverride() { return this.provisionedThroughputOverride; } /** *

* Provisioned throughput settings for the restored table. *

* * @param provisionedThroughputOverride * Provisioned throughput settings for the restored table. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withProvisionedThroughputOverride(ProvisionedThroughput provisionedThroughputOverride) { setProvisionedThroughputOverride(provisionedThroughputOverride); return this; } /** *

* The new server-side encryption settings for the restored table. *

* * @param sSESpecificationOverride * The new server-side encryption settings for the restored table. */ public void setSSESpecificationOverride(SSESpecification sSESpecificationOverride) { this.sSESpecificationOverride = sSESpecificationOverride; } /** *

* The new server-side encryption settings for the restored table. *

* * @return The new server-side encryption settings for the restored table. */ public SSESpecification getSSESpecificationOverride() { return this.sSESpecificationOverride; } /** *

* The new server-side encryption settings for the restored table. *

* * @param sSESpecificationOverride * The new server-side encryption settings for the restored table. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTableToPointInTimeRequest withSSESpecificationOverride(SSESpecification sSESpecificationOverride) { setSSESpecificationOverride(sSESpecificationOverride); 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 (getSourceTableArn() != null) sb.append("SourceTableArn: ").append(getSourceTableArn()).append(","); if (getSourceTableName() != null) sb.append("SourceTableName: ").append(getSourceTableName()).append(","); if (getTargetTableName() != null) sb.append("TargetTableName: ").append(getTargetTableName()).append(","); if (getUseLatestRestorableTime() != null) sb.append("UseLatestRestorableTime: ").append(getUseLatestRestorableTime()).append(","); if (getRestoreDateTime() != null) sb.append("RestoreDateTime: ").append(getRestoreDateTime()).append(","); if (getBillingModeOverride() != null) sb.append("BillingModeOverride: ").append(getBillingModeOverride()).append(","); if (getGlobalSecondaryIndexOverride() != null) sb.append("GlobalSecondaryIndexOverride: ").append(getGlobalSecondaryIndexOverride()).append(","); if (getLocalSecondaryIndexOverride() != null) sb.append("LocalSecondaryIndexOverride: ").append(getLocalSecondaryIndexOverride()).append(","); if (getProvisionedThroughputOverride() != null) sb.append("ProvisionedThroughputOverride: ").append(getProvisionedThroughputOverride()).append(","); if (getSSESpecificationOverride() != null) sb.append("SSESpecificationOverride: ").append(getSSESpecificationOverride()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RestoreTableToPointInTimeRequest == false) return false; RestoreTableToPointInTimeRequest other = (RestoreTableToPointInTimeRequest) obj; if (other.getSourceTableArn() == null ^ this.getSourceTableArn() == null) return false; if (other.getSourceTableArn() != null && other.getSourceTableArn().equals(this.getSourceTableArn()) == false) return false; if (other.getSourceTableName() == null ^ this.getSourceTableName() == null) return false; if (other.getSourceTableName() != null && other.getSourceTableName().equals(this.getSourceTableName()) == false) return false; if (other.getTargetTableName() == null ^ this.getTargetTableName() == null) return false; if (other.getTargetTableName() != null && other.getTargetTableName().equals(this.getTargetTableName()) == false) return false; if (other.getUseLatestRestorableTime() == null ^ this.getUseLatestRestorableTime() == null) return false; if (other.getUseLatestRestorableTime() != null && other.getUseLatestRestorableTime().equals(this.getUseLatestRestorableTime()) == false) return false; if (other.getRestoreDateTime() == null ^ this.getRestoreDateTime() == null) return false; if (other.getRestoreDateTime() != null && other.getRestoreDateTime().equals(this.getRestoreDateTime()) == false) return false; if (other.getBillingModeOverride() == null ^ this.getBillingModeOverride() == null) return false; if (other.getBillingModeOverride() != null && other.getBillingModeOverride().equals(this.getBillingModeOverride()) == false) return false; if (other.getGlobalSecondaryIndexOverride() == null ^ this.getGlobalSecondaryIndexOverride() == null) return false; if (other.getGlobalSecondaryIndexOverride() != null && other.getGlobalSecondaryIndexOverride().equals(this.getGlobalSecondaryIndexOverride()) == false) return false; if (other.getLocalSecondaryIndexOverride() == null ^ this.getLocalSecondaryIndexOverride() == null) return false; if (other.getLocalSecondaryIndexOverride() != null && other.getLocalSecondaryIndexOverride().equals(this.getLocalSecondaryIndexOverride()) == false) return false; if (other.getProvisionedThroughputOverride() == null ^ this.getProvisionedThroughputOverride() == null) return false; if (other.getProvisionedThroughputOverride() != null && other.getProvisionedThroughputOverride().equals(this.getProvisionedThroughputOverride()) == false) return false; if (other.getSSESpecificationOverride() == null ^ this.getSSESpecificationOverride() == null) return false; if (other.getSSESpecificationOverride() != null && other.getSSESpecificationOverride().equals(this.getSSESpecificationOverride()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceTableArn() == null) ? 0 : getSourceTableArn().hashCode()); hashCode = prime * hashCode + ((getSourceTableName() == null) ? 0 : getSourceTableName().hashCode()); hashCode = prime * hashCode + ((getTargetTableName() == null) ? 0 : getTargetTableName().hashCode()); hashCode = prime * hashCode + ((getUseLatestRestorableTime() == null) ? 0 : getUseLatestRestorableTime().hashCode()); hashCode = prime * hashCode + ((getRestoreDateTime() == null) ? 0 : getRestoreDateTime().hashCode()); hashCode = prime * hashCode + ((getBillingModeOverride() == null) ? 0 : getBillingModeOverride().hashCode()); hashCode = prime * hashCode + ((getGlobalSecondaryIndexOverride() == null) ? 0 : getGlobalSecondaryIndexOverride().hashCode()); hashCode = prime * hashCode + ((getLocalSecondaryIndexOverride() == null) ? 0 : getLocalSecondaryIndexOverride().hashCode()); hashCode = prime * hashCode + ((getProvisionedThroughputOverride() == null) ? 0 : getProvisionedThroughputOverride().hashCode()); hashCode = prime * hashCode + ((getSSESpecificationOverride() == null) ? 0 : getSSESpecificationOverride().hashCode()); return hashCode; } @Override public RestoreTableToPointInTimeRequest clone() { return (RestoreTableToPointInTimeRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy