public MetricTransformation addDimensionsEntry(String key, String value) {
        if (null == this.dimensions) {
            this.dimensions = new com.amazonaws.internal.SdkInternalMap<String, String>();
        }
        if (this.dimensions.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.dimensions.put(key, value);
        return this;
    }
Add a single Dimensions entry

@see MetricTransformation#withDimensions
@returns a reference to this object so that method calls can be chained together.
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/MetricTransformation.java