@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Segment extends Object implements Serializable, Cloneable, StructuredPojo
A segment from a trace that has been ingested by the X-Ray service. The segment can be compiled from documents
uploaded with PutTraceSegments,
or an inferred
segment for a downstream service, generated from a subsegment sent by the service that
called it.
For the full segment document schema, see Amazon Web Services X-Ray Segment Documents in the Amazon Web Services X-Ray Developer Guide.
Constructor and Description |
---|
Segment() |
Modifier and Type | Method and Description |
---|---|
Segment |
clone() |
boolean |
equals(Object obj) |
String |
getDocument()
The segment document.
|
String |
getId()
The segment's ID.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDocument(String document)
The segment document.
|
void |
setId(String id)
The segment's ID.
|
String |
toString()
Returns a string representation of this object.
|
Segment |
withDocument(String document)
The segment document.
|
Segment |
withId(String id)
The segment's ID.
|
public void setId(String id)
The segment's ID.
id
- The segment's ID.public String getId()
The segment's ID.
public Segment withId(String id)
The segment's ID.
id
- The segment's ID.public void setDocument(String document)
The segment document.
document
- The segment document.public String getDocument()
The segment document.
public Segment withDocument(String document)
The segment document.
document
- The segment document.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.