@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.
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; useful for testing and debugging.
|
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 documentpublic String getDocument()
The segment document
public Segment withDocument(String document)
The segment document
document
- The segment documentpublic 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.