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

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

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

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.constraints.NotNull;

/** Represents a simple allocation request */
public class AllocateRequest {
    @NotNull private final String treatment;
    @NotNull private final Integer size;

    public AllocateRequest(
            @JsonProperty("treatment") String treatment, @JsonProperty("size") Integer size) {
        this.treatment = treatment;
        this.size = size;
    }

    public String getTreatment() {
        return treatment;
    }

    public Integer getSize() {
        return size;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy