Interface Trace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Trace.Builder,
,Trace> SdkBuilder<Trace.Builder,
,Trace> SdkPojo
- Enclosing class:
Trace
-
Method Summary
Modifier and TypeMethodDescriptionThe length of time in seconds between the start time of the root segment and the end time of the last segment that completed.The unique identifier for the request that generated the trace's segments and subsegments.limitExceeded
(Boolean limitExceeded) LimitExceeded is set to true when the trace has exceeded theTrace document size
limit.segments
(Collection<Segment> segments) Segment documents for the segments and subsegments that comprise the trace.segments
(Consumer<Segment.Builder>... segments) Segment documents for the segments and subsegments that comprise the trace.Segment documents for the segments and subsegments 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, sdkFields
-
Method Details
-
id
The unique identifier for the request that generated the trace's segments and subsegments.
- Parameters:
id
- The unique identifier for the request that generated the trace's segments and subsegments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limitExceeded
LimitExceeded is set to true when the trace has exceeded the
Trace document size
limit. For more information about this limit and other X-Ray limits and quotas, see Amazon Web Services X-Ray endpoints and quotas.- Parameters:
limitExceeded
- LimitExceeded is set to true when the trace has exceeded theTrace document size
limit. For more information about this limit and other X-Ray limits and quotas, see Amazon Web Services X-Ray endpoints and quotas.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segments
Segment documents for the segments and subsegments that comprise the trace.
- Parameters:
segments
- Segment documents for the segments and subsegments that comprise the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segments
Segment documents for the segments and subsegments that comprise the trace.
- Parameters:
segments
- Segment documents for the segments and subsegments that comprise the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segments
Segment documents for the segments and subsegments that comprise the trace.
This is a convenience method that creates an instance of theSegment.Builder
avoiding the need to create one manually viaSegment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosegments(List<Segment>)
.- Parameters:
segments
- a consumer that will call methods onSegment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-