Class CfnSecurityProfilePropsMixin.MetricToRetainProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnSecurityProfilePropsMixin.MetricToRetainProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfilePropsMixin.MetricToRetainProperty>
- Enclosing interface:
CfnSecurityProfilePropsMixin.MetricToRetainProperty
@Stability(Stable)
public static final class CfnSecurityProfilePropsMixin.MetricToRetainProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfilePropsMixin.MetricToRetainProperty>
A builder for
CfnSecurityProfilePropsMixin.MetricToRetainProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.exportMetric(Boolean exportMetric) Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getExportMetric()exportMetric(IResolvable exportMetric) Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getExportMetric()Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getMetric()metricDimension(CfnSecurityProfilePropsMixin.MetricDimensionProperty metricDimension) Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getMetricDimension()metricDimension(IResolvable metricDimension) Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getMetricDimension()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exportMetric
@Stability(Stable) public CfnSecurityProfilePropsMixin.MetricToRetainProperty.Builder exportMetric(Boolean exportMetric) Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getExportMetric()- Parameters:
exportMetric- The value indicates exporting metrics related to theMetricToRetainwhen it's true.- Returns:
this
-
exportMetric
@Stability(Stable) public CfnSecurityProfilePropsMixin.MetricToRetainProperty.Builder exportMetric(IResolvable exportMetric) Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getExportMetric()- Parameters:
exportMetric- The value indicates exporting metrics related to theMetricToRetainwhen it's true.- Returns:
this
-
metric
@Stability(Stable) public CfnSecurityProfilePropsMixin.MetricToRetainProperty.Builder metric(String metric) Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getMetric()- Parameters:
metric- A standard of measurement.- Returns:
this
-
metricDimension
@Stability(Stable) public CfnSecurityProfilePropsMixin.MetricToRetainProperty.Builder metricDimension(IResolvable metricDimension) Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getMetricDimension()- Parameters:
metricDimension- The dimension of the metric.- Returns:
this
-
metricDimension
@Stability(Stable) public CfnSecurityProfilePropsMixin.MetricToRetainProperty.Builder metricDimension(CfnSecurityProfilePropsMixin.MetricDimensionProperty metricDimension) Sets the value ofCfnSecurityProfilePropsMixin.MetricToRetainProperty.getMetricDimension()- Parameters:
metricDimension- The dimension of the metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityProfilePropsMixin.MetricToRetainProperty>- Returns:
- a new instance of
CfnSecurityProfilePropsMixin.MetricToRetainProperty - Throws:
NullPointerException- if any required attribute was not provided
-