Class CfnAlarm.WallClockWindowProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAlarm.WallClockWindowProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarm.WallClockWindowProperty>
- Enclosing interface:
CfnAlarm.WallClockWindowProperty
@Stability(Stable)
public static final class CfnAlarm.WallClockWindowProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarm.WallClockWindowProperty>
A builder for
CfnAlarm.WallClockWindowProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAlarm.WallClockWindowProperty.getTimezone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
timezone
Sets the value ofCfnAlarm.WallClockWindowProperty.getTimezone()- Parameters:
timezone- The time zone to use when the alarm aligns the evaluation window to clock boundaries. You can specify an IANA time zone name (for example,America/New_York), a fixed UTC offset (for example,+05:30), or an offset-prefixed identifier (for example,UTC+05:30). The offset must be aligned to a multiple of 5 minutes. If you don't specify a time zone, CloudWatch usesUTC. The time zone affects window alignment for all periods, including periods of one hour or shorter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarm.WallClockWindowProperty>- Returns:
- a new instance of
CfnAlarm.WallClockWindowProperty - Throws:
NullPointerException- if any required attribute was not provided
-