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