Class CfnInstanceEventWindowMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnInstanceEventWindowMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceEventWindowMixinProps>
- Enclosing interface:
CfnInstanceEventWindowMixinProps
@Stability(Stable)
public static final class CfnInstanceEventWindowMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceEventWindowMixinProps>
A builder for
CfnInstanceEventWindowMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cronExpression(String cronExpression) Sets the value ofCfnInstanceEventWindowMixinProps.getCronExpression()Sets the value ofCfnInstanceEventWindowMixinProps.getName()Sets the value ofCfnInstanceEventWindowMixinProps.getTags()timeRanges(List<? extends Object> timeRanges) Sets the value ofCfnInstanceEventWindowMixinProps.getTimeRanges()timeRanges(IResolvable timeRanges) Sets the value ofCfnInstanceEventWindowMixinProps.getTimeRanges()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cronExpression
@Stability(Stable) public CfnInstanceEventWindowMixinProps.Builder cronExpression(String cronExpression) Sets the value ofCfnInstanceEventWindowMixinProps.getCronExpression()- Parameters:
cronExpression- The cron expression defined for the event window. Exactly one of TimeRanges or CronExpression must be specified.- Returns:
this
-
name
Sets the value ofCfnInstanceEventWindowMixinProps.getName()- Parameters:
name- The name of the event window.- Returns:
this
-
tags
@Stability(Stable) public CfnInstanceEventWindowMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnInstanceEventWindowMixinProps.getTags()- Parameters:
tags- The tags applied to the event window.- Returns:
this
-
timeRanges
@Stability(Stable) public CfnInstanceEventWindowMixinProps.Builder timeRanges(IResolvable timeRanges) Sets the value ofCfnInstanceEventWindowMixinProps.getTimeRanges()- Parameters:
timeRanges- The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.- Returns:
this
-
timeRanges
@Stability(Stable) public CfnInstanceEventWindowMixinProps.Builder timeRanges(List<? extends Object> timeRanges) Sets the value ofCfnInstanceEventWindowMixinProps.getTimeRanges()- Parameters:
timeRanges- The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceEventWindowMixinProps>- Returns:
- a new instance of
CfnInstanceEventWindowMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-