Interface Span.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Span.Builder,Span>,SdkBuilder<Span.Builder,Span>,SdkPojo
- Enclosing class:
- Span
public static interface Span.Builder extends SdkPojo, CopyableBuilder<Span.Builder,Span>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Span.Builderend(Consumer<Position.Builder> end)The end position of the span (exclusive).Span.Builderend(Position end)The end position of the span (exclusive).default Span.Builderstart(Consumer<Position.Builder> start)The start position of the span (inclusive).Span.Builderstart(Position start)The start position of the span (inclusive).-
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 Detail
-
start
Span.Builder start(Position 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
default Span.Builder start(Consumer<Position.Builder> 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:
start(Position)
-
end
Span.Builder end(Position 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
default Span.Builder end(Consumer<Position.Builder> 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:
end(Position)
-
-