/* * 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.athena.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains metadata for a table. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TableMetadata implements Serializable, Cloneable, StructuredPojo { /** ** The name of the table. *
*/ private String name; /** ** The time that the table was created. *
*/ private java.util.Date createTime; /** ** The last time the table was accessed. *
*/ private java.util.Date lastAccessTime; /** *
* The type of table. In Athena, only EXTERNAL_TABLE
is supported.
*
* A list of the columns in the table. *
*/ private java.util.List* A list of the partition keys in the table. *
*/ private java.util.List* A set of custom key/value pairs for table properties. *
*/ private java.util.Map* The name of the table. *
* * @param name * The name of the table. */ public void setName(String name) { this.name = name; } /** ** The name of the table. *
* * @return The name of the table. */ public String getName() { return this.name; } /** ** The name of the table. *
* * @param name * The name of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableMetadata withName(String name) { setName(name); return this; } /** ** The time that the table was created. *
* * @param createTime * The time that the table was created. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** ** The time that the table was created. *
* * @return The time that the table was created. */ public java.util.Date getCreateTime() { return this.createTime; } /** ** The time that the table was created. *
* * @param createTime * The time that the table was created. * @return Returns a reference to this object so that method calls can be chained together. */ public TableMetadata withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** ** The last time the table was accessed. *
* * @param lastAccessTime * The last time the table was accessed. */ public void setLastAccessTime(java.util.Date lastAccessTime) { this.lastAccessTime = lastAccessTime; } /** ** The last time the table was accessed. *
* * @return The last time the table was accessed. */ public java.util.Date getLastAccessTime() { return this.lastAccessTime; } /** ** The last time the table was accessed. *
* * @param lastAccessTime * The last time the table was accessed. * @return Returns a reference to this object so that method calls can be chained together. */ public TableMetadata withLastAccessTime(java.util.Date lastAccessTime) { setLastAccessTime(lastAccessTime); return this; } /** *
* The type of table. In Athena, only EXTERNAL_TABLE
is supported.
*
EXTERNAL_TABLE
is supported.
*/
public void setTableType(String tableType) {
this.tableType = tableType;
}
/**
*
* The type of table. In Athena, only EXTERNAL_TABLE
is supported.
*
EXTERNAL_TABLE
is supported.
*/
public String getTableType() {
return this.tableType;
}
/**
*
* The type of table. In Athena, only EXTERNAL_TABLE
is supported.
*
EXTERNAL_TABLE
is supported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TableMetadata withTableType(String tableType) {
setTableType(tableType);
return this;
}
/**
* * A list of the columns in the table. *
* * @return A list of the columns in the table. */ public java.util.List* A list of the columns in the table. *
* * @param columns * A list of the columns in the table. */ public void setColumns(java.util.Collection* A list of the columns in the table. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setColumns(java.util.Collection)} or {@link #withColumns(java.util.Collection)} if you want to override * the existing values. *
* * @param columns * A list of the columns in the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableMetadata withColumns(Column... columns) { if (this.columns == null) { setColumns(new java.util.ArrayList* A list of the columns in the table. *
* * @param columns * A list of the columns in the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableMetadata withColumns(java.util.Collection* A list of the partition keys in the table. *
* * @return A list of the partition keys in the table. */ public java.util.List* A list of the partition keys in the table. *
* * @param partitionKeys * A list of the partition keys in the table. */ public void setPartitionKeys(java.util.Collection* A list of the partition keys in the table. *
** 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 the partition keys in the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableMetadata withPartitionKeys(Column... partitionKeys) { if (this.partitionKeys == null) { setPartitionKeys(new java.util.ArrayList* A list of the partition keys in the table. *
* * @param partitionKeys * A list of the partition keys in the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableMetadata withPartitionKeys(java.util.Collection* A set of custom key/value pairs for table properties. *
* * @return A set of custom key/value pairs for table properties. */ public java.util.Map* A set of custom key/value pairs for table properties. *
* * @param parameters * A set of custom key/value pairs for table properties. */ public void setParameters(java.util.Map* A set of custom key/value pairs for table properties. *
* * @param parameters * A set of custom key/value pairs for table properties. * @return Returns a reference to this object so that method calls can be chained together. */ public TableMetadata withParameters(java.util.Map