Class CfnMonitorPropsMixin.LocalHealthEventsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.internetmonitor.CfnMonitorPropsMixin.LocalHealthEventsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMonitorPropsMixin.LocalHealthEventsConfigProperty>
- Enclosing interface:
CfnMonitorPropsMixin.LocalHealthEventsConfigProperty
@Stability(Stable)
public static final class CfnMonitorPropsMixin.LocalHealthEventsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMonitorPropsMixin.LocalHealthEventsConfigProperty>
A builder for
CfnMonitorPropsMixin.LocalHealthEventsConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.healthScoreThreshold(Number healthScoreThreshold) minTrafficImpact(Number minTrafficImpact) Sets the value ofCfnMonitorPropsMixin.LocalHealthEventsConfigProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
healthScoreThreshold
@Stability(Stable) public CfnMonitorPropsMixin.LocalHealthEventsConfigProperty.Builder healthScoreThreshold(Number healthScoreThreshold) - Parameters:
healthScoreThreshold- The health event threshold percentage set for a local health score.- Returns:
this
-
minTrafficImpact
@Stability(Stable) public CfnMonitorPropsMixin.LocalHealthEventsConfigProperty.Builder minTrafficImpact(Number minTrafficImpact) - Parameters:
minTrafficImpact- The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score. If you don't set a minimum traffic impact threshold, the default value is 0.01%.- Returns:
this
-
status
@Stability(Stable) public CfnMonitorPropsMixin.LocalHealthEventsConfigProperty.Builder status(String status) Sets the value ofCfnMonitorPropsMixin.LocalHealthEventsConfigProperty.getStatus()- Parameters:
status- The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score. The status can beENABLEDorDISABLED.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMonitorPropsMixin.LocalHealthEventsConfigProperty>- Returns:
- a new instance of
CfnMonitorPropsMixin.LocalHealthEventsConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-