public CoreNetworkNetworkFunctionGroup withSegments(ServiceInsertionSegments segments) {
        setSegments(segments);
        return this;
    }
<p>
The segments associated with the network function group.
</p>

@param segments
       The segments associated with the network function group.
@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/CoreNetworkNetworkFunctionGroup.java