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

io.rtr.alchemy.dto.requests.UpdateExperimentRequest Maven / Gradle / Ivy

There is a newer version: 2.2.14
Show newest version
package io.rtr.alchemy.dto.requests;

import io.rtr.alchemy.dto.models.TreatmentDto;

import java.util.List;
import java.util.Optional;
import java.util.Set;

import javax.validation.Valid;

/** Represents a request for updating an experiment */
public class UpdateExperimentRequest {
    private Optional seed;
    private Optional description;
    private Optional filter;
    private Optional> hashAttributes;
    private Optional active;

    @Valid private Optional> treatments;

    @Valid private Optional> allocations;

    @Valid private Optional> overrides;

    public UpdateExperimentRequest() {}

    public UpdateExperimentRequest(
            Optional seed,
            Optional description,
            Optional filter,
            Optional> hashAttributes,
            Optional active,
            Optional> treatments,
            Optional> allocations,
            Optional> overrides) {
        this.seed = seed;
        this.description = description;
        this.filter = filter;
        this.hashAttributes = hashAttributes;
        this.active = active;
        this.treatments = treatments;
        this.allocations = allocations;
        this.overrides = overrides;
    }

    public Optional getSeed() {
        return seed;
    }

    public Optional getDescription() {
        return description;
    }

    public Optional getFilter() {
        return filter;
    }

    public Optional> getHashAttributes() {
        return hashAttributes;
    }

    public Optional getActive() {
        return active;
    }

    public Optional> getTreatments() {
        return treatments;
    }

    public Optional> getAllocations() {
        return allocations;
    }

    public Optional> getOverrides() {
        return overrides;
    }

    // NOTE: Need setters in order for Optional to work correctly
    public void setSeed(Optional seed) {
        this.seed = seed;
    }

    public void setDescription(Optional description) {
        this.description = description;
    }

    public void setFilter(Optional filter) {
        this.filter = filter;
    }

    public void setHashAttributes(Optional> hashAttributes) {
        this.hashAttributes = hashAttributes;
    }

    public void setActive(Optional active) {
        this.active = active;
    }

    public void setTreatments(Optional> treatments) {
        this.treatments = treatments;
    }

    public void setAllocations(Optional> allocations) {
        this.allocations = allocations;
    }

    public void setOverrides(Optional> overrides) {
        this.overrides = overrides;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy