com.messagebird.objects.integrations.HSMCategory 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 HSMCategory {
AUTHENTICATION("AUTHENTICATION"),
UTILITY("UTILITY"),
MARKETING("MARKETING");
private final String category;
HSMCategory(String category) {
this.category = category;
}
@JsonCreator
public static HSMCategory forValue(String value) {
for (HSMCategory hsmCategory : HSMCategory.values()) {
if (hsmCategory.getCategory().equals(value)) {
return hsmCategory;
}
}
return null;
}
@JsonValue
public String toJson() {
return getCategory();
}
public String getCategory() {
return category;
}
@Override
public String toString() {
return getCategory();
}
}