com.mailgun.enums.YesNoHtml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mailgun-java Show documentation
Show all versions of mailgun-java Show documentation
The Mailgun SDK for Java enables Java developers to work with Mailgun API
efficiently.
The newest version!
package com.mailgun.enums;
import com.fasterxml.jackson.annotation.JsonValue;
public enum YesNoHtml implements EnumWithValue {
YES("yes"),
NO("no"),
HTML_ONLY("htmlonly");
private final String value;
YesNoHtml(String value) {
this.value = value;
}
@JsonValue
@Override
public String getValue() {
return value;
}
public static String getValue(boolean b) {
return b ? YES.value : NO.value;
}
}