Class CfnService.MetricConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.MetricConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.MetricConfigurationProperty>
- Enclosing interface:
CfnService.MetricConfigurationProperty
@Stability(Stable)
public static final class CfnService.MetricConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.MetricConfigurationProperty>
A builder for
CfnService.MetricConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricNames(List<String> metricNames) Sets the value ofCfnService.MetricConfigurationProperty.getMetricNames()resolutionSeconds(Number resolutionSeconds) Sets the value ofCfnService.MetricConfigurationProperty.getResolutionSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricNames
@Stability(Stable) public CfnService.MetricConfigurationProperty.Builder metricNames(List<String> metricNames) Sets the value ofCfnService.MetricConfigurationProperty.getMetricNames()- Parameters:
metricNames- the value to be set. This parameter is required.- Returns:
this
-
resolutionSeconds
@Stability(Stable) public CfnService.MetricConfigurationProperty.Builder resolutionSeconds(Number resolutionSeconds) Sets the value ofCfnService.MetricConfigurationProperty.getResolutionSeconds()- Parameters:
resolutionSeconds- the value to be set. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.MetricConfigurationProperty>- Returns:
- a new instance of
CfnService.MetricConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-