com.jakewharton.pingdom.enumerations.SmsProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pingdom-java Show documentation
Show all versions of pingdom-java Show documentation
A Java wrapper around the Pingdom RESTful API and a simple DSL for easy interaction.
The newest version!
package com.jakewharton.pingdom.enumerations;
import java.util.HashMap;
import java.util.Map;
import com.jakewharton.pingdom.PingdomEnumeration;
/**
* Represents a Pingdom SMS provider enumeration.
*/
public enum SmsProvider implements PingdomEnumeration {
Clickatell("clickatell"),
BulkSms("bulksms"),
Esendex("esendex"),
CellSynt("cellsynt");
private final String value;
private SmsProvider(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
private static final Map STRING_MAPPING = new HashMap();
static {
for (SmsProvider defaultSmsProvider : SmsProvider.values()) {
STRING_MAPPING.put(defaultSmsProvider.toString(), defaultSmsProvider);
}
}
public static SmsProvider fromValue(String value) {
return STRING_MAPPING.get(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy