/* * 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.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents a collection of related data organized in columns and rows. *

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

* The table name. For Hive compatibility, this must be entirely lowercase. *

*/ private String name; /** *

* The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase. *

*/ private String databaseName; /** *

* A description of the table. *

*/ private String description; /** *

* The owner of the table. *

*/ private String owner; /** *

* The time when the table definition was created in the Data Catalog. *

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

* The last time that the table was updated. *

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

* The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable. *

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

* The last time that column statistics were computed for this table. *

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

* The retention time for this table. *

*/ private Integer retention; /** *

* A storage descriptor containing information about the physical storage of this table. *

*/ private StorageDescriptor storageDescriptor; /** *

* A list of columns by which the table is partitioned. Only primitive types are supported as partition keys. *

*

* When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you must at * least set the value of partitionKeys to an empty list. For example: *

*

* "PartitionKeys": [] *

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

* Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a * VIRTUAL_VIEW, certain Athena configuration encoded in base64. *

*/ private String viewOriginalText; /** *

* Included for Apache Hive compatibility. Not used in the normal course of Glue operations. *

*/ private String viewExpandedText; /** *

* The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, such * as Athena, may create tables with additional table types. *

*

* Glue related table types: *

*
*
EXTERNAL_TABLE
*
*

* Hive compatible attribute - indicates a non-Hive managed table. *

*
*
GOVERNED
*
*

* Used by Lake Formation. The Glue Data Catalog understands GOVERNED. *

*
*
*/ private String tableType; /** *

* These key-value pairs define properties associated with the table. *

*/ private java.util.Map parameters; /** *

* The person or entity who created the table. *

*/ private String createdBy; /** *

* Indicates whether the table has been registered with Lake Formation. *

*/ private Boolean isRegisteredWithLakeFormation; /** *

* A TableIdentifier structure that describes a target table for resource linking. *

*/ private TableIdentifier targetTable; /** *

* The ID of the Data Catalog in which the table resides. *

*/ private String catalogId; /** *

* The ID of the table version. *

*/ private String versionId; /** *

* A FederatedTable structure that references an entity outside the Glue Data Catalog. *

*/ private FederatedTable federatedTable; /** *

* The table name. For Hive compatibility, this must be entirely lowercase. *

* * @param name * The table name. For Hive compatibility, this must be entirely lowercase. */ public void setName(String name) { this.name = name; } /** *

* The table name. For Hive compatibility, this must be entirely lowercase. *

* * @return The table name. For Hive compatibility, this must be entirely lowercase. */ public String getName() { return this.name; } /** *

* The table name. For Hive compatibility, this must be entirely lowercase. *

* * @param name * The table name. For Hive compatibility, this must be entirely lowercase. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withName(String name) { setName(name); return this; } /** *

* The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase. *

* * @param databaseName * The name of the database where the table metadata resides. For Hive compatibility, this must be all * lowercase. */ public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } /** *

* The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase. *

* * @return The name of the database where the table metadata resides. For Hive compatibility, this must be all * lowercase. */ public String getDatabaseName() { return this.databaseName; } /** *

* The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase. *

* * @param databaseName * The name of the database where the table metadata resides. For Hive compatibility, this must be all * lowercase. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withDatabaseName(String databaseName) { setDatabaseName(databaseName); return this; } /** *

* A description of the table. *

* * @param description * A description of the table. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the table. *

* * @return A description of the table. */ public String getDescription() { return this.description; } /** *

* A description of the table. *

* * @param description * A description of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withDescription(String description) { setDescription(description); return this; } /** *

* The owner of the table. *

* * @param owner * The owner of the table. */ public void setOwner(String owner) { this.owner = owner; } /** *

* The owner of the table. *

* * @return The owner of the table. */ public String getOwner() { return this.owner; } /** *

* The owner of the table. *

* * @param owner * The owner of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withOwner(String owner) { setOwner(owner); return this; } /** *

* The time when the table definition was created in the Data Catalog. *

* * @param createTime * The time when the table definition was created in the Data Catalog. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** *

* The time when the table definition was created in the Data Catalog. *

* * @return The time when the table definition was created in the Data Catalog. */ public java.util.Date getCreateTime() { return this.createTime; } /** *

* The time when the table definition was created in the Data Catalog. *

* * @param createTime * The time when the table definition was created in the Data Catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** *

* The last time that the table was updated. *

* * @param updateTime * The last time that the table was updated. */ public void setUpdateTime(java.util.Date updateTime) { this.updateTime = updateTime; } /** *

* The last time that the table was updated. *

* * @return The last time that the table was updated. */ public java.util.Date getUpdateTime() { return this.updateTime; } /** *

* The last time that the table was updated. *

* * @param updateTime * The last time that the table was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withUpdateTime(java.util.Date updateTime) { setUpdateTime(updateTime); return this; } /** *

* The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable. *

* * @param lastAccessTime * The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable. */ public void setLastAccessTime(java.util.Date lastAccessTime) { this.lastAccessTime = lastAccessTime; } /** *

* The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable. *

* * @return The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable. */ public java.util.Date getLastAccessTime() { return this.lastAccessTime; } /** *

* The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable. *

* * @param lastAccessTime * The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withLastAccessTime(java.util.Date lastAccessTime) { setLastAccessTime(lastAccessTime); return this; } /** *

* The last time that column statistics were computed for this table. *

* * @param lastAnalyzedTime * The last time that column statistics were computed for this table. */ public void setLastAnalyzedTime(java.util.Date lastAnalyzedTime) { this.lastAnalyzedTime = lastAnalyzedTime; } /** *

* The last time that column statistics were computed for this table. *

* * @return The last time that column statistics were computed for this table. */ public java.util.Date getLastAnalyzedTime() { return this.lastAnalyzedTime; } /** *

* The last time that column statistics were computed for this table. *

* * @param lastAnalyzedTime * The last time that column statistics were computed for this table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withLastAnalyzedTime(java.util.Date lastAnalyzedTime) { setLastAnalyzedTime(lastAnalyzedTime); return this; } /** *

* The retention time for this table. *

* * @param retention * The retention time for this table. */ public void setRetention(Integer retention) { this.retention = retention; } /** *

* The retention time for this table. *

* * @return The retention time for this table. */ public Integer getRetention() { return this.retention; } /** *

* The retention time for this table. *

* * @param retention * The retention time for this table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withRetention(Integer retention) { setRetention(retention); return this; } /** *

* A storage descriptor containing information about the physical storage of this table. *

* * @param storageDescriptor * A storage descriptor containing information about the physical storage of this table. */ public void setStorageDescriptor(StorageDescriptor storageDescriptor) { this.storageDescriptor = storageDescriptor; } /** *

* A storage descriptor containing information about the physical storage of this table. *

* * @return A storage descriptor containing information about the physical storage of this table. */ public StorageDescriptor getStorageDescriptor() { return this.storageDescriptor; } /** *

* A storage descriptor containing information about the physical storage of this table. *

* * @param storageDescriptor * A storage descriptor containing information about the physical storage of this table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withStorageDescriptor(StorageDescriptor storageDescriptor) { setStorageDescriptor(storageDescriptor); return this; } /** *

* A list of columns by which the table is partitioned. Only primitive types are supported as partition keys. *

*

* When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you must at * least set the value of partitionKeys to an empty list. For example: *

*

* "PartitionKeys": [] *

* * @return A list of columns by which the table is partitioned. Only primitive types are supported as partition * keys.

*

* When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you * must at least set the value of partitionKeys to an empty list. For example: *

*

* "PartitionKeys": [] */ public java.util.List getPartitionKeys() { return partitionKeys; } /** *

* A list of columns by which the table is partitioned. Only primitive types are supported as partition keys. *

*

* When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you must at * least set the value of partitionKeys to an empty list. For example: *

*

* "PartitionKeys": [] *

* * @param partitionKeys * A list of columns by which the table is partitioned. Only primitive types are supported as partition * keys.

*

* When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you * must at least set the value of partitionKeys to an empty list. For example: *

*

* "PartitionKeys": [] */ public void setPartitionKeys(java.util.Collection partitionKeys) { if (partitionKeys == null) { this.partitionKeys = null; return; } this.partitionKeys = new java.util.ArrayList(partitionKeys); } /** *

* A list of columns by which the table is partitioned. Only primitive types are supported as partition keys. *

*

* When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you must at * least set the value of partitionKeys to an empty list. For example: *

*

* "PartitionKeys": [] *

*

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

* * @param partitionKeys * A list of columns by which the table is partitioned. Only primitive types are supported as partition * keys.

*

* When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you * must at least set the value of partitionKeys to an empty list. For example: *

*

* "PartitionKeys": [] * @return Returns a reference to this object so that method calls can be chained together. */ public Table withPartitionKeys(Column... partitionKeys) { if (this.partitionKeys == null) { setPartitionKeys(new java.util.ArrayList(partitionKeys.length)); } for (Column ele : partitionKeys) { this.partitionKeys.add(ele); } return this; } /** *

* A list of columns by which the table is partitioned. Only primitive types are supported as partition keys. *

*

* When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you must at * least set the value of partitionKeys to an empty list. For example: *

*

* "PartitionKeys": [] *

* * @param partitionKeys * A list of columns by which the table is partitioned. Only primitive types are supported as partition * keys.

*

* When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you * must at least set the value of partitionKeys to an empty list. For example: *

*

* "PartitionKeys": [] * @return Returns a reference to this object so that method calls can be chained together. */ public Table withPartitionKeys(java.util.Collection partitionKeys) { setPartitionKeys(partitionKeys); return this; } /** *

* Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a * VIRTUAL_VIEW, certain Athena configuration encoded in base64. *

* * @param viewOriginalText * Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is * a VIRTUAL_VIEW, certain Athena configuration encoded in base64. */ public void setViewOriginalText(String viewOriginalText) { this.viewOriginalText = viewOriginalText; } /** *

* Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a * VIRTUAL_VIEW, certain Athena configuration encoded in base64. *

* * @return Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is * a VIRTUAL_VIEW, certain Athena configuration encoded in base64. */ public String getViewOriginalText() { return this.viewOriginalText; } /** *

* Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a * VIRTUAL_VIEW, certain Athena configuration encoded in base64. *

* * @param viewOriginalText * Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is * a VIRTUAL_VIEW, certain Athena configuration encoded in base64. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withViewOriginalText(String viewOriginalText) { setViewOriginalText(viewOriginalText); return this; } /** *

* Included for Apache Hive compatibility. Not used in the normal course of Glue operations. *

* * @param viewExpandedText * Included for Apache Hive compatibility. Not used in the normal course of Glue operations. */ public void setViewExpandedText(String viewExpandedText) { this.viewExpandedText = viewExpandedText; } /** *

* Included for Apache Hive compatibility. Not used in the normal course of Glue operations. *

* * @return Included for Apache Hive compatibility. Not used in the normal course of Glue operations. */ public String getViewExpandedText() { return this.viewExpandedText; } /** *

* Included for Apache Hive compatibility. Not used in the normal course of Glue operations. *

* * @param viewExpandedText * Included for Apache Hive compatibility. Not used in the normal course of Glue operations. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withViewExpandedText(String viewExpandedText) { setViewExpandedText(viewExpandedText); return this; } /** *

* The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, such * as Athena, may create tables with additional table types. *

*

* Glue related table types: *

*
*
EXTERNAL_TABLE
*
*

* Hive compatible attribute - indicates a non-Hive managed table. *

*
*
GOVERNED
*
*

* Used by Lake Formation. The Glue Data Catalog understands GOVERNED. *

*
*
* * @param tableType * The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, * such as Athena, may create tables with additional table types.

*

* Glue related table types: *

*
*
EXTERNAL_TABLE
*
*

* Hive compatible attribute - indicates a non-Hive managed table. *

*
*
GOVERNED
*
*

* Used by Lake Formation. The Glue Data Catalog understands GOVERNED. *

*
*/ public void setTableType(String tableType) { this.tableType = tableType; } /** *

* The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, such * as Athena, may create tables with additional table types. *

*

* Glue related table types: *

*
*
EXTERNAL_TABLE
*
*

* Hive compatible attribute - indicates a non-Hive managed table. *

*
*
GOVERNED
*
*

* Used by Lake Formation. The Glue Data Catalog understands GOVERNED. *

*
*
* * @return The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other * services, such as Athena, may create tables with additional table types.

*

* Glue related table types: *

*
*
EXTERNAL_TABLE
*
*

* Hive compatible attribute - indicates a non-Hive managed table. *

*
*
GOVERNED
*
*

* Used by Lake Formation. The Glue Data Catalog understands GOVERNED. *

*
*/ public String getTableType() { return this.tableType; } /** *

* The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, such * as Athena, may create tables with additional table types. *

*

* Glue related table types: *

*
*
EXTERNAL_TABLE
*
*

* Hive compatible attribute - indicates a non-Hive managed table. *

*
*
GOVERNED
*
*

* Used by Lake Formation. The Glue Data Catalog understands GOVERNED. *

*
*
* * @param tableType * The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, * such as Athena, may create tables with additional table types.

*

* Glue related table types: *

*
*
EXTERNAL_TABLE
*
*

* Hive compatible attribute - indicates a non-Hive managed table. *

*
*
GOVERNED
*
*

* Used by Lake Formation. The Glue Data Catalog understands GOVERNED. *

*
* @return Returns a reference to this object so that method calls can be chained together. */ public Table withTableType(String tableType) { setTableType(tableType); return this; } /** *

* These key-value pairs define properties associated with the table. *

* * @return These key-value pairs define properties associated with the table. */ public java.util.Map getParameters() { return parameters; } /** *

* These key-value pairs define properties associated with the table. *

* * @param parameters * These key-value pairs define properties associated with the table. */ public void setParameters(java.util.Map parameters) { this.parameters = parameters; } /** *

* These key-value pairs define properties associated with the table. *

* * @param parameters * These key-value pairs define properties associated with the table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withParameters(java.util.Map parameters) { setParameters(parameters); return this; } /** * Add a single Parameters entry * * @see Table#withParameters * @returns a reference to this object so that method calls can be chained together. */ public Table addParametersEntry(String key, String value) { if (null == this.parameters) { this.parameters = new java.util.HashMap(); } if (this.parameters.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.parameters.put(key, value); return this; } /** * Removes all the entries added into Parameters. * * @return Returns a reference to this object so that method calls can be chained together. */ public Table clearParametersEntries() { this.parameters = null; return this; } /** *

* The person or entity who created the table. *

* * @param createdBy * The person or entity who created the table. */ public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } /** *

* The person or entity who created the table. *

* * @return The person or entity who created the table. */ public String getCreatedBy() { return this.createdBy; } /** *

* The person or entity who created the table. *

* * @param createdBy * The person or entity who created the table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withCreatedBy(String createdBy) { setCreatedBy(createdBy); return this; } /** *

* Indicates whether the table has been registered with Lake Formation. *

* * @param isRegisteredWithLakeFormation * Indicates whether the table has been registered with Lake Formation. */ public void setIsRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation) { this.isRegisteredWithLakeFormation = isRegisteredWithLakeFormation; } /** *

* Indicates whether the table has been registered with Lake Formation. *

* * @return Indicates whether the table has been registered with Lake Formation. */ public Boolean getIsRegisteredWithLakeFormation() { return this.isRegisteredWithLakeFormation; } /** *

* Indicates whether the table has been registered with Lake Formation. *

* * @param isRegisteredWithLakeFormation * Indicates whether the table has been registered with Lake Formation. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withIsRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation) { setIsRegisteredWithLakeFormation(isRegisteredWithLakeFormation); return this; } /** *

* Indicates whether the table has been registered with Lake Formation. *

* * @return Indicates whether the table has been registered with Lake Formation. */ public Boolean isRegisteredWithLakeFormation() { return this.isRegisteredWithLakeFormation; } /** *

* A TableIdentifier structure that describes a target table for resource linking. *

* * @param targetTable * A TableIdentifier structure that describes a target table for resource linking. */ public void setTargetTable(TableIdentifier targetTable) { this.targetTable = targetTable; } /** *

* A TableIdentifier structure that describes a target table for resource linking. *

* * @return A TableIdentifier structure that describes a target table for resource linking. */ public TableIdentifier getTargetTable() { return this.targetTable; } /** *

* A TableIdentifier structure that describes a target table for resource linking. *

* * @param targetTable * A TableIdentifier structure that describes a target table for resource linking. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withTargetTable(TableIdentifier targetTable) { setTargetTable(targetTable); return this; } /** *

* The ID of the Data Catalog in which the table resides. *

* * @param catalogId * The ID of the Data Catalog in which the table resides. */ public void setCatalogId(String catalogId) { this.catalogId = catalogId; } /** *

* The ID of the Data Catalog in which the table resides. *

* * @return The ID of the Data Catalog in which the table resides. */ public String getCatalogId() { return this.catalogId; } /** *

* The ID of the Data Catalog in which the table resides. *

* * @param catalogId * The ID of the Data Catalog in which the table resides. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withCatalogId(String catalogId) { setCatalogId(catalogId); return this; } /** *

* The ID of the table version. *

* * @param versionId * The ID of the table version. */ public void setVersionId(String versionId) { this.versionId = versionId; } /** *

* The ID of the table version. *

* * @return The ID of the table version. */ public String getVersionId() { return this.versionId; } /** *

* The ID of the table version. *

* * @param versionId * The ID of the table version. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withVersionId(String versionId) { setVersionId(versionId); return this; } /** *

* A FederatedTable structure that references an entity outside the Glue Data Catalog. *

* * @param federatedTable * A FederatedTable structure that references an entity outside the Glue Data Catalog. */ public void setFederatedTable(FederatedTable federatedTable) { this.federatedTable = federatedTable; } /** *

* A FederatedTable structure that references an entity outside the Glue Data Catalog. *

* * @return A FederatedTable structure that references an entity outside the Glue Data Catalog. */ public FederatedTable getFederatedTable() { return this.federatedTable; } /** *

* A FederatedTable structure that references an entity outside the Glue Data Catalog. *

* * @param federatedTable * A FederatedTable structure that references an entity outside the Glue Data Catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withFederatedTable(FederatedTable federatedTable) { setFederatedTable(federatedTable); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDatabaseName() != null) sb.append("DatabaseName: ").append(getDatabaseName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getCreateTime() != null) sb.append("CreateTime: ").append(getCreateTime()).append(","); if (getUpdateTime() != null) sb.append("UpdateTime: ").append(getUpdateTime()).append(","); if (getLastAccessTime() != null) sb.append("LastAccessTime: ").append(getLastAccessTime()).append(","); if (getLastAnalyzedTime() != null) sb.append("LastAnalyzedTime: ").append(getLastAnalyzedTime()).append(","); if (getRetention() != null) sb.append("Retention: ").append(getRetention()).append(","); if (getStorageDescriptor() != null) sb.append("StorageDescriptor: ").append(getStorageDescriptor()).append(","); if (getPartitionKeys() != null) sb.append("PartitionKeys: ").append(getPartitionKeys()).append(","); if (getViewOriginalText() != null) sb.append("ViewOriginalText: ").append(getViewOriginalText()).append(","); if (getViewExpandedText() != null) sb.append("ViewExpandedText: ").append(getViewExpandedText()).append(","); if (getTableType() != null) sb.append("TableType: ").append(getTableType()).append(","); if (getParameters() != null) sb.append("Parameters: ").append(getParameters()).append(","); if (getCreatedBy() != null) sb.append("CreatedBy: ").append(getCreatedBy()).append(","); if (getIsRegisteredWithLakeFormation() != null) sb.append("IsRegisteredWithLakeFormation: ").append(getIsRegisteredWithLakeFormation()).append(","); if (getTargetTable() != null) sb.append("TargetTable: ").append(getTargetTable()).append(","); if (getCatalogId() != null) sb.append("CatalogId: ").append(getCatalogId()).append(","); if (getVersionId() != null) sb.append("VersionId: ").append(getVersionId()).append(","); if (getFederatedTable() != null) sb.append("FederatedTable: ").append(getFederatedTable()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Table == false) return false; Table other = (Table) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDatabaseName() == null ^ this.getDatabaseName() == null) return false; if (other.getDatabaseName() != null && other.getDatabaseName().equals(this.getDatabaseName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null) return false; if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false) return false; if (other.getCreateTime() == null ^ this.getCreateTime() == null) return false; if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false) return false; if (other.getUpdateTime() == null ^ this.getUpdateTime() == null) return false; if (other.getUpdateTime() != null && other.getUpdateTime().equals(this.getUpdateTime()) == false) return false; if (other.getLastAccessTime() == null ^ this.getLastAccessTime() == null) return false; if (other.getLastAccessTime() != null && other.getLastAccessTime().equals(this.getLastAccessTime()) == false) return false; if (other.getLastAnalyzedTime() == null ^ this.getLastAnalyzedTime() == null) return false; if (other.getLastAnalyzedTime() != null && other.getLastAnalyzedTime().equals(this.getLastAnalyzedTime()) == false) return false; if (other.getRetention() == null ^ this.getRetention() == null) return false; if (other.getRetention() != null && other.getRetention().equals(this.getRetention()) == false) return false; if (other.getStorageDescriptor() == null ^ this.getStorageDescriptor() == null) return false; if (other.getStorageDescriptor() != null && other.getStorageDescriptor().equals(this.getStorageDescriptor()) == false) return false; if (other.getPartitionKeys() == null ^ this.getPartitionKeys() == null) return false; if (other.getPartitionKeys() != null && other.getPartitionKeys().equals(this.getPartitionKeys()) == false) return false; if (other.getViewOriginalText() == null ^ this.getViewOriginalText() == null) return false; if (other.getViewOriginalText() != null && other.getViewOriginalText().equals(this.getViewOriginalText()) == false) return false; if (other.getViewExpandedText() == null ^ this.getViewExpandedText() == null) return false; if (other.getViewExpandedText() != null && other.getViewExpandedText().equals(this.getViewExpandedText()) == false) return false; if (other.getTableType() == null ^ this.getTableType() == null) return false; if (other.getTableType() != null && other.getTableType().equals(this.getTableType()) == false) return false; if (other.getParameters() == null ^ this.getParameters() == null) return false; if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == false) return false; if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) return false; if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false) return false; if (other.getIsRegisteredWithLakeFormation() == null ^ this.getIsRegisteredWithLakeFormation() == null) return false; if (other.getIsRegisteredWithLakeFormation() != null && other.getIsRegisteredWithLakeFormation().equals(this.getIsRegisteredWithLakeFormation()) == false) return false; if (other.getTargetTable() == null ^ this.getTargetTable() == null) return false; if (other.getTargetTable() != null && other.getTargetTable().equals(this.getTargetTable()) == false) return false; if (other.getCatalogId() == null ^ this.getCatalogId() == null) return false; if (other.getCatalogId() != null && other.getCatalogId().equals(this.getCatalogId()) == false) return false; if (other.getVersionId() == null ^ this.getVersionId() == null) return false; if (other.getVersionId() != null && other.getVersionId().equals(this.getVersionId()) == false) return false; if (other.getFederatedTable() == null ^ this.getFederatedTable() == null) return false; if (other.getFederatedTable() != null && other.getFederatedTable().equals(this.getFederatedTable()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDatabaseName() == null) ? 0 : getDatabaseName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); hashCode = prime * hashCode + ((getLastAccessTime() == null) ? 0 : getLastAccessTime().hashCode()); hashCode = prime * hashCode + ((getLastAnalyzedTime() == null) ? 0 : getLastAnalyzedTime().hashCode()); hashCode = prime * hashCode + ((getRetention() == null) ? 0 : getRetention().hashCode()); hashCode = prime * hashCode + ((getStorageDescriptor() == null) ? 0 : getStorageDescriptor().hashCode()); hashCode = prime * hashCode + ((getPartitionKeys() == null) ? 0 : getPartitionKeys().hashCode()); hashCode = prime * hashCode + ((getViewOriginalText() == null) ? 0 : getViewOriginalText().hashCode()); hashCode = prime * hashCode + ((getViewExpandedText() == null) ? 0 : getViewExpandedText().hashCode()); hashCode = prime * hashCode + ((getTableType() == null) ? 0 : getTableType().hashCode()); hashCode = prime * hashCode + ((getParameters() == null) ? 0 : getParameters().hashCode()); hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); hashCode = prime * hashCode + ((getIsRegisteredWithLakeFormation() == null) ? 0 : getIsRegisteredWithLakeFormation().hashCode()); hashCode = prime * hashCode + ((getTargetTable() == null) ? 0 : getTargetTable().hashCode()); hashCode = prime * hashCode + ((getCatalogId() == null) ? 0 : getCatalogId().hashCode()); hashCode = prime * hashCode + ((getVersionId() == null) ? 0 : getVersionId().hashCode()); hashCode = prime * hashCode + ((getFederatedTable() == null) ? 0 : getFederatedTable().hashCode()); return hashCode; } @Override public Table clone() { try { return (Table) 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.glue.model.transform.TableMarshaller.getInstance().marshall(this, protocolMarshaller); } }