io.permit.sdk.openapi.models.UserStatus Maven / Gradle / Ivy
Show all versions of permit-sdk-java Show documentation
package io.permit.sdk.openapi.models;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.google.gson.annotations.SerializedName;
/**
* UserStatus
*
* Whether the user has signed in or not
*
*/
@Generated("jsonschema2pojo")
public enum UserStatus {
@SerializedName("active")
ACTIVE("active"),
@SerializedName("pending")
PENDING("pending");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (UserStatus c: values()) {
CONSTANTS.put(c.value, c);
}
}
UserStatus(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
public String value() {
return this.value;
}
public static UserStatus fromValue(String value) {
UserStatus constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}