Class CfnSecurityProfile.MetricToRetainProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnSecurityProfile.MetricToRetainProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfile.MetricToRetainProperty>
- Enclosing interface:
- CfnSecurityProfile.MetricToRetainProperty
@Stability(Stable)
public static final class CfnSecurityProfile.MetricToRetainProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfile.MetricToRetainProperty>
A builder for
CfnSecurityProfile.MetricToRetainProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getMetric()
metricDimension
(IResolvable metricDimension) Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getMetricDimension()
metricDimension
(CfnSecurityProfile.MetricDimensionProperty metricDimension) Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getMetricDimension()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metric
Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getMetric()
- Parameters:
metric
- A standard of measurement. This parameter is required.- Returns:
this
-
metricDimension
@Stability(Stable) public CfnSecurityProfile.MetricToRetainProperty.Builder metricDimension(IResolvable metricDimension) Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getMetricDimension()
- Parameters:
metricDimension
- The dimension of the metric.- Returns:
this
-
metricDimension
@Stability(Stable) public CfnSecurityProfile.MetricToRetainProperty.Builder metricDimension(CfnSecurityProfile.MetricDimensionProperty metricDimension) Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getMetricDimension()
- Parameters:
metricDimension
- The dimension of the metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityProfile.MetricToRetainProperty>
- Returns:
- a new instance of
CfnSecurityProfile.MetricToRetainProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-