Class TableWidgetProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.TableWidgetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableWidgetProps>
- Enclosing interface:
TableWidgetProps
@Stability(Stable)
public static final class TableWidgetProps.Builder
extends Object
implements software.amazon.jsii.Builder<TableWidgetProps>
A builder for
TableWidgetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofTableWidgetProps.getEnd()
fullPrecision
(Boolean fullPrecision) Sets the value ofTableWidgetProps.getFullPrecision()
Sets the value ofMetricWidgetProps.getHeight()
layout
(TableLayout layout) Sets the value ofTableWidgetProps.getLayout()
Sets the value ofTableWidgetProps.getLiveData()
Sets the value ofTableWidgetProps.getMetrics()
Sets the value ofTableWidgetProps.getPeriod()
Sets the value ofMetricWidgetProps.getRegion()
setPeriodToTimeRange
(Boolean setPeriodToTimeRange) Sets the value ofTableWidgetProps.getSetPeriodToTimeRange()
showUnitsInLabel
(Boolean showUnitsInLabel) Sets the value ofTableWidgetProps.getShowUnitsInLabel()
Sets the value ofTableWidgetProps.getStart()
Sets the value ofTableWidgetProps.getStatistic()
summary
(TableSummaryProps summary) Sets the value ofTableWidgetProps.getSummary()
thresholds
(List<? extends TableThreshold> thresholds) Sets the value ofTableWidgetProps.getThresholds()
Sets the value ofMetricWidgetProps.getTitle()
Sets the value ofMetricWidgetProps.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
end
Sets the value ofTableWidgetProps.getEnd()
- Parameters:
end
- The end of the time range to use for each widget independently from those of the dashboard. If you specify a value for end, you must also specify a value for start. Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.- Returns:
this
-
fullPrecision
Sets the value ofTableWidgetProps.getFullPrecision()
- Parameters:
fullPrecision
- Whether to show as many digits as can fit, before rounding.- Returns:
this
-
layout
Sets the value ofTableWidgetProps.getLayout()
- Parameters:
layout
- Table layout.- Returns:
this
-
liveData
Sets the value ofTableWidgetProps.getLiveData()
- Parameters:
liveData
- Whether the graph should show live data.- Returns:
this
-
metrics
Sets the value ofTableWidgetProps.getMetrics()
- Parameters:
metrics
- Metrics to display in the table.- Returns:
this
-
period
Sets the value ofTableWidgetProps.getPeriod()
- Parameters:
period
- The default period for all metrics in this widget. The period is the length of time represented by one data point on the graph. This default can be overridden within each metric definition.- Returns:
this
-
setPeriodToTimeRange
@Stability(Stable) public TableWidgetProps.Builder setPeriodToTimeRange(Boolean setPeriodToTimeRange) Sets the value ofTableWidgetProps.getSetPeriodToTimeRange()
- Parameters:
setPeriodToTimeRange
- Whether to show the value from the entire time range. Only applicable for Bar and Pie charts. If false, values will be from the most recent period of your chosen time range; if true, shows the value from the entire time range.- Returns:
this
-
showUnitsInLabel
Sets the value ofTableWidgetProps.getShowUnitsInLabel()
- Parameters:
showUnitsInLabel
- Show the metrics units in the label column.- Returns:
this
-
start
Sets the value ofTableWidgetProps.getStart()
- Parameters:
start
- The start of the time range to use for each widget independently from those of the dashboard. You can specify start without specifying end to specify a relative time range that ends with the current time. In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months. You can also use start along with an end field, to specify an absolute time range. When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.- Returns:
this
-
statistic
Sets the value ofTableWidgetProps.getStatistic()
- Parameters:
statistic
- The default statistic to be displayed for each metric. This default can be overridden within the definition of each individual metric- Returns:
this
-
summary
Sets the value ofTableWidgetProps.getSummary()
- Parameters:
summary
- Properties for displaying summary columns.- Returns:
this
-
thresholds
@Stability(Stable) public TableWidgetProps.Builder thresholds(List<? extends TableThreshold> thresholds) Sets the value ofTableWidgetProps.getThresholds()
- Parameters:
thresholds
- Thresholds for highlighting table cells.- Returns:
this
-
height
Sets the value ofMetricWidgetProps.getHeight()
- Parameters:
height
- Height of the widget.- Returns:
this
-
region
Sets the value ofMetricWidgetProps.getRegion()
- Parameters:
region
- The region the metrics of this graph should be taken from.- Returns:
this
-
title
Sets the value ofMetricWidgetProps.getTitle()
- Parameters:
title
- Title for the graph.- Returns:
this
-
width
Sets the value ofMetricWidgetProps.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<TableWidgetProps>
- Returns:
- a new instance of
TableWidgetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-