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 Details

    • create

      @Stability(Stable) public static TextWidget.Builder create()
      Returns:
      a new instance of TextWidget.Builder.
    • markdown

      @Stability(Stable) public TextWidget.Builder markdown(String markdown)
      The text to display, in MarkDown format.

      Parameters:
      markdown - The text to display, in MarkDown format. This parameter is required.
      Returns:
      this
    • background

      @Stability(Stable) public TextWidget.Builder background(TextWidgetBackground background)
      Background for the widget.

      Default: solid

      Parameters:
      background - Background for the widget. This parameter is required.
      Returns:
      this
    • height

      @Stability(Stable) public TextWidget.Builder height(Number height)
      Height of the widget.

      Default: 2

      Parameters:
      height - Height of the widget. This parameter is required.
      Returns:
      this
    • width

      @Stability(Stable) public TextWidget.Builder width(Number 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

      @Stability(Stable) public TextWidget build()
      Specified by:
      build in interface software.amazon.jsii.Builder<TextWidget>
      Returns:
      a newly built instance of TextWidget.