Class CfnRotation.ShiftCoverageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ssmcontacts.CfnRotation.ShiftCoverageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRotation.ShiftCoverageProperty>
- Enclosing interface:
CfnRotation.ShiftCoverageProperty
@Stability(Stable)
public static final class CfnRotation.ShiftCoverageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRotation.ShiftCoverageProperty>
A builder for
CfnRotation.ShiftCoverageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.coverageTimes
(List<? extends Object> coverageTimes) Sets the value ofCfnRotation.ShiftCoverageProperty.getCoverageTimes()
coverageTimes
(IResolvable coverageTimes) Sets the value ofCfnRotation.ShiftCoverageProperty.getCoverageTimes()
Sets the value ofCfnRotation.ShiftCoverageProperty.getDayOfWeek()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coverageTimes
@Stability(Stable) public CfnRotation.ShiftCoverageProperty.Builder coverageTimes(IResolvable coverageTimes) Sets the value ofCfnRotation.ShiftCoverageProperty.getCoverageTimes()
- Parameters:
coverageTimes
- The start and end times of the shift. This parameter is required.- Returns:
this
-
coverageTimes
@Stability(Stable) public CfnRotation.ShiftCoverageProperty.Builder coverageTimes(List<? extends Object> coverageTimes) Sets the value ofCfnRotation.ShiftCoverageProperty.getCoverageTimes()
- Parameters:
coverageTimes
- The start and end times of the shift. This parameter is required.- Returns:
this
-
dayOfWeek
Sets the value ofCfnRotation.ShiftCoverageProperty.getDayOfWeek()
- Parameters:
dayOfWeek
- A list of days on which the schedule is active. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRotation.ShiftCoverageProperty>
- Returns:
- a new instance of
CfnRotation.ShiftCoverageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-