Interface Span.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Span.Builder,
,Span> SdkBuilder<Span.Builder,
,Span> SdkPojo
- Enclosing class:
Span
-
Method Summary
Modifier and TypeMethodDescriptiondefault Span.Builder
end
(Consumer<Position.Builder> end) The end position of the span (exclusive).The end position of the span (exclusive).default Span.Builder
start
(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
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
-
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.Builder
avoiding the need to create one manually viaPosition.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaPosition.builder()
.When the
Consumer
completes,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:
-