All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jelastic.api.system.persistence.AccountStatus Maven / Gradle / Ivy

There is a newer version: 8.12-1
Show newest version
/*Server class MD5: f87e2e0b0c0ab7f8d8293e9b27f86be4*/
package com.jelastic.api.system.persistence;

/**
 * @name Jelastic API Client
 * @version 8.11.2
 * @copyright Jelastic, Inc.
 */
public enum AccountStatus {

    ACTIVE(1), INACTIVE(2), DESTROY(3), DELETED(4);

    private int value;

    AccountStatus(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static AccountStatus parse(int value) {
        for (AccountStatus item : AccountStatus.values()) {
            if (item.getValue() == value) {
                return item;
            }
        }
        throw new IllegalArgumentException("status code " + value + " is unknown");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy