io.motown.ocpp.websocketjson.schema.generated.v15.UnlockconnectorResponse 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;
/**
* UnlockConnectorResponse
*
*
*
*/
@Generated("org.jsonschema2pojo")
public class UnlockconnectorResponse {
@Expose
private UnlockconnectorResponse.Status status;
public UnlockconnectorResponse.Status getStatus() {
return status;
}
public void setStatus(UnlockconnectorResponse.Status status) {
this.status = status;
}
@Generated("org.jsonschema2pojo")
public static enum Status {
ACCEPTED("Accepted"),
REJECTED("Rejected");
private final String value;
private static Map constants = new HashMap();
static {
for (UnlockconnectorResponse.Status c: UnlockconnectorResponse.Status.values()) {
constants.put(c.value, c);
}
}
private Status(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
public static UnlockconnectorResponse.Status fromValue(String value) {
UnlockconnectorResponse.Status constant = constants.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}