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

cfdsl.cloudwatch.property.Dimension Maven / Gradle / Ivy

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);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy