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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.exportMetric(Boolean exportMetric) Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getExportMetric()exportMetric(IResolvable exportMetric) Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getExportMetric()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
-
exportMetric
@Stability(Stable) public CfnSecurityProfile.MetricToRetainProperty.Builder exportMetric(Boolean exportMetric) Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getExportMetric()- Parameters:
exportMetric- The value indicates exporting metrics related to theMetricToRetainwhen it's true.- Returns:
this
-
exportMetric
@Stability(Stable) public CfnSecurityProfile.MetricToRetainProperty.Builder exportMetric(IResolvable exportMetric) Sets the value ofCfnSecurityProfile.MetricToRetainProperty.getExportMetric()- Parameters:
exportMetric- The value indicates exporting metrics related to theMetricToRetainwhen it's true.- 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityProfile.MetricToRetainProperty>- Returns:
- a new instance of
CfnSecurityProfile.MetricToRetainProperty - Throws:
NullPointerException- if any required attribute was not provided
-