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

software.amazon.awscdk.services.cloudwatch.Column Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.cloudwatch;

/**
 * A widget that contains other widgets in a vertical column.
 * 
 * Widgets will be laid out next to each other
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.19.0 (build 7c562bc)", date = "2019-10-22T08:20:38.280Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.cloudwatch.$Module.class, fqn = "@aws-cdk/aws-cloudwatch.Column")
public class Column extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.cloudwatch.IWidget {

    protected Column(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected Column(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param widgets This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public Column(final software.amazon.awscdk.services.cloudwatch.IWidget... widgets) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        this.setObjRef(software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.Arrays.stream(widgets).toArray(Object[]::new)));
    }

    /**
     * Place the widget at a given position.
     * 
     * @param x This parameter is required.
     * @param y This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @Override
    public void position(final java.lang.Number x, final java.lang.Number y) {
        this.jsiiCall("position", Void.class, new Object[] { java.util.Objects.requireNonNull(x, "x is required"), java.util.Objects.requireNonNull(y, "y is required") });
    }

    /**
     * Return the widget JSON for use in the dashboard.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @Override
    public java.util.List toJson() {
        return java.util.Collections.unmodifiableList(this.jsiiCall("toJson", java.util.List.class));
    }

    /**
     * The amount of vertical grid units the widget will take up.
     */
    @Override
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public java.lang.Number getHeight() {
        return this.jsiiGet("height", java.lang.Number.class);
    }

    /**
     * The amount of horizontal grid units the widget will take up.
     */
    @Override
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public java.lang.Number getWidth() {
        return this.jsiiGet("width", java.lang.Number.class);
    }
}