shiver.me.timbers.aws.route53resolver.ResolverRuleAttributes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smt-cloudformation-objects Show documentation
Show all versions of smt-cloudformation-objects Show documentation
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.route53resolver;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum ResolverRuleAttributes {
RESOLVER_ENDPOINT_ID("ResolverEndpointId"),
DOMAIN_NAME("DomainName"),
RESOLVER_RULE_ID("ResolverRuleId"),
ARN("Arn"),
TARGET_IPS("TargetIps"),
NAME("Name");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (ResolverRuleAttributes c: values()) {
CONSTANTS.put(c.value, c);
}
}
private ResolverRuleAttributes(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static ResolverRuleAttributes fromValue(String value) {
ResolverRuleAttributes constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy