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

com.amazonaws.services.dynamodbv2.model.SourceTableDetails 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.765
Show newest version
/*
 * Copyright 2013-2018 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 the details of the table when the backup was created. *

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

* The name of the table for which the backup was created. *

*/ private String tableName; /** *

* Unique identifier for the table for which the backup was created. *

*/ private String tableId; /** *

* ARN of the table for which backup was created. *

*/ private String tableArn; /** *

* Size of the table in bytes. Please note this is an approximate value. *

*/ private Long tableSizeBytes; /** *

* Schema of the table. *

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

* Time when the source table was created. *

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

* Read IOPs and Write IOPS on the table when the backup was created. *

*/ private ProvisionedThroughput provisionedThroughput; /** *

* Number of items in the table. Please note this is an approximate value. *

*/ private Long itemCount; /** *

* The name of the table for which the backup was created. *

* * @param tableName * The name of the table for which the backup was created. */ public void setTableName(String tableName) { this.tableName = tableName; } /** *

* The name of the table for which the backup was created. *

* * @return The name of the table for which the backup was created. */ public String getTableName() { return this.tableName; } /** *

* The name of the table for which the backup was created. *

* * @param tableName * The name of the table for which the backup was created. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableDetails withTableName(String tableName) { setTableName(tableName); return this; } /** *

* Unique identifier for the table for which the backup was created. *

* * @param tableId * Unique identifier for the table for which the backup was created. */ public void setTableId(String tableId) { this.tableId = tableId; } /** *

* Unique identifier for the table for which the backup was created. *

* * @return Unique identifier for the table for which the backup was created. */ public String getTableId() { return this.tableId; } /** *

* Unique identifier for the table for which the backup was created. *

* * @param tableId * Unique identifier for the table for which the backup was created. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableDetails withTableId(String tableId) { setTableId(tableId); return this; } /** *

* ARN of the table for which backup was created. *

* * @param tableArn * ARN of the table for which backup was created. */ public void setTableArn(String tableArn) { this.tableArn = tableArn; } /** *

* ARN of the table for which backup was created. *

* * @return ARN of the table for which backup was created. */ public String getTableArn() { return this.tableArn; } /** *

* ARN of the table for which backup was created. *

* * @param tableArn * ARN of the table for which backup was created. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableDetails withTableArn(String tableArn) { setTableArn(tableArn); return this; } /** *

* Size of the table in bytes. Please note this is an approximate value. *

* * @param tableSizeBytes * Size of the table in bytes. Please note this is an approximate value. */ public void setTableSizeBytes(Long tableSizeBytes) { this.tableSizeBytes = tableSizeBytes; } /** *

* Size of the table in bytes. Please note this is an approximate value. *

* * @return Size of the table in bytes. Please note this is an approximate value. */ public Long getTableSizeBytes() { return this.tableSizeBytes; } /** *

* Size of the table in bytes. Please note this is an approximate value. *

* * @param tableSizeBytes * Size of the table in bytes. Please note this is an approximate value. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableDetails withTableSizeBytes(Long tableSizeBytes) { setTableSizeBytes(tableSizeBytes); return this; } /** *

* Schema of the table. *

* * @return Schema of the table. */ public java.util.List getKeySchema() { return keySchema; } /** *

* Schema of the table. *

* * @param keySchema * Schema of the table. */ public void setKeySchema(java.util.Collection keySchema) { if (keySchema == null) { this.keySchema = null; return; } this.keySchema = new java.util.ArrayList(keySchema); } /** *

* Schema of the table. *

*

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

* * @param keySchema * Schema of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableDetails withKeySchema(KeySchemaElement... keySchema) { if (this.keySchema == null) { setKeySchema(new java.util.ArrayList(keySchema.length)); } for (KeySchemaElement ele : keySchema) { this.keySchema.add(ele); } return this; } /** *

* Schema of the table. *

* * @param keySchema * Schema of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableDetails withKeySchema(java.util.Collection keySchema) { setKeySchema(keySchema); return this; } /** *

* Time when the source table was created. *

* * @param tableCreationDateTime * Time when the source table was created. */ public void setTableCreationDateTime(java.util.Date tableCreationDateTime) { this.tableCreationDateTime = tableCreationDateTime; } /** *

* Time when the source table was created. *

* * @return Time when the source table was created. */ public java.util.Date getTableCreationDateTime() { return this.tableCreationDateTime; } /** *

* Time when the source table was created. *

* * @param tableCreationDateTime * Time when the source table was created. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableDetails withTableCreationDateTime(java.util.Date tableCreationDateTime) { setTableCreationDateTime(tableCreationDateTime); return this; } /** *

* Read IOPs and Write IOPS on the table when the backup was created. *

* * @param provisionedThroughput * Read IOPs and Write IOPS on the table when the backup was created. */ public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput) { this.provisionedThroughput = provisionedThroughput; } /** *

* Read IOPs and Write IOPS on the table when the backup was created. *

* * @return Read IOPs and Write IOPS on the table when the backup was created. */ public ProvisionedThroughput getProvisionedThroughput() { return this.provisionedThroughput; } /** *

* Read IOPs and Write IOPS on the table when the backup was created. *

* * @param provisionedThroughput * Read IOPs and Write IOPS on the table when the backup was created. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableDetails withProvisionedThroughput(ProvisionedThroughput provisionedThroughput) { setProvisionedThroughput(provisionedThroughput); return this; } /** *

* Number of items in the table. Please note this is an approximate value. *

* * @param itemCount * Number of items in the table. Please note this is an approximate value. */ public void setItemCount(Long itemCount) { this.itemCount = itemCount; } /** *

* Number of items in the table. Please note this is an approximate value. *

* * @return Number of items in the table. Please note this is an approximate value. */ public Long getItemCount() { return this.itemCount; } /** *

* Number of items in the table. Please note this is an approximate value. *

* * @param itemCount * Number of items in the table. Please note this is an approximate value. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceTableDetails withItemCount(Long itemCount) { setItemCount(itemCount); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTableName() != null) sb.append("TableName: ").append(getTableName()).append(","); if (getTableId() != null) sb.append("TableId: ").append(getTableId()).append(","); if (getTableArn() != null) sb.append("TableArn: ").append(getTableArn()).append(","); if (getTableSizeBytes() != null) sb.append("TableSizeBytes: ").append(getTableSizeBytes()).append(","); if (getKeySchema() != null) sb.append("KeySchema: ").append(getKeySchema()).append(","); if (getTableCreationDateTime() != null) sb.append("TableCreationDateTime: ").append(getTableCreationDateTime()).append(","); if (getProvisionedThroughput() != null) sb.append("ProvisionedThroughput: ").append(getProvisionedThroughput()).append(","); if (getItemCount() != null) sb.append("ItemCount: ").append(getItemCount()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SourceTableDetails == false) return false; SourceTableDetails other = (SourceTableDetails) obj; if (other.getTableName() == null ^ this.getTableName() == null) return false; if (other.getTableName() != null && other.getTableName().equals(this.getTableName()) == false) return false; if (other.getTableId() == null ^ this.getTableId() == null) return false; if (other.getTableId() != null && other.getTableId().equals(this.getTableId()) == false) return false; if (other.getTableArn() == null ^ this.getTableArn() == null) return false; if (other.getTableArn() != null && other.getTableArn().equals(this.getTableArn()) == false) return false; if (other.getTableSizeBytes() == null ^ this.getTableSizeBytes() == null) return false; if (other.getTableSizeBytes() != null && other.getTableSizeBytes().equals(this.getTableSizeBytes()) == false) return false; if (other.getKeySchema() == null ^ this.getKeySchema() == null) return false; if (other.getKeySchema() != null && other.getKeySchema().equals(this.getKeySchema()) == false) return false; if (other.getTableCreationDateTime() == null ^ this.getTableCreationDateTime() == null) return false; if (other.getTableCreationDateTime() != null && other.getTableCreationDateTime().equals(this.getTableCreationDateTime()) == false) return false; if (other.getProvisionedThroughput() == null ^ this.getProvisionedThroughput() == null) return false; if (other.getProvisionedThroughput() != null && other.getProvisionedThroughput().equals(this.getProvisionedThroughput()) == false) return false; if (other.getItemCount() == null ^ this.getItemCount() == null) return false; if (other.getItemCount() != null && other.getItemCount().equals(this.getItemCount()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTableName() == null) ? 0 : getTableName().hashCode()); hashCode = prime * hashCode + ((getTableId() == null) ? 0 : getTableId().hashCode()); hashCode = prime * hashCode + ((getTableArn() == null) ? 0 : getTableArn().hashCode()); hashCode = prime * hashCode + ((getTableSizeBytes() == null) ? 0 : getTableSizeBytes().hashCode()); hashCode = prime * hashCode + ((getKeySchema() == null) ? 0 : getKeySchema().hashCode()); hashCode = prime * hashCode + ((getTableCreationDateTime() == null) ? 0 : getTableCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getProvisionedThroughput() == null) ? 0 : getProvisionedThroughput().hashCode()); hashCode = prime * hashCode + ((getItemCount() == null) ? 0 : getItemCount().hashCode()); return hashCode; } @Override public SourceTableDetails clone() { try { return (SourceTableDetails) 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.SourceTableDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy