@Stability(value=Stable) public static final class AlarmStatusWidgetProps.Builder extends Object implements software.amazon.jsii.Builder<AlarmStatusWidgetProps>
AlarmStatusWidgetProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AlarmStatusWidgetProps.Builder |
alarms(List<? extends IAlarm> alarms)
Sets the value of
AlarmStatusWidgetProps.getAlarms() |
AlarmStatusWidgetProps |
build()
Builds the configured instance.
|
AlarmStatusWidgetProps.Builder |
height(Number height)
Sets the value of
AlarmStatusWidgetProps.getHeight() |
AlarmStatusWidgetProps.Builder |
sortBy(AlarmStatusWidgetSortBy sortBy)
Sets the value of
AlarmStatusWidgetProps.getSortBy() |
AlarmStatusWidgetProps.Builder |
states(List<? extends AlarmState> states)
Sets the value of
AlarmStatusWidgetProps.getStates() |
AlarmStatusWidgetProps.Builder |
title(String title)
Sets the value of
AlarmStatusWidgetProps.getTitle() |
AlarmStatusWidgetProps.Builder |
width(Number width)
Sets the value of
AlarmStatusWidgetProps.getWidth() |
@Stability(value=Stable) public AlarmStatusWidgetProps.Builder alarms(List<? extends IAlarm> alarms)
AlarmStatusWidgetProps.getAlarms()alarms - CloudWatch Alarms to show in widget. This parameter is required.this@Stability(value=Stable) public AlarmStatusWidgetProps.Builder height(Number height)
AlarmStatusWidgetProps.getHeight()height - Height of the widget.this@Stability(value=Stable) public AlarmStatusWidgetProps.Builder sortBy(AlarmStatusWidgetSortBy sortBy)
AlarmStatusWidgetProps.getSortBy()sortBy - Specifies how to sort the alarms in the widget.this@Stability(value=Stable) public AlarmStatusWidgetProps.Builder states(List<? extends AlarmState> states)
AlarmStatusWidgetProps.getStates()states - Use this field to filter the list of alarms displayed in the widget to only those alarms currently in the specified states.
You can specify one or more alarm states in the value for this field.
The alarm states that you can specify are ALARM, INSUFFICIENT_DATA, and OK.
If you omit this field or specify an empty array, all the alarms specifed in alarms are displayed.
this@Stability(value=Stable) public AlarmStatusWidgetProps.Builder title(String title)
AlarmStatusWidgetProps.getTitle()title - The title of the widget.this@Stability(value=Stable) public AlarmStatusWidgetProps.Builder width(Number width)
AlarmStatusWidgetProps.getWidth()width - Width of the widget, in a grid of 24 units wide.this@Stability(value=Stable) public AlarmStatusWidgetProps build()
build in interface software.amazon.jsii.Builder<AlarmStatusWidgetProps>AlarmStatusWidgetPropsNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.