com.sigopt.model.Parameter Maven / Gradle / Ivy
package com.sigopt.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class Parameter extends StructObject {
public Parameter() {
super();
}
public String getName() {
return (String) this.get("name");
}
public String getType() {
return (String) this.get("type");
}
public Bounds getBounds() {
return Utils.mergeInto(new Bounds(), this.get("bounds"));
}
public List getCategoricalValues() {
return Utils.mergeIntoList(new ArrayList(), this.get("categorical_values"), CategoricalValue.class);
}
public Conditions getConditions() {
return Utils.mergeInto(new Conditions(), this.get("conditions"));
}
public static class Builder extends APIObjectBuilder {
public Builder() {
this.obj = new Parameter();
}
public Builder name(String name) {
this.obj.set("name", name);
return this;
}
public Builder type(String type) {
this.obj.set("type", type);
return this;
}
public Builder bounds(Bounds bounds) {
this.obj.set("bounds", bounds);
return this;
}
public Builder categoricalValues(List categoricalValues) {
this.obj.set("categorical_values", categoricalValues);
return this;
}
public Builder conditions(Map> conditions) {
this.obj.set("conditions", conditions);
return this;
}
}
}