/*
* 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.keyspaces.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetTableResult extends com.amazonaws.AmazonWebServiceResult
* The name of the keyspace that the specified table is stored in.
*
* The name of the specified table.
*
* The Amazon Resource Name (ARN) of the specified table.
*
* The creation timestamp of the specified table.
*
* The current status of the specified table.
*
* The schema definition of the specified table.
*
* The read/write throughput capacity mode for a table. The options are:
*
*
*
* The encryption settings of the specified table.
*
* The point-in-time recovery status of the specified table.
*
* The custom Time to Live settings of the specified table.
*
* The default Time to Live settings in seconds of the specified table.
*
* The the description of the specified table.
*
* The client-side timestamps setting of the table.
*
* The name of the keyspace that the specified table is stored in.
*
* The name of the keyspace that the specified table is stored in.
*
* The name of the keyspace that the specified table is stored in.
*
* The name of the specified table.
*
* The name of the specified table.
*
* The name of the specified table.
*
* The Amazon Resource Name (ARN) of the specified table.
*
* The Amazon Resource Name (ARN) of the specified table.
*
* The Amazon Resource Name (ARN) of the specified table.
*
* The creation timestamp of the specified table.
*
* The creation timestamp of the specified table.
*
* The creation timestamp of the specified table.
*
* The current status of the specified table.
*
* The current status of the specified table.
*
* The current status of the specified table.
*
* The current status of the specified table.
*
* The schema definition of the specified table.
*
* The schema definition of the specified table.
*
* The schema definition of the specified table.
*
* The read/write throughput capacity mode for a table. The options are:
*
*
*
*
*/
private CapacitySpecificationSummary capacitySpecification;
/**
* throughputMode:PAY_PER_REQUEST
* throughputMode:PROVISIONED
*
*
*
* @param capacitySpecification
* The read/write throughput capacity mode for a table. The options are:throughputMode:PAY_PER_REQUEST
* throughputMode:PROVISIONED
*
* throughputMode:PAY_PER_REQUEST
*
* throughputMode:PROVISIONED
*
* The read/write throughput capacity mode for a table. The options are: *
*
* throughputMode:PAY_PER_REQUEST
*
* throughputMode:PROVISIONED
*
* throughputMode:PAY_PER_REQUEST
*
* throughputMode:PROVISIONED
*
* The read/write throughput capacity mode for a table. The options are: *
*
* throughputMode:PAY_PER_REQUEST
*
* throughputMode:PROVISIONED
*
* throughputMode:PAY_PER_REQUEST
*
* throughputMode:PROVISIONED
*
* The encryption settings of the specified table. *
* * @param encryptionSpecification * The encryption settings of the specified table. */ public void setEncryptionSpecification(EncryptionSpecification encryptionSpecification) { this.encryptionSpecification = encryptionSpecification; } /** ** The encryption settings of the specified table. *
* * @return The encryption settings of the specified table. */ public EncryptionSpecification getEncryptionSpecification() { return this.encryptionSpecification; } /** ** The encryption settings of the specified table. *
* * @param encryptionSpecification * The encryption settings of the specified table. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTableResult withEncryptionSpecification(EncryptionSpecification encryptionSpecification) { setEncryptionSpecification(encryptionSpecification); return this; } /** ** The point-in-time recovery status of the specified table. *
* * @param pointInTimeRecovery * The point-in-time recovery status of the specified table. */ public void setPointInTimeRecovery(PointInTimeRecoverySummary pointInTimeRecovery) { this.pointInTimeRecovery = pointInTimeRecovery; } /** ** The point-in-time recovery status of the specified table. *
* * @return The point-in-time recovery status of the specified table. */ public PointInTimeRecoverySummary getPointInTimeRecovery() { return this.pointInTimeRecovery; } /** ** The point-in-time recovery status of the specified table. *
* * @param pointInTimeRecovery * The point-in-time recovery status of the specified table. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTableResult withPointInTimeRecovery(PointInTimeRecoverySummary pointInTimeRecovery) { setPointInTimeRecovery(pointInTimeRecovery); return this; } /** ** The custom Time to Live settings of the specified table. *
* * @param ttl * The custom Time to Live settings of the specified table. */ public void setTtl(TimeToLive ttl) { this.ttl = ttl; } /** ** The custom Time to Live settings of the specified table. *
* * @return The custom Time to Live settings of the specified table. */ public TimeToLive getTtl() { return this.ttl; } /** ** The custom Time to Live settings of the specified table. *
* * @param ttl * The custom Time to Live settings of the specified table. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTableResult withTtl(TimeToLive ttl) { setTtl(ttl); return this; } /** ** The default Time to Live settings in seconds of the specified table. *
* * @param defaultTimeToLive * The default Time to Live settings in seconds of the specified table. */ public void setDefaultTimeToLive(Integer defaultTimeToLive) { this.defaultTimeToLive = defaultTimeToLive; } /** ** The default Time to Live settings in seconds of the specified table. *
* * @return The default Time to Live settings in seconds of the specified table. */ public Integer getDefaultTimeToLive() { return this.defaultTimeToLive; } /** ** The default Time to Live settings in seconds of the specified table. *
* * @param defaultTimeToLive * The default Time to Live settings in seconds of the specified table. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTableResult withDefaultTimeToLive(Integer defaultTimeToLive) { setDefaultTimeToLive(defaultTimeToLive); return this; } /** ** The the description of the specified table. *
* * @param comment * The the description of the specified table. */ public void setComment(Comment comment) { this.comment = comment; } /** ** The the description of the specified table. *
* * @return The the description of the specified table. */ public Comment getComment() { return this.comment; } /** ** The the description of the specified table. *
* * @param comment * The the description of the specified table. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTableResult withComment(Comment comment) { setComment(comment); return this; } /** ** The client-side timestamps setting of the table. *
* * @param clientSideTimestamps * The client-side timestamps setting of the table. */ public void setClientSideTimestamps(ClientSideTimestamps clientSideTimestamps) { this.clientSideTimestamps = clientSideTimestamps; } /** ** The client-side timestamps setting of the table. *
* * @return The client-side timestamps setting of the table. */ public ClientSideTimestamps getClientSideTimestamps() { return this.clientSideTimestamps; } /** ** The client-side timestamps setting of the table. *
* * @param clientSideTimestamps * The client-side timestamps setting of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTableResult withClientSideTimestamps(ClientSideTimestamps clientSideTimestamps) { setClientSideTimestamps(clientSideTimestamps); 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 (getKeyspaceName() != null) sb.append("KeyspaceName: ").append(getKeyspaceName()).append(","); if (getTableName() != null) sb.append("TableName: ").append(getTableName()).append(","); if (getResourceArn() != null) sb.append("ResourceArn: ").append(getResourceArn()).append(","); if (getCreationTimestamp() != null) sb.append("CreationTimestamp: ").append(getCreationTimestamp()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSchemaDefinition() != null) sb.append("SchemaDefinition: ").append(getSchemaDefinition()).append(","); if (getCapacitySpecification() != null) sb.append("CapacitySpecification: ").append(getCapacitySpecification()).append(","); if (getEncryptionSpecification() != null) sb.append("EncryptionSpecification: ").append(getEncryptionSpecification()).append(","); if (getPointInTimeRecovery() != null) sb.append("PointInTimeRecovery: ").append(getPointInTimeRecovery()).append(","); if (getTtl() != null) sb.append("Ttl: ").append(getTtl()).append(","); if (getDefaultTimeToLive() != null) sb.append("DefaultTimeToLive: ").append(getDefaultTimeToLive()).append(","); if (getComment() != null) sb.append("Comment: ").append(getComment()).append(","); if (getClientSideTimestamps() != null) sb.append("ClientSideTimestamps: ").append(getClientSideTimestamps()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTableResult == false) return false; GetTableResult other = (GetTableResult) obj; if (other.getKeyspaceName() == null ^ this.getKeyspaceName() == null) return false; if (other.getKeyspaceName() != null && other.getKeyspaceName().equals(this.getKeyspaceName()) == false) return false; if (other.getTableName() == null ^ this.getTableName() == null) return false; if (other.getTableName() != null && other.getTableName().equals(this.getTableName()) == false) return false; if (other.getResourceArn() == null ^ this.getResourceArn() == null) return false; if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) return false; if (other.getCreationTimestamp() == null ^ this.getCreationTimestamp() == null) return false; if (other.getCreationTimestamp() != null && other.getCreationTimestamp().equals(this.getCreationTimestamp()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSchemaDefinition() == null ^ this.getSchemaDefinition() == null) return false; if (other.getSchemaDefinition() != null && other.getSchemaDefinition().equals(this.getSchemaDefinition()) == false) return false; if (other.getCapacitySpecification() == null ^ this.getCapacitySpecification() == null) return false; if (other.getCapacitySpecification() != null && other.getCapacitySpecification().equals(this.getCapacitySpecification()) == false) return false; if (other.getEncryptionSpecification() == null ^ this.getEncryptionSpecification() == null) return false; if (other.getEncryptionSpecification() != null && other.getEncryptionSpecification().equals(this.getEncryptionSpecification()) == false) return false; if (other.getPointInTimeRecovery() == null ^ this.getPointInTimeRecovery() == null) return false; if (other.getPointInTimeRecovery() != null && other.getPointInTimeRecovery().equals(this.getPointInTimeRecovery()) == false) return false; if (other.getTtl() == null ^ this.getTtl() == null) return false; if (other.getTtl() != null && other.getTtl().equals(this.getTtl()) == false) return false; if (other.getDefaultTimeToLive() == null ^ this.getDefaultTimeToLive() == null) return false; if (other.getDefaultTimeToLive() != null && other.getDefaultTimeToLive().equals(this.getDefaultTimeToLive()) == false) return false; if (other.getComment() == null ^ this.getComment() == null) return false; if (other.getComment() != null && other.getComment().equals(this.getComment()) == false) return false; if (other.getClientSideTimestamps() == null ^ this.getClientSideTimestamps() == null) return false; if (other.getClientSideTimestamps() != null && other.getClientSideTimestamps().equals(this.getClientSideTimestamps()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getKeyspaceName() == null) ? 0 : getKeyspaceName().hashCode()); hashCode = prime * hashCode + ((getTableName() == null) ? 0 : getTableName().hashCode()); hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getCreationTimestamp() == null) ? 0 : getCreationTimestamp().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSchemaDefinition() == null) ? 0 : getSchemaDefinition().hashCode()); hashCode = prime * hashCode + ((getCapacitySpecification() == null) ? 0 : getCapacitySpecification().hashCode()); hashCode = prime * hashCode + ((getEncryptionSpecification() == null) ? 0 : getEncryptionSpecification().hashCode()); hashCode = prime * hashCode + ((getPointInTimeRecovery() == null) ? 0 : getPointInTimeRecovery().hashCode()); hashCode = prime * hashCode + ((getTtl() == null) ? 0 : getTtl().hashCode()); hashCode = prime * hashCode + ((getDefaultTimeToLive() == null) ? 0 : getDefaultTimeToLive().hashCode()); hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); hashCode = prime * hashCode + ((getClientSideTimestamps() == null) ? 0 : getClientSideTimestamps().hashCode()); return hashCode; } @Override public GetTableResult clone() { try { return (GetTableResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }