Class MetricRenderingProperties.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.MetricRenderingProperties.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetricRenderingProperties>
- Enclosing interface:
- MetricRenderingProperties
@Stability(Deprecated)
@Deprecated
public static final class MetricRenderingProperties.Builder
extends Object
implements software.amazon.jsii.Builder<MetricRenderingProperties>
Deprecated.
A builder for
MetricRenderingProperties-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
period
Deprecated.Sets the value ofMetricRenderingProperties.getPeriod()- Parameters:
period- How many seconds to aggregate over. This parameter is required.- Returns:
this
-
color
Deprecated.Sets the value ofMetricRenderingProperties.getColor()- Parameters:
color- The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. TheColorclass has a set of standard colors that can be used here.- Returns:
this
-
label
Deprecated.Sets the value ofMetricRenderingProperties.getLabel()- Parameters:
label- Label for the metric.- Returns:
this
-
stat
Deprecated.Sets the value ofMetricRenderingProperties.getStat()- Parameters:
stat- Aggregation function to use (can be either simple or a percentile).- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MetricRenderingProperties>- Returns:
- a new instance of
MetricRenderingProperties - Throws:
NullPointerException- if any required attribute was not provided
-