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
Modifier and TypeMethodDescriptioncolumns
(Collection<Column> columns) A list of the columns in the table.columns
(Consumer<Column.Builder>... columns) A list of the columns in the table.A list of the columns in the table.createTime
(Instant createTime) The time that the table was created.lastAccessTime
(Instant lastAccessTime) The last time the table was accessed.The name of the table.parameters
(Map<String, String> parameters) A set of custom key/value pairs for table properties.partitionKeys
(Collection<Column> partitionKeys) A list of the partition keys in the table.partitionKeys
(Consumer<Column.Builder>... partitionKeys) A list of the partition keys in the table.partitionKeys
(Column... partitionKeys) A list of the partition keys in the table.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, sdkFields
-
Method Details
-
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
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
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
The type of table. In Athena, only
EXTERNAL_TABLE
is supported.- Parameters:
tableType
- The type of table. In Athena, onlyEXTERNAL_TABLE
is supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
A list of the columns in the table.
This is a convenience method that creates an instance of theColumn.Builder
avoiding the need to create one manually viaColumn.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocolumns(List<Column>)
.- 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:
-
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
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
A list of the partition keys in the table.
This is a convenience method that creates an instance of theColumn.Builder
avoiding the need to create one manually viaColumn.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topartitionKeys(List<Column>)
.- 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:
-
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.
-