public static interface Trace.Builder extends CopyableBuilder<Trace.Builder,Trace>
Modifier and Type | Method and Description |
---|---|
Trace.Builder |
duration(Double duration)
The length of time in seconds between the start time of the root segment and the end time of the last segment
that completed.
|
Trace.Builder |
id(String id)
The unique identifier for the request that generated the trace's segments and subsegments.
|
Trace.Builder |
segments(Collection<Segment> segments)
Segment documents for the segments and subsegments that comprise the trace.
|
Trace.Builder |
segments(Consumer<Segment.Builder>... segments)
Segment documents for the segments and subsegments that comprise the trace.
|
Trace.Builder |
segments(Segment... segments)
Segment documents for the segments and subsegments that comprise the trace.
|
copy
applyMutation, build
Trace.Builder id(String id)
The unique identifier for the request that generated the trace's segments and subsegments.
id
- The unique identifier for the request that generated the trace's segments and subsegments.Trace.Builder duration(Double duration)
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
duration
- The length of time in seconds between the start time of the root segment and the end time of the last
segment that completed.Trace.Builder segments(Collection<Segment> segments)
Segment documents for the segments and subsegments that comprise the trace.
segments
- Segment documents for the segments and subsegments that comprise the trace.Trace.Builder segments(Segment... segments)
Segment documents for the segments and subsegments that comprise the trace.
segments
- Segment documents for the segments and subsegments that comprise the trace.Trace.Builder segments(Consumer<Segment.Builder>... segments)
Segment documents for the segments and subsegments that comprise the trace.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #segments(List)
.segments
- a consumer that will call methods on List.Builder
#segments(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.