Class CfnMonitor.HealthEventsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.internetmonitor.CfnMonitor.HealthEventsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMonitor.HealthEventsConfigProperty>
- Enclosing interface:
CfnMonitor.HealthEventsConfigProperty
@Stability(Stable)
public static final class CfnMonitor.HealthEventsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMonitor.HealthEventsConfigProperty>
A builder for
CfnMonitor.HealthEventsConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityLocalHealthEventsConfig(IResolvable availabilityLocalHealthEventsConfig) availabilityLocalHealthEventsConfig(CfnMonitor.LocalHealthEventsConfigProperty availabilityLocalHealthEventsConfig) availabilityScoreThreshold(Number availabilityScoreThreshold) Sets the value ofCfnMonitor.HealthEventsConfigProperty.getAvailabilityScoreThreshold()build()Builds the configured instance.performanceLocalHealthEventsConfig(IResolvable performanceLocalHealthEventsConfig) performanceLocalHealthEventsConfig(CfnMonitor.LocalHealthEventsConfigProperty performanceLocalHealthEventsConfig) performanceScoreThreshold(Number performanceScoreThreshold) Sets the value ofCfnMonitor.HealthEventsConfigProperty.getPerformanceScoreThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityLocalHealthEventsConfig
@Stability(Stable) public CfnMonitor.HealthEventsConfigProperty.Builder availabilityLocalHealthEventsConfig(IResolvable availabilityLocalHealthEventsConfig) - Parameters:
availabilityLocalHealthEventsConfig- The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local availability issue.- Returns:
this
-
availabilityLocalHealthEventsConfig
@Stability(Stable) public CfnMonitor.HealthEventsConfigProperty.Builder availabilityLocalHealthEventsConfig(CfnMonitor.LocalHealthEventsConfigProperty availabilityLocalHealthEventsConfig) - Parameters:
availabilityLocalHealthEventsConfig- The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local availability issue.- Returns:
this
-
availabilityScoreThreshold
@Stability(Stable) public CfnMonitor.HealthEventsConfigProperty.Builder availabilityScoreThreshold(Number availabilityScoreThreshold) Sets the value ofCfnMonitor.HealthEventsConfigProperty.getAvailabilityScoreThreshold()- Parameters:
availabilityScoreThreshold- The health event threshold percentage set for availability scores. When the overall availability score is at or below this percentage, Internet Monitor creates a health event.- Returns:
this
-
performanceLocalHealthEventsConfig
@Stability(Stable) public CfnMonitor.HealthEventsConfigProperty.Builder performanceLocalHealthEventsConfig(IResolvable performanceLocalHealthEventsConfig) - Parameters:
performanceLocalHealthEventsConfig- The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance issue.- Returns:
this
-
performanceLocalHealthEventsConfig
@Stability(Stable) public CfnMonitor.HealthEventsConfigProperty.Builder performanceLocalHealthEventsConfig(CfnMonitor.LocalHealthEventsConfigProperty performanceLocalHealthEventsConfig) - Parameters:
performanceLocalHealthEventsConfig- The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance issue.- Returns:
this
-
performanceScoreThreshold
@Stability(Stable) public CfnMonitor.HealthEventsConfigProperty.Builder performanceScoreThreshold(Number performanceScoreThreshold) Sets the value ofCfnMonitor.HealthEventsConfigProperty.getPerformanceScoreThreshold()- Parameters:
performanceScoreThreshold- The health event threshold percentage set for performance scores. When the overall performance score is at or below this percentage, Internet Monitor creates a health event.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMonitor.HealthEventsConfigProperty>- Returns:
- a new instance of
CfnMonitor.HealthEventsConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-