public Segment withSegmentName(String segmentName) {
        setSegmentName(segmentName);
        return this;
    }
<p>
The name that describes the segment. The name is the base name of the segment used in all content manifests
inside of the endpoint. You can't use spaces in the name.
</p>

@param segmentName
       The name that describes the segment. The name is the base name of the segment used in all content
       manifests inside of the endpoint. You can't use spaces in the name.
@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/Segment.java