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

com.box.sdk.BoxSignRequestSignatureColor Maven / Gradle / Ivy

There is a newer version: 4.12.0
Show newest version
package com.box.sdk;

/**
 * Specific, forced color for a signature.
 */
public enum BoxSignRequestSignatureColor {

    /**
     * Blue signature color.
     */
    Blue("blue"),

    /**
     * Black signature color.
     */
    Black("black"),

    /**
     * Red signature color.
     */
    Red("red");

    private final String jsonValue;

    BoxSignRequestSignatureColor(String jsonValue) {
        this.jsonValue = jsonValue;
    }

    static BoxSignRequestSignatureColor fromJSONString(String jsonValue) {
        if ("blue".equals(jsonValue)) {
            return Blue;
        } else if ("black".equals(jsonValue)) {
            return Black;
        } else if ("red".equals(jsonValue)) {
            return Red;
        }
        throw new IllegalArgumentException("The provided JSON value isn't a valid "
            + "BoxSignRequestSignatureColor.");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy