Class CfnInstanceEventWindowPropsMixin.TimeRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnInstanceEventWindowPropsMixin.TimeRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceEventWindowPropsMixin.TimeRangeProperty>
- Enclosing interface:
CfnInstanceEventWindowPropsMixin.TimeRangeProperty
@Stability(Stable)
public static final class CfnInstanceEventWindowPropsMixin.TimeRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceEventWindowPropsMixin.TimeRangeProperty>
A builder for
CfnInstanceEventWindowPropsMixin.TimeRangeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnInstanceEventWindowPropsMixin.TimeRangeProperty.getEndHour()endWeekDay(String endWeekDay) Sets the value ofCfnInstanceEventWindowPropsMixin.TimeRangeProperty.getEndWeekDay()Sets the value ofCfnInstanceEventWindowPropsMixin.TimeRangeProperty.getStartHour()startWeekDay(String startWeekDay) Sets the value ofCfnInstanceEventWindowPropsMixin.TimeRangeProperty.getStartWeekDay()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endHour
@Stability(Stable) public CfnInstanceEventWindowPropsMixin.TimeRangeProperty.Builder endHour(Number endHour) Sets the value ofCfnInstanceEventWindowPropsMixin.TimeRangeProperty.getEndHour()- Parameters:
endHour- The hour when the time range ends.- Returns:
this
-
endWeekDay
@Stability(Stable) public CfnInstanceEventWindowPropsMixin.TimeRangeProperty.Builder endWeekDay(String endWeekDay) Sets the value ofCfnInstanceEventWindowPropsMixin.TimeRangeProperty.getEndWeekDay()- Parameters:
endWeekDay- The day on which the time range ends.- Returns:
this
-
startHour
@Stability(Stable) public CfnInstanceEventWindowPropsMixin.TimeRangeProperty.Builder startHour(Number startHour) Sets the value ofCfnInstanceEventWindowPropsMixin.TimeRangeProperty.getStartHour()- Parameters:
startHour- The hour when the time range begins.- Returns:
this
-
startWeekDay
@Stability(Stable) public CfnInstanceEventWindowPropsMixin.TimeRangeProperty.Builder startWeekDay(String startWeekDay) Sets the value ofCfnInstanceEventWindowPropsMixin.TimeRangeProperty.getStartWeekDay()- Parameters:
startWeekDay- The day on which the time range begins.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceEventWindowPropsMixin.TimeRangeProperty>- Returns:
- a new instance of
CfnInstanceEventWindowPropsMixin.TimeRangeProperty - Throws:
NullPointerException- if any required attribute was not provided
-