Interface Trace.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Trace.Builder,Trace>,SdkBuilder<Trace.Builder,Trace>,SdkPojo
- Enclosing class:
- Trace
@Mutable @NotThreadSafe public static interface Trace.Builder extends SdkPojo, CopyableBuilder<Trace.Builder,Trace>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Trace.Builderduration(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.Builderid(String id)The unique identifier for the request that generated the trace's segments and subsegments.Trace.BuilderlimitExceeded(Boolean limitExceeded)LimitExceeded is set to true when the trace has exceeded theTrace document sizelimit.Trace.Buildersegments(Collection<Segment> segments)Segment documents for the segments and subsegments that comprise the trace.Trace.Buildersegments(Consumer<Segment.Builder>... segments)Segment documents for the segments and subsegments that comprise the trace.Trace.Buildersegments(Segment... segments)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
id
Trace.Builder id(String 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
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.
- 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
Trace.Builder limitExceeded(Boolean limitExceeded)
LimitExceeded is set to true when the trace has exceeded the
Trace document sizelimit. 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 sizelimit. 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
Trace.Builder segments(Collection<Segment> 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
Trace.Builder segments(Segment... 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
Trace.Builder segments(Consumer<Segment.Builder>... segments)
Segment documents for the segments and subsegments that comprise the trace.
This is a convenience method that creates an instance of theSegment.Builderavoiding the need to create one manually viaSegment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#segments(List.) - 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:
#segments(java.util.Collection)
-
-