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.Buildermetrics(Consumer<RunMetrics.Builder> metrics) ARunMetricsobject containing metrics for the optimizer run.metrics(RunMetrics metrics) ARunMetricsobject 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
RunMetricsobject containing metrics for the optimizer run.- Parameters:
metrics- ARunMetricsobject 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 theRunMetricsobject containing metrics for the optimizer run.RunMetrics.Builderavoiding the need to create one manually viaRunMetrics.builder().When the
Consumercompletes,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.
-