public NetworkRouteDestination withSegmentName(String segmentName) {
        setSegmentName(segmentName);
        return this;
    }
<p>
The name of the segment.
</p>

@param segmentName
       The name of the segment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/NetworkRouteDestination.java