Interface RetrievedTrace.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RetrievedTrace.Builder,RetrievedTrace>,SdkBuilder<RetrievedTrace.Builder,RetrievedTrace>,SdkPojo
- Enclosing class:
- RetrievedTrace
@Mutable @NotThreadSafe public static interface RetrievedTrace.Builder extends SdkPojo, CopyableBuilder<RetrievedTrace.Builder,RetrievedTrace>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RetrievedTrace.Builderduration(Double duration)The length of time in seconds between the start time of the root span and the end time of the last span that completed.RetrievedTrace.Builderid(String id)The unique identifier for the span.RetrievedTrace.Builderspans(Collection<Span> spans)Spans that comprise the trace.RetrievedTrace.Builderspans(Consumer<Span.Builder>... spans)Spans that comprise the trace.RetrievedTrace.Builderspans(Span... spans)Spans that comprise the trace.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
id
RetrievedTrace.Builder id(String id)
The unique identifier for the span.
- Parameters:
id- The unique identifier for the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
duration
RetrievedTrace.Builder duration(Double duration)
The length of time in seconds between the start time of the root span and the end time of the last span that completed.
- Parameters:
duration- The length of time in seconds between the start time of the root span and the end time of the last span that completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spans
RetrievedTrace.Builder spans(Collection<Span> spans)
Spans that comprise the trace.
- Parameters:
spans- Spans that comprise the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spans
RetrievedTrace.Builder spans(Span... spans)
Spans that comprise the trace.
- Parameters:
spans- Spans that comprise the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spans
RetrievedTrace.Builder spans(Consumer<Span.Builder>... spans)
Spans that comprise the trace.
This is a convenience method that creates an instance of theSpan.Builderavoiding the need to create one manually viaSpan.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#spans(List).- Parameters:
spans- a consumer that will call methods onSpan.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#spans(java.util.Collection)
-
-