com.geotab.model.enumeration.HosOption Maven / Gradle / Ivy
package com.geotab.model.enumeration;
import com.fasterxml.jackson.annotation.JsonValue;
public enum HosOption {
OFF("OFF", 0),
ON("ON", 1),
AUTO("AUTO", 2);
private String name;
private int code;
HosOption(String name, int code) {
this.name = name;
this.code = code;
}
@JsonValue
public String getName() {
return name;
}
public int getCode() {
return code;
}
}