Class MonitoringMetric.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.alpha.MonitoringMetric.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringMetric>
- Enclosing interface:
MonitoringMetric
@Stability(Experimental)
public static final class MonitoringMetric.Builder
extends Object
implements software.amazon.jsii.Builder<MonitoringMetric>
A builder for
MonitoringMetric-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofMonitoringMetric.getState()Sets the value ofMonitoringMetric.getThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
state
Sets the value ofMonitoringMetric.getState()- Parameters:
state- Whether the metric is enabled or disabled. This parameter is required. The threshold is persisted by the service either way, so you can toggle the metric on and off without losing the threshold value.- Returns:
this
-
threshold
Sets the value ofMonitoringMetric.getThreshold()- Parameters:
threshold- Threshold in seconds that triggers the metric's alert. This parameter is required. Valid range: 10–60 seconds.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringMetric>- Returns:
- a new instance of
MonitoringMetric - Throws:
NullPointerException- if any required attribute was not provided
-