com.datastax.insight.core.dag.Parameter Maven / Gradle / Ivy
package com.datastax.insight.core.dag;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import java.util.HashMap;
import java.util.Map;
@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class Parameter {
private String type;
private String name;
private Object value;
private String description;
private String defaultValue;
private boolean isAdvanced;
private boolean readonly;
private boolean option;
private boolean input;
private String options;
public Parameter(){}
public Parameter(String type){
setType(type);
}
public Parameter(String name,String type,String description){
setName(name);
setType(type);
setDescription(description);
}
private Map properties=new HashMap<>();
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public boolean isReadonly() {
return readonly;
}
public void setReadonly(boolean readonly) {
this.readonly = readonly;
}
public Map getProperties() {
return properties;
}
public void setProperties(Map properties) {
this.properties = properties;
}
public boolean isOption() {
return option;
}
public void setOption(boolean option) {
this.option = option;
}
public boolean getInput() {
return input;
}
public void setInput(boolean input) {
this.input = input;
}
public String getOptions() {
return options;
}
public void setOptions(String options) {
this.options = options;
}
public String getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
public boolean getIsAdvanced() {
return isAdvanced;
}
public void setIsAdvanced(boolean isAdvanced) {
this.isAdvanced = isAdvanced;
}
}