Interface Trace.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Trace.Builder,Trace>, SdkBuilder<Trace.Builder,Trace>, SdkPojo
Enclosing class:
Trace

public static interface Trace.Builder extends SdkPojo, CopyableBuilder<Trace.Builder,Trace>
  • 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

      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 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 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.
      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 the Segment.Builder avoiding the need to create one manually via Segment.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to segments(List<Segment>).

      Parameters:
      segments - a consumer that will call methods on Segment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: