@Generated(value="software.amazon.awssdk:codegen") public final class Segment extends Object implements StructuredPojo, ToCopyableBuilder<Segment.Builder,Segment>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
Segment.Builder |
Modifier and Type | Method and Description |
---|---|
static Segment.Builder |
builder() |
String |
document()
The segment document
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The segment's ID.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends Segment.Builder> |
serializableBuilderClass() |
Segment.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The segment's ID.
public String document()
The segment document
public Segment.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Segment.Builder,Segment>
public static Segment.Builder builder()
public static Class<? extends Segment.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.