Class CfnAlarm.EvaluationWindowProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAlarm.EvaluationWindowProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarm.EvaluationWindowProperty>
- Enclosing interface:
CfnAlarm.EvaluationWindowProperty
@Stability(Stable)
public static final class CfnAlarm.EvaluationWindowProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarm.EvaluationWindowProperty>
A builder for
CfnAlarm.EvaluationWindowProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.slidingWindow(Object slidingWindow) Sets the value ofCfnAlarm.EvaluationWindowProperty.getSlidingWindow()wallClockWindow(IResolvable wallClockWindow) Sets the value ofCfnAlarm.EvaluationWindowProperty.getWallClockWindow()wallClockWindow(CfnAlarm.WallClockWindowProperty wallClockWindow) Sets the value ofCfnAlarm.EvaluationWindowProperty.getWallClockWindow()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
slidingWindow
@Stability(Stable) public CfnAlarm.EvaluationWindowProperty.Builder slidingWindow(Object slidingWindow) Sets the value ofCfnAlarm.EvaluationWindowProperty.getSlidingWindow()- Parameters:
slidingWindow- Configuration for sliding evaluation window (default behavior).- Returns:
this
-
wallClockWindow
@Stability(Stable) public CfnAlarm.EvaluationWindowProperty.Builder wallClockWindow(IResolvable wallClockWindow) Sets the value ofCfnAlarm.EvaluationWindowProperty.getWallClockWindow()- Parameters:
wallClockWindow- the value to be set.- Returns:
this
-
wallClockWindow
@Stability(Stable) public CfnAlarm.EvaluationWindowProperty.Builder wallClockWindow(CfnAlarm.WallClockWindowProperty wallClockWindow) Sets the value ofCfnAlarm.EvaluationWindowProperty.getWallClockWindow()- Parameters:
wallClockWindow- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarm.EvaluationWindowProperty>- Returns:
- a new instance of
CfnAlarm.EvaluationWindowProperty - Throws:
NullPointerException- if any required attribute was not provided
-