public UpdateOriginEndpointResult withSegment(Segment segment) {
        setSegment(segment);
        return this;
    }
<p>
The segment configuration, including the segment name, duration, and other configuration values.
</p>

@param segment
       The segment configuration, including the segment name, duration, and other configuration values.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediapackagev2/src/main/java/com/amazonaws/services/mediapackagev2/model/UpdateOriginEndpointResult.java