Class CfnEnvironment.MaintenanceWindowProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesthinclient.CfnEnvironment.MaintenanceWindowProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironment.MaintenanceWindowProperty>
- Enclosing interface:
CfnEnvironment.MaintenanceWindowProperty
@Stability(Stable)
public static final class CfnEnvironment.MaintenanceWindowProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironment.MaintenanceWindowProperty>
A builder for
CfnEnvironment.MaintenanceWindowProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyTimeOf(String applyTimeOf) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getApplyTimeOf()build()Builds the configured instance.daysOfTheWeek(List<String> daysOfTheWeek) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getDaysOfTheWeek()endTimeHour(Number endTimeHour) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getEndTimeHour()endTimeMinute(Number endTimeMinute) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getEndTimeMinute()startTimeHour(Number startTimeHour) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getStartTimeHour()startTimeMinute(Number startTimeMinute) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getStartTimeMinute()Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getType()- Parameters:
type- An option to select the default or custom maintenance window. This parameter is required.- Returns:
this
-
applyTimeOf
@Stability(Stable) public CfnEnvironment.MaintenanceWindowProperty.Builder applyTimeOf(String applyTimeOf) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getApplyTimeOf()- Parameters:
applyTimeOf- The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).- Returns:
this
-
daysOfTheWeek
@Stability(Stable) public CfnEnvironment.MaintenanceWindowProperty.Builder daysOfTheWeek(List<String> daysOfTheWeek) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getDaysOfTheWeek()- Parameters:
daysOfTheWeek- The days of the week during which the maintenance window is open.- Returns:
this
-
endTimeHour
@Stability(Stable) public CfnEnvironment.MaintenanceWindowProperty.Builder endTimeHour(Number endTimeHour) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getEndTimeHour()- Parameters:
endTimeHour- The hour for the maintenance window end (00-23).- Returns:
this
-
endTimeMinute
@Stability(Stable) public CfnEnvironment.MaintenanceWindowProperty.Builder endTimeMinute(Number endTimeMinute) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getEndTimeMinute()- Parameters:
endTimeMinute- The minutes for the maintenance window end (00-59).- Returns:
this
-
startTimeHour
@Stability(Stable) public CfnEnvironment.MaintenanceWindowProperty.Builder startTimeHour(Number startTimeHour) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getStartTimeHour()- Parameters:
startTimeHour- The hour for the maintenance window start (00-23).- Returns:
this
-
startTimeMinute
@Stability(Stable) public CfnEnvironment.MaintenanceWindowProperty.Builder startTimeMinute(Number startTimeMinute) Sets the value ofCfnEnvironment.MaintenanceWindowProperty.getStartTimeMinute()- Parameters:
startTimeMinute- The minutes past the hour for the maintenance window start (00-59).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnvironment.MaintenanceWindowProperty>- Returns:
- a new instance of
CfnEnvironment.MaintenanceWindowProperty - Throws:
NullPointerException- if any required attribute was not provided
-