public SegmentImportResource withChannelCounts(java.util.Map<String, Integer> channelCounts) {
        setChannelCounts(channelCounts);
        return this;
    }
public SegmentImportResource withChannelCounts ( java . util . Map < String , Integer > channelCounts ) { setChannelCounts ( channelCounts ) ; return this ; }
The number of channel types in the imported segment.

@param channelCounts
The number of channel types in the imported segment.
@return Returns a reference to this object so that method calls can be chained together.