Interface Span.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Span.Builder,,Span> SdkBuilder<Span.Builder,,Span> SdkPojo
- Enclosing class:
Span
-
Method Summary
Modifier and TypeMethodDescriptiondefault Span.Builderend(Consumer<Position.Builder> end) The end position of the span (exclusive).The end position of the span (exclusive).default Span.Builderstart(Consumer<Position.Builder> start) The start position of the span (inclusive).The start position of the span (inclusive).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
-
start
The start position of the span (inclusive).
- Parameters:
start- The start position of the span (inclusive).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
start
The start position of the span (inclusive).
This is a convenience method that creates an instance of thePosition.Builderavoiding the need to create one manually viaPosition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostart(Position).- Parameters:
start- a consumer that will call methods onPosition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
end
The end position of the span (exclusive).
- Parameters:
end- The end position of the span (exclusive).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
end
The end position of the span (exclusive).
This is a convenience method that creates an instance of thePosition.Builderavoiding the need to create one manually viaPosition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toend(Position).- Parameters:
end- a consumer that will call methods onPosition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-