io.motown.ocpp.websocketjson.schema.generated.v15.Changeavailability Maven / Gradle / Ivy
Show all versions of ocpp-websocket-json Show documentation
package io.motown.ocpp.websocketjson.schema.generated.v15;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
/**
* ChangeAvailabilityRequest
*
*
*
*/
@Generated("org.jsonschema2pojo")
public class Changeavailability {
@Expose
private Integer connectorId;
@Expose
private Changeavailability.Type type;
public Integer getConnectorId() {
return connectorId;
}
public void setConnectorId(Integer connectorId) {
this.connectorId = connectorId;
}
public Changeavailability.Type getType() {
return type;
}
public void setType(Changeavailability.Type type) {
this.type = type;
}
@Generated("org.jsonschema2pojo")
public static enum Type {
INOPERATIVE("Inoperative"),
OPERATIVE("Operative");
private final String value;
private static Map constants = new HashMap();
static {
for (Changeavailability.Type c: Changeavailability.Type.values()) {
constants.put(c.value, c);
}
}
private Type(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
public static Changeavailability.Type fromValue(String value) {
Changeavailability.Type constant = constants.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}