shiver.me.timbers.aws.rds.DBClusterAttributes Maven / Gradle / Ivy
package shiver.me.timbers.aws.rds;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum DBClusterAttributes {
ENDPOINT_ADDRESS("Endpoint.Address"),
ENDPOINT_PORT("Endpoint.Port"),
READ_ENDPOINT_ADDRESS("ReadEndpoint.Address");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (DBClusterAttributes c: values()) {
CONSTANTS.put(c.value, c);
}
}
private DBClusterAttributes(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static DBClusterAttributes fromValue(String value) {
DBClusterAttributes constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy