Class CfnSecurityProfile.BehaviorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnSecurityProfile.BehaviorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfile.BehaviorProperty>
- Enclosing interface:
CfnSecurityProfile.BehaviorProperty
@Stability(Stable)
public static final class CfnSecurityProfile.BehaviorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfile.BehaviorProperty>
A builder for
CfnSecurityProfile.BehaviorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.criteria
(IResolvable criteria) Sets the value ofCfnSecurityProfile.BehaviorProperty.getCriteria()
Sets the value ofCfnSecurityProfile.BehaviorProperty.getCriteria()
Sets the value ofCfnSecurityProfile.BehaviorProperty.getMetric()
metricDimension
(IResolvable metricDimension) Sets the value ofCfnSecurityProfile.BehaviorProperty.getMetricDimension()
metricDimension
(CfnSecurityProfile.MetricDimensionProperty metricDimension) Sets the value ofCfnSecurityProfile.BehaviorProperty.getMetricDimension()
Sets the value ofCfnSecurityProfile.BehaviorProperty.getName()
suppressAlerts
(Boolean suppressAlerts) Sets the value ofCfnSecurityProfile.BehaviorProperty.getSuppressAlerts()
suppressAlerts
(IResolvable suppressAlerts) Sets the value ofCfnSecurityProfile.BehaviorProperty.getSuppressAlerts()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSecurityProfile.BehaviorProperty.getName()
- Parameters:
name
- The name you've given to the behavior. This parameter is required.- Returns:
this
-
criteria
@Stability(Stable) public CfnSecurityProfile.BehaviorProperty.Builder criteria(IResolvable criteria) Sets the value ofCfnSecurityProfile.BehaviorProperty.getCriteria()
- Parameters:
criteria
- The criteria that determine if a device is behaving normally in regard to themetric
.- Returns:
this
-
criteria
@Stability(Stable) public CfnSecurityProfile.BehaviorProperty.Builder criteria(CfnSecurityProfile.BehaviorCriteriaProperty criteria) Sets the value ofCfnSecurityProfile.BehaviorProperty.getCriteria()
- Parameters:
criteria
- The criteria that determine if a device is behaving normally in regard to themetric
.- Returns:
this
-
metric
Sets the value ofCfnSecurityProfile.BehaviorProperty.getMetric()
- Parameters:
metric
- What is measured by the behavior.- Returns:
this
-
metricDimension
@Stability(Stable) public CfnSecurityProfile.BehaviorProperty.Builder metricDimension(IResolvable metricDimension) Sets the value ofCfnSecurityProfile.BehaviorProperty.getMetricDimension()
- Parameters:
metricDimension
- The dimension of the metric.- Returns:
this
-
metricDimension
@Stability(Stable) public CfnSecurityProfile.BehaviorProperty.Builder metricDimension(CfnSecurityProfile.MetricDimensionProperty metricDimension) Sets the value ofCfnSecurityProfile.BehaviorProperty.getMetricDimension()
- Parameters:
metricDimension
- The dimension of the metric.- Returns:
this
-
suppressAlerts
@Stability(Stable) public CfnSecurityProfile.BehaviorProperty.Builder suppressAlerts(Boolean suppressAlerts) Sets the value ofCfnSecurityProfile.BehaviorProperty.getSuppressAlerts()
- Parameters:
suppressAlerts
- The alert status. If you set the value totrue
, alerts will be suppressed.- Returns:
this
-
suppressAlerts
@Stability(Stable) public CfnSecurityProfile.BehaviorProperty.Builder suppressAlerts(IResolvable suppressAlerts) Sets the value ofCfnSecurityProfile.BehaviorProperty.getSuppressAlerts()
- Parameters:
suppressAlerts
- The alert status. If you set the value totrue
, alerts will be suppressed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityProfile.BehaviorProperty>
- Returns:
- a new instance of
CfnSecurityProfile.BehaviorProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-