Class CfnSecurityProfilePropsMixin.BehaviorProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnSecurityProfilePropsMixin.BehaviorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfilePropsMixin.BehaviorProperty>
- Enclosing interface:
CfnSecurityProfilePropsMixin.BehaviorProperty
@Stability(Stable)
public static final class CfnSecurityProfilePropsMixin.BehaviorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfilePropsMixin.BehaviorProperty>
A builder for
CfnSecurityProfilePropsMixin.BehaviorProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getCriteria()criteria(IResolvable criteria) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getCriteria()exportMetric(Boolean exportMetric) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getExportMetric()exportMetric(IResolvable exportMetric) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getExportMetric()Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getMetric()metricDimension(CfnSecurityProfilePropsMixin.MetricDimensionProperty metricDimension) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getMetricDimension()metricDimension(IResolvable metricDimension) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getMetricDimension()Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getName()suppressAlerts(Boolean suppressAlerts) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getSuppressAlerts()suppressAlerts(IResolvable suppressAlerts) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getSuppressAlerts()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
criteria
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorProperty.Builder criteria(IResolvable criteria) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getCriteria()- Parameters:
criteria- The criteria that determine if a device is behaving normally in regard to themetric.In the AWS IoT console, you can choose to be sent an alert through Amazon SNS when AWS IoT Device Defender detects that a device is behaving anomalously.
- Returns:
this
-
criteria
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorProperty.Builder criteria(CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty criteria) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getCriteria()- Parameters:
criteria- The criteria that determine if a device is behaving normally in regard to themetric.In the AWS IoT console, you can choose to be sent an alert through Amazon SNS when AWS IoT Device Defender detects that a device is behaving anomalously.
- Returns:
this
-
exportMetric
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorProperty.Builder exportMetric(Boolean exportMetric) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getExportMetric()- Parameters:
exportMetric- Value indicates exporting metrics related to the behavior when it is true.- Returns:
this
-
exportMetric
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorProperty.Builder exportMetric(IResolvable exportMetric) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getExportMetric()- Parameters:
exportMetric- Value indicates exporting metrics related to the behavior when it is true.- Returns:
this
-
metric
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorProperty.Builder metric(String metric) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getMetric()- Parameters:
metric- What is measured by the behavior.- Returns:
this
-
metricDimension
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorProperty.Builder metricDimension(IResolvable metricDimension) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getMetricDimension()- Parameters:
metricDimension- The dimension of the metric.- Returns:
this
-
metricDimension
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorProperty.Builder metricDimension(CfnSecurityProfilePropsMixin.MetricDimensionProperty metricDimension) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getMetricDimension()- Parameters:
metricDimension- The dimension of the metric.- Returns:
this
-
name
Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getName()- Parameters:
name- The name you've given to the behavior.- Returns:
this
-
suppressAlerts
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorProperty.Builder suppressAlerts(Boolean suppressAlerts) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorProperty.getSuppressAlerts()- Parameters:
suppressAlerts- The alert status. If you set the value totrue, alerts will be suppressed.- Returns:
this
-
suppressAlerts
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorProperty.Builder suppressAlerts(IResolvable suppressAlerts) Sets the value ofCfnSecurityProfilePropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityProfilePropsMixin.BehaviorProperty>- Returns:
- a new instance of
CfnSecurityProfilePropsMixin.BehaviorProperty - Throws:
NullPointerException- if any required attribute was not provided
-