Class CfnInstanceEventWindow.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnInstanceEventWindow.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceEventWindow>
- Enclosing class:
CfnInstanceEventWindow
@Stability(Stable)
public static final class CfnInstanceEventWindow.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceEventWindow>
A fluent builder for
CfnInstanceEventWindow.-
Method Summary
Modifier and TypeMethodDescriptionbuild()cronExpression(String cronExpression) The cron expression defined for the event window.The name of the event window.The tags applied to the event window.timeRanges(List<? extends Object> timeRanges) The time ranges of the event window.timeRanges(IResolvable timeRanges) The time ranges of the event window.
-
Method Details
-
create
@Stability(Stable) public static CfnInstanceEventWindow.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnInstanceEventWindow.Builder.
-
cronExpression
The cron expression defined for the event window.Exactly one of TimeRanges or CronExpression must be specified.
- Parameters:
cronExpression- The cron expression defined for the event window. This parameter is required.- Returns:
this- See Also:
-
name
The name of the event window.- Parameters:
name- The name of the event window. This parameter is required.- Returns:
this- See Also:
-
tags
The tags applied to the event window.- Parameters:
tags- The tags applied to the event window. This parameter is required.- Returns:
this- See Also:
-
timeRanges
The time ranges of the event window.Exactly one of TimeRanges or CronExpression must be specified.
- Parameters:
timeRanges- The time ranges of the event window. This parameter is required.- Returns:
this- See Also:
-
timeRanges
@Stability(Stable) public CfnInstanceEventWindow.Builder timeRanges(List<? extends Object> timeRanges) The time ranges of the event window.Exactly one of TimeRanges or CronExpression must be specified.
- Parameters:
timeRanges- The time ranges of the event window. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceEventWindow>- Returns:
- a newly built instance of
CfnInstanceEventWindow.
-