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