com.messagebird.objects.integrations.HSMComponentFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of messagebird-api Show documentation
Show all versions of messagebird-api Show documentation
The MessageBird API provides a API to the MessageBird SMS and voicemail services located at https://www.messagebird.com.
The newest version!
package com.messagebird.objects.integrations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* An enum for HSMComponentFormat
*
* @see HSMComponentFormat
* @author ssk910
*/
public enum HSMComponentFormat {
TEXT("TEXT"),
IMAGE("IMAGE"),
DOCUMENT("DOCUMENT"),
VIDEO("VIDEO");
private final String format;
HSMComponentFormat(String format) {
this.format = format;
}
@JsonCreator
public static HSMComponentFormat forValue(String value) {
for (HSMComponentFormat hsmComponentFormat : HSMComponentFormat.values()) {
if (hsmComponentFormat.getFormat().equals(value)) {
return hsmComponentFormat;
}
}
return null;
}
@JsonValue
public String toJson() {
return getFormat();
}
public String getFormat() {
return format;
}
@Override
public String toString() {
return getFormat();
}
}