All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shiver.me.timbers.aws.elasticache.CacheClusterAttributes Maven / Gradle / Ivy

Go to download

This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The objects have been generated directly from the specification so should be a direct one to one mapping.

The newest version!

package shiver.me.timbers.aws.elasticache;

import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public enum CacheClusterAttributes {

    CONFIGURATION_ENDPOINT_ADDRESS("ConfigurationEndpoint.Address"),
    CONFIGURATION_ENDPOINT_PORT("ConfigurationEndpoint.Port"),
    REDIS_ENDPOINT_ADDRESS("RedisEndpoint.Address"),
    REDIS_ENDPOINT_PORT("RedisEndpoint.Port");
    private final String value;
    private final static Map CONSTANTS = new HashMap();

    static {
        for (CacheClusterAttributes c: values()) {
            CONSTANTS.put(c.value, c);
        }
    }

    private CacheClusterAttributes(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.value;
    }

    @JsonValue
    public String value() {
        return this.value;
    }

    @JsonCreator
    public static CacheClusterAttributes fromValue(String value) {
        CacheClusterAttributes constant = CONSTANTS.get(value);
        if (constant == null) {
            throw new IllegalArgumentException(value);
        } else {
            return constant;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy