Class AtLeastOptions.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.AtLeastOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AtLeastOptions>
- Enclosing interface:
AtLeastOptions
@Stability(Stable)
public static final class AtLeastOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AtLeastOptions>
A builder for
AtLeastOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAtLeastOptions.getOperands()threshold(AtLeastThreshold threshold) Sets the value ofAtLeastOptions.getThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
operands
Sets the value ofAtLeastOptions.getOperands()- Parameters:
operands- Alarms to evaluate in the AT_LEAST expression. This parameter is required. Must contain at least one alarm.- Returns:
this
-
threshold
Sets the value ofAtLeastOptions.getThreshold()- Parameters:
threshold- Threshold for the AT_LEAST expression. This parameter is required. UseAtLeastThreshold.count()for an absolute number orAtLeastThreshold.percentage()for a percentage.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AtLeastOptions>- Returns:
- a new instance of
AtLeastOptions - Throws:
NullPointerException- if any required attribute was not provided
-