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 Details

    • Builder

      public Builder()
  • Method Details

    • state

      @Stability(Experimental) public MonitoringMetric.Builder state(State state)
      Sets the value of MonitoringMetric.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

      @Stability(Experimental) public MonitoringMetric.Builder threshold(Duration threshold)
      Parameters:
      threshold - Threshold in seconds that triggers the metric's alert. This parameter is required. Valid range: 10–60 seconds.
      Returns:
      this
    • build

      @Stability(Experimental) public MonitoringMetric build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<MonitoringMetric>
      Returns:
      a new instance of MonitoringMetric
      Throws:
      NullPointerException - if any required attribute was not provided