
com.bandwidth.messaging.models.PriorityEnum Maven / Gradle / Ivy
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.bandwidth.messaging.models;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;
/**
* PriorityEnum to be used.
*/
public enum PriorityEnum {
ENUM_DEFAULT,
HIGH;
private static TreeMap valueMap = new TreeMap<>();
private String value;
static {
ENUM_DEFAULT.value = "default";
HIGH.value = "high";
valueMap.put("default", ENUM_DEFAULT);
valueMap.put("high", HIGH);
}
/**
* Returns the enum member associated with the given string value.
* @param toConvert String value to get enum member.
* @return The enum member against the given string value.
*/
@com.fasterxml.jackson.annotation.JsonCreator
public static PriorityEnum fromString(String toConvert) {
return valueMap.get(toConvert);
}
/**
* Returns the string value associated with the enum member.
* @return The string value against enum member.
*/
@com.fasterxml.jackson.annotation.JsonValue
public String value() {
return value;
}
/**
* Get string representation of this enum.
*/
@Override
public String toString() {
return value.toString();
}
/**
* Convert list of PriorityEnum values to list of string values.
* @param toConvert The list of PriorityEnum values to convert.
* @return List of representative string values.
*/
public static List toValue(List toConvert) {
if (toConvert == null) {
return null;
}
List convertedValues = new ArrayList<>();
for (PriorityEnum enumValue : toConvert) {
convertedValues.add(enumValue.value);
}
return convertedValues;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy