cfdsl.cloudwatch.property.Dimension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cfdsl Show documentation
Show all versions of cfdsl Show documentation
Java DSL for Amazon CloudFormation templates
The newest version!
package cfdsl.cloudwatch.property;
import cfdsl.EmbeddedProperty;
import cfdsl.fn.StringLike;
public final class Dimension extends EmbeddedProperty {
private Dimension(Builder b) {
super(b);
}
public static Dimension of(String name, StringLike value) {
return new Builder(name, value).build();
}
private static final class Builder extends EmbeddedProperty.Builder {
private Builder(String name, StringLike value) {
addProperty("Name", name);
addProperty("Value", value);
}
@Override
public Dimension build() {
return new Dimension(this);
}
}
}