Interface Widget.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Widget.Builder,
,Widget> SdkBuilder<Widget.Builder,
,Widget> SdkPojo
- Enclosing class:
Widget
-
Method Summary
Modifier and TypeMethodDescriptionconfigs
(Collection<WidgetConfig> configs) An array of configurations that define the data queries and display settings for the widget.configs
(Consumer<WidgetConfig.Builder>... configs) An array of configurations that define the data queries and display settings for the widget.configs
(WidgetConfig... configs) An array of configurations that define the data queries and display settings for the widget.description
(String description) A description of the widget's purpose or the data it displays.The height of the widget in row spans.horizontalOffset
(Integer horizontalOffset) Specifies the starting column position of the widget in the dashboard's grid layout.The title of the widget.The width of the widget in column spans.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
title
The title of the widget.
- Parameters:
title
- The title of the widget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the widget's purpose or the data it displays.
- Parameters:
description
- A description of the widget's purpose or the data it displays.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
width
The width of the widget in column spans. The dashboard layout consists of a grid system.
- Parameters:
width
- The width of the widget in column spans. The dashboard layout consists of a grid system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
height
The height of the widget in row spans. The dashboard layout consists of a grid system.
- Parameters:
height
- The height of the widget in row spans. The dashboard layout consists of a grid system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
horizontalOffset
Specifies the starting column position of the widget in the dashboard's grid layout. Used to control widget placement.
- Parameters:
horizontalOffset
- Specifies the starting column position of the widget in the dashboard's grid layout. Used to control widget placement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configs
An array of configurations that define the data queries and display settings for the widget.
- Parameters:
configs
- An array of configurations that define the data queries and display settings for the widget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configs
An array of configurations that define the data queries and display settings for the widget.
- Parameters:
configs
- An array of configurations that define the data queries and display settings for the widget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configs
An array of configurations that define the data queries and display settings for the widget.
This is a convenience method that creates an instance of theWidgetConfig.Builder
avoiding the need to create one manually viaWidgetConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfigs(List<WidgetConfig>)
.- Parameters:
configs
- a consumer that will call methods onWidgetConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-