Class TextWidget.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.TextWidget.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TextWidget>
- Enclosing class:
TextWidget
@Stability(Stable)
public static final class TextWidget.Builder
extends Object
implements software.amazon.jsii.Builder<TextWidget>
A fluent builder for
TextWidget
.-
Method Summary
Modifier and TypeMethodDescriptionbackground
(TextWidgetBackground background) Background for the widget.build()
static TextWidget.Builder
create()
Height of the widget.The text to display, in MarkDown format.Width of the widget, in a grid of 24 units wide.
-
Method Details
-
create
- Returns:
- a new instance of
TextWidget.Builder
.
-
markdown
The text to display, in MarkDown format.- Parameters:
markdown
- The text to display, in MarkDown format. This parameter is required.- Returns:
this
-
background
Background for the widget.Default: solid
- Parameters:
background
- Background for the widget. This parameter is required.- Returns:
this
-
height
Height of the widget.Default: 2
- Parameters:
height
- Height of the widget. This parameter is required.- Returns:
this
-
width
Width of the widget, in a grid of 24 units wide.Default: 6
- Parameters:
width
- Width of the widget, in a grid of 24 units wide. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TextWidget>
- Returns:
- a newly built instance of
TextWidget
.
-