public java.util.List<Segment> getSegments() {
        return segments;
    }
<p>
Segment documents for the segments and subsegments that comprise the trace.
</p>

@return Segment documents for the segments and subsegments that comprise the trace.
aws-java-sdk-xray/src/main/java/com/amazonaws/services/xray/model/Trace.java