Class CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder
java.lang.Object
software.amazon.awscdk.services.odb.CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCloudAutonomousVmCluster.MaintenanceWindowProperty>
- Enclosing interface:
CfnCloudAutonomousVmCluster.MaintenanceWindowProperty
@Stability(Stable)
public static final class CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCloudAutonomousVmCluster.MaintenanceWindowProperty>
A builder for
CfnCloudAutonomousVmCluster.MaintenanceWindowProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.daysOfWeek(List<String> daysOfWeek) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getDaysOfWeek()hoursOfDay(List<? extends Number> hoursOfDay) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getHoursOfDay()hoursOfDay(IResolvable hoursOfDay) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getHoursOfDay()leadTimeInWeeks(Number leadTimeInWeeks) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getMonths()preference(String preference) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getPreference()weeksOfMonth(List<? extends Number> weeksOfMonth) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getWeeksOfMonth()weeksOfMonth(IResolvable weeksOfMonth) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getWeeksOfMonth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
daysOfWeek
@Stability(Stable) public CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder daysOfWeek(List<String> daysOfWeek) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getDaysOfWeek()- Parameters:
daysOfWeek- The days of the week when maintenance can be performed.- Returns:
this
-
hoursOfDay
@Stability(Stable) public CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder hoursOfDay(List<? extends Number> hoursOfDay) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getHoursOfDay()- Parameters:
hoursOfDay- The hours of the day when maintenance can be performed.- Returns:
this
-
hoursOfDay
@Stability(Stable) public CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder hoursOfDay(IResolvable hoursOfDay) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getHoursOfDay()- Parameters:
hoursOfDay- The hours of the day when maintenance can be performed.- Returns:
this
-
leadTimeInWeeks
@Stability(Stable) public CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder leadTimeInWeeks(Number leadTimeInWeeks) - Parameters:
leadTimeInWeeks- The lead time in weeks before the maintenance window.- Returns:
this
-
months
@Stability(Stable) public CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder months(List<String> months) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getMonths()- Parameters:
months- The months when maintenance can be performed.- Returns:
this
-
preference
@Stability(Stable) public CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder preference(String preference) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getPreference()- Parameters:
preference- The preference for the maintenance window scheduling.- Returns:
this
-
weeksOfMonth
@Stability(Stable) public CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder weeksOfMonth(List<? extends Number> weeksOfMonth) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getWeeksOfMonth()- Parameters:
weeksOfMonth- The weeks of the month when maintenance can be performed.- Returns:
this
-
weeksOfMonth
@Stability(Stable) public CfnCloudAutonomousVmCluster.MaintenanceWindowProperty.Builder weeksOfMonth(IResolvable weeksOfMonth) Sets the value ofCfnCloudAutonomousVmCluster.MaintenanceWindowProperty.getWeeksOfMonth()- Parameters:
weeksOfMonth- The weeks of the month when maintenance can be performed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCloudAutonomousVmCluster.MaintenanceWindowProperty>- Returns:
- a new instance of
CfnCloudAutonomousVmCluster.MaintenanceWindowProperty - Throws:
NullPointerException- if any required attribute was not provided
-