All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.sixpack.client.EnvironmentSetter Maven / Gradle / Ivy

The newest version!
package dev.sixpack.client;

import dev.sixpack.api.data.Dataset;

public class EnvironmentSetter {
    private final Dataset dataset = new Dataset();

    /**
     * Sets the environment on which the dataset should be requested.
     *
     * @param environment The environment to request the dataset on.
     * @return The next builder in the chain.
     */
    public SupplierSetter onEnvironment(String environment) {
        EnvironmentSetter.this.dataset.setEnvironment(environment);
        return new SupplierSetter(dataset);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy