public Materialized<K, V, S> withStoreType(final DslStoreSuppliers storeSuppliers) throws IllegalArgumentException {
        Objects.requireNonNull(storeSuppliers, "store type can't be null");
        if (storeSupplier != null) {
            throw new IllegalArgumentException("Cannot set store type when store supplier is pre-configured.");
        }
        this.dslStoreSuppliers = storeSuppliers;
        return this;
    }
Set the type of the materialized {@link StateStore}.

@param storeSuppliers  the store type {@link StoreType} to use.
@return itself
@throws IllegalArgumentException if store supplier is also pre-configured
streams/src/main/java/org/apache/kafka/streams/kstream/Materialized.java