Class MetricGraphConfig.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.MetricGraphConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetricGraphConfig>
- Enclosing interface:
- MetricGraphConfig
@Stability(Deprecated)
@Deprecated
public static final class MetricGraphConfig.Builder
extends Object
implements software.amazon.jsii.Builder<MetricGraphConfig>
Deprecated.
A builder for
MetricGraphConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.Deprecated.Use `color` in `renderingProperties`dimensions
(List<? extends Dimension> dimensions) Deprecated.Deprecated.Use `label` in `renderingProperties`metricName
(String metricName) Deprecated.Deprecated.Deprecated.Use `period` in `renderingProperties`renderingProperties
(MetricRenderingProperties renderingProperties) Deprecated.Deprecated.Use `stat` in `renderingProperties`Deprecated.not used in dashboard widgets
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
metricName
Deprecated.Sets the value ofMetricGraphConfig.getMetricName()
- Parameters:
metricName
- Name of the metric. This parameter is required.- Returns:
this
-
namespace
Deprecated.Sets the value ofMetricGraphConfig.getNamespace()
- Parameters:
namespace
- Namespace of the metric. This parameter is required.- Returns:
this
-
period
Deprecated.Use `period` in `renderingProperties`Sets the value ofMetricGraphConfig.getPeriod()
- Parameters:
period
- How many seconds to aggregate over. This parameter is required.- Returns:
this
-
renderingProperties
@Stability(Deprecated) @Deprecated public MetricGraphConfig.Builder renderingProperties(MetricRenderingProperties renderingProperties) Deprecated.Sets the value ofMetricGraphConfig.getRenderingProperties()
- Parameters:
renderingProperties
- Rendering properties override yAxis parameter of the widget object. This parameter is required.- Returns:
this
-
color
Deprecated.Use `color` in `renderingProperties`Sets the value ofMetricGraphConfig.getColor()
- Parameters:
color
- Color for the graph line.- Returns:
this
-
dimensions
@Stability(Deprecated) @Deprecated public MetricGraphConfig.Builder dimensions(List<? extends Dimension> dimensions) Deprecated.Sets the value ofMetricGraphConfig.getDimensions()
- Parameters:
dimensions
- The dimensions to apply to the alarm.- Returns:
this
-
label
Deprecated.Use `label` in `renderingProperties`Sets the value ofMetricGraphConfig.getLabel()
- Parameters:
label
- Label for the metric.- Returns:
this
-
statistic
Deprecated.Use `stat` in `renderingProperties`Sets the value ofMetricGraphConfig.getStatistic()
- Parameters:
statistic
- Aggregation function to use (can be either simple or a percentile).- Returns:
this
-
unit
Deprecated.not used in dashboard widgetsSets the value ofMetricGraphConfig.getUnit()
- Parameters:
unit
- The unit of the alarm.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MetricGraphConfig>
- Returns:
- a new instance of
MetricGraphConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-