Interface TableOptimizerRun.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TableOptimizerRun.Builder,
,TableOptimizerRun> SdkBuilder<TableOptimizerRun.Builder,
,TableOptimizerRun> SdkPojo
- Enclosing class:
TableOptimizerRun
public static interface TableOptimizerRun.Builder
extends SdkPojo, CopyableBuilder<TableOptimizerRun.Builder,TableOptimizerRun>
-
Method Summary
Modifier and TypeMethodDescriptionendTimestamp
(Instant endTimestamp) Represents the epoch timestamp at which the compaction job ended.An error that occured during the optimizer run.An event type representing the status of the table optimizer run.eventType
(TableOptimizerEventType eventType) An event type representing the status of the table optimizer run.default TableOptimizerRun.Builder
metrics
(Consumer<RunMetrics.Builder> metrics) ARunMetrics
object containing metrics for the optimizer run.metrics
(RunMetrics metrics) ARunMetrics
object containing metrics for the optimizer run.startTimestamp
(Instant startTimestamp) Represents the epoch timestamp at which the compaction job was started within Lake Formation.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
-
eventType
An event type representing the status of the table optimizer run.
- Parameters:
eventType
- An event type representing the status of the table optimizer run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventType
An event type representing the status of the table optimizer run.
- Parameters:
eventType
- An event type representing the status of the table optimizer run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startTimestamp
Represents the epoch timestamp at which the compaction job was started within Lake Formation.
- Parameters:
startTimestamp
- Represents the epoch timestamp at which the compaction job was started within Lake Formation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTimestamp
Represents the epoch timestamp at which the compaction job ended.
- Parameters:
endTimestamp
- Represents the epoch timestamp at which the compaction job ended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
A
RunMetrics
object containing metrics for the optimizer run.- Parameters:
metrics
- ARunMetrics
object containing metrics for the optimizer run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
A
This is a convenience method that creates an instance of theRunMetrics
object containing metrics for the optimizer run.RunMetrics.Builder
avoiding the need to create one manually viaRunMetrics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometrics(RunMetrics)
.- Parameters:
metrics
- a consumer that will call methods onRunMetrics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
An error that occured during the optimizer run.
- Parameters:
error
- An error that occured during the optimizer run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-