com.messagebird.objects.integrations.HSMStatus 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 HSMStatus object
*
* @see HSMStatus object
* @author ssk910
*/
public enum HSMStatus {
NEW("NEW"),
APPROVED("APPROVED"),
PENDING("PENDING"),
REJECTED("REJECTED"),
PENDING_DELETION("PENDING_DELETION"),
DELETED("DELETED"),
DISABLED("DISABLED"),
PAUSED("PAUSED");
private final String status;
HSMStatus(String status) {
this.status = status;
}
@JsonCreator
public static HSMStatus forValue(String value) {
for (HSMStatus hsmStatus : HSMStatus.values()) {
if (hsmStatus.getStatus().equals(value)) {
return hsmStatus;
}
}
return null;
}
@JsonValue
public String toJson() {
return getStatus();
}
public String getStatus() {
return status;
}
@Override
public String toString() {
return getStatus();
}
}