software.amazon.awscdk.services.cloudwatch.ConcreteWidget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatch Show documentation
Show all versions of cloudwatch Show documentation
The CDK Construct Library for AWS::CloudWatch
package software.amazon.awscdk.services.cloudwatch;
/**
* A real CloudWatch widget that has its own fixed size and remembers its position.
*
* This is in contrast to other widgets which exist for layout purposes.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.19.0 (build 7c562bc)", date = "2019-10-22T08:20:38.281Z")
@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.ConcreteWidget")
public abstract class ConcreteWidget extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.cloudwatch.IWidget {
protected ConcreteWidget(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected ConcreteWidget(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param width This parameter is required.
* @param height This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected ConcreteWidget(final java.lang.Number width, final java.lang.Number height) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.setObjRef(software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(width, "width is required"), java.util.Objects.requireNonNull(height, "height is required") }));
}
/**
* 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 abstract java.util.List toJson();
/**
* 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);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected java.lang.Number getX() {
return this.jsiiGet("x", java.lang.Number.class);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected void setX(final java.lang.Number value) {
this.jsiiSet("x", value);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected java.lang.Number getY() {
return this.jsiiGet("y", java.lang.Number.class);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected void setY(final java.lang.Number value) {
this.jsiiSet("y", value);
}
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
final static class Jsii$Proxy extends software.amazon.awscdk.services.cloudwatch.ConcreteWidget {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.setObjRef(objRef);
}
/**
* 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);
}
/**
* 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));
}
/**
* 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") });
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy