Interface TableMetadata.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TableMetadata.Builder,TableMetadata>,SdkBuilder<TableMetadata.Builder,TableMetadata>,SdkPojo
- Enclosing class:
- TableMetadata
public static interface TableMetadata.Builder extends SdkPojo, CopyableBuilder<TableMetadata.Builder,TableMetadata>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TableMetadata.Buildercolumns(Collection<Column> columns)A list of the columns in the table.TableMetadata.Buildercolumns(Consumer<Column.Builder>... columns)A list of the columns in the table.TableMetadata.Buildercolumns(Column... columns)A list of the columns in the table.TableMetadata.BuildercreateTime(Instant createTime)The time that the table was created.TableMetadata.BuilderlastAccessTime(Instant lastAccessTime)The last time the table was accessed.TableMetadata.Buildername(String name)The name of the table.TableMetadata.Builderparameters(Map<String,String> parameters)A set of custom key/value pairs for table properties.TableMetadata.BuilderpartitionKeys(Collection<Column> partitionKeys)A list of the partition keys in the table.TableMetadata.BuilderpartitionKeys(Consumer<Column.Builder>... partitionKeys)A list of the partition keys in the table.TableMetadata.BuilderpartitionKeys(Column... partitionKeys)A list of the partition keys in the table.TableMetadata.BuildertableType(String tableType)The type of table.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
TableMetadata.Builder name(String name)
The name of the table.
- Parameters:
name- The name of the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
TableMetadata.Builder createTime(Instant createTime)
The time that the table was created.
- Parameters:
createTime- The time that the table was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastAccessTime
TableMetadata.Builder lastAccessTime(Instant lastAccessTime)
The last time the table was accessed.
- Parameters:
lastAccessTime- The last time the table was accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableType
TableMetadata.Builder tableType(String tableType)
The type of table. In Athena, only
EXTERNAL_TABLEis supported.- Parameters:
tableType- The type of table. In Athena, onlyEXTERNAL_TABLEis supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
TableMetadata.Builder columns(Collection<Column> columns)
A list of the columns in the table.
- Parameters:
columns- A list of the columns in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
TableMetadata.Builder columns(Column... columns)
A list of the columns in the table.
- Parameters:
columns- A list of the columns in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
TableMetadata.Builder columns(Consumer<Column.Builder>... columns)
A list of the columns in the table.
This is a convenience method that creates an instance of theColumn.Builderavoiding the need to create one manually viaColumn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#columns(List.) - Parameters:
columns- a consumer that will call methods onColumn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#columns(java.util.Collection)
-
partitionKeys
TableMetadata.Builder partitionKeys(Collection<Column> partitionKeys)
A list of the partition keys in the table.
- Parameters:
partitionKeys- A list of the partition keys in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitionKeys
TableMetadata.Builder partitionKeys(Column... partitionKeys)
A list of the partition keys in the table.
- Parameters:
partitionKeys- A list of the partition keys in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitionKeys
TableMetadata.Builder partitionKeys(Consumer<Column.Builder>... partitionKeys)
A list of the partition keys in the table.
This is a convenience method that creates an instance of theColumn.Builderavoiding the need to create one manually viaColumn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#partitionKeys(List.) - Parameters:
partitionKeys- a consumer that will call methods onColumn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#partitionKeys(java.util.Collection)
-
parameters
TableMetadata.Builder parameters(Map<String,String> parameters)
A set of custom key/value pairs for table properties.
- Parameters:
parameters- A set of custom key/value pairs for table properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-