@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Trace extends Object implements Serializable, Cloneable, StructuredPojo
A collection of segment documents with matching trace IDs.
Constructor and Description |
---|
Trace() |
Modifier and Type | Method and Description |
---|---|
Trace |
clone() |
boolean |
equals(Object obj) |
Double |
getDuration()
The length of time in seconds between the start time of the root segment and the end time of the last segment
that completed.
|
String |
getId()
The unique identifier for the request that generated the trace's segments and subsegments.
|
List<Segment> |
getSegments()
Segment documents for the segments and subsegments that comprise the trace.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDuration(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.
|
void |
setId(String id)
The unique identifier for the request that generated the trace's segments and subsegments.
|
void |
setSegments(Collection<Segment> segments)
Segment documents for the segments and subsegments that comprise the trace.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Trace |
withDuration(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 |
withId(String id)
The unique identifier for the request that generated the trace's segments and subsegments.
|
Trace |
withSegments(Collection<Segment> segments)
Segment documents for the segments and subsegments that comprise the trace.
|
Trace |
withSegments(Segment... segments)
Segment documents for the segments and subsegments that comprise the trace.
|
public void setId(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.public String getId()
The unique identifier for the request that generated the trace's segments and subsegments.
public Trace withId(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.public void setDuration(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.public Double getDuration()
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
public Trace withDuration(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.public List<Segment> getSegments()
Segment documents for the segments and subsegments that comprise the trace.
public void setSegments(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.public Trace withSegments(Segment... segments)
Segment documents for the segments and subsegments that comprise the trace.
NOTE: This method appends the values to the existing list (if any). Use
setSegments(java.util.Collection)
or withSegments(java.util.Collection)
if you want to override
the existing values.
segments
- Segment documents for the segments and subsegments that comprise the trace.public Trace withSegments(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.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.