public CoreNetworkChangeValues withSharedSegments(java.util.Collection<String> sharedSegments) {
        setSharedSegments(sharedSegments);
        return this;
    }
<p>
The shared segments for a core network change value.
</p>

@param sharedSegments
       The shared segments for a core network change value.
@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/CoreNetworkChangeValues.java