Class TextWidgetProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.TextWidgetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TextWidgetProps>
- Enclosing interface:
TextWidgetProps
@Stability(Stable)
public static final class TextWidgetProps.Builder
extends Object
implements software.amazon.jsii.Builder<TextWidgetProps>
A builder for
TextWidgetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofTextWidgetProps.getHeight()
Sets the value ofTextWidgetProps.getMarkdown()
Sets the value ofTextWidgetProps.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
markdown
Sets the value ofTextWidgetProps.getMarkdown()
- Parameters:
markdown
- The text to display, in MarkDown format. This parameter is required.- Returns:
this
-
height
Sets the value ofTextWidgetProps.getHeight()
- Parameters:
height
- Height of the widget.- Returns:
this
-
width
Sets the value ofTextWidgetProps.getWidth()
- Parameters:
width
- Width of the widget, in a grid of 24 units wide.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TextWidgetProps>
- Returns:
- a new instance of
TextWidgetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-