Class CfnServicePropsMixin.MetricConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnServicePropsMixin.MetricConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.MetricConfigurationProperty>
- Enclosing interface:
CfnServicePropsMixin.MetricConfigurationProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.MetricConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.MetricConfigurationProperty>
A builder for
CfnServicePropsMixin.MetricConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricNames(List<String> metricNames) Sets the value ofCfnServicePropsMixin.MetricConfigurationProperty.getMetricNames()resolutionSeconds(Number resolutionSeconds) Sets the value ofCfnServicePropsMixin.MetricConfigurationProperty.getResolutionSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricNames
@Stability(Stable) public CfnServicePropsMixin.MetricConfigurationProperty.Builder metricNames(List<String> metricNames) Sets the value ofCfnServicePropsMixin.MetricConfigurationProperty.getMetricNames()- Parameters:
metricNames- The list of metric names to configure. The supported metric names areCPUUtilizationandMemoryUtilization.- Returns:
this
-
resolutionSeconds
@Stability(Stable) public CfnServicePropsMixin.MetricConfigurationProperty.Builder resolutionSeconds(Number resolutionSeconds) Sets the value ofCfnServicePropsMixin.MetricConfigurationProperty.getResolutionSeconds()- Parameters:
resolutionSeconds- The resolution, in seconds, at which to collect the metrics. The valid values are20and60.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.MetricConfigurationProperty>- Returns:
- a new instance of
CfnServicePropsMixin.MetricConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-