Class CfnRotation.RecurrenceSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ssmcontacts.CfnRotation.RecurrenceSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRotation.RecurrenceSettingsProperty>
- Enclosing interface:
- CfnRotation.RecurrenceSettingsProperty
@Stability(Stable)
public static final class CfnRotation.RecurrenceSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRotation.RecurrenceSettingsProperty>
A builder for
CfnRotation.RecurrenceSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dailySettings(List<String> dailySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getDailySettings()monthlySettings(List<? extends Object> monthlySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getMonthlySettings()monthlySettings(IResolvable monthlySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getMonthlySettings()numberOfOnCalls(Number numberOfOnCalls) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getNumberOfOnCalls()recurrenceMultiplier(Number recurrenceMultiplier) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getRecurrenceMultiplier()shiftCoverages(List<? extends Object> shiftCoverages) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getShiftCoverages()shiftCoverages(IResolvable shiftCoverages) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getShiftCoverages()weeklySettings(List<? extends Object> weeklySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getWeeklySettings()weeklySettings(IResolvable weeklySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getWeeklySettings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numberOfOnCalls
@Stability(Stable) public CfnRotation.RecurrenceSettingsProperty.Builder numberOfOnCalls(Number numberOfOnCalls) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getNumberOfOnCalls()- Parameters:
numberOfOnCalls- The number of contacts, or shift team members designated to be on call concurrently during a shift. This parameter is required. For example, in an on-call schedule that contains ten contacts, a value of2designates that two of them are on call at any given time.- Returns:
this
-
recurrenceMultiplier
@Stability(Stable) public CfnRotation.RecurrenceSettingsProperty.Builder recurrenceMultiplier(Number recurrenceMultiplier) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getRecurrenceMultiplier()- Parameters:
recurrenceMultiplier- The number of days, weeks, or months a single rotation lasts. This parameter is required.- Returns:
this
-
dailySettings
@Stability(Stable) public CfnRotation.RecurrenceSettingsProperty.Builder dailySettings(List<String> dailySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getDailySettings()- Parameters:
dailySettings- Information about on-call rotations that recur daily.- Returns:
this
-
monthlySettings
@Stability(Stable) public CfnRotation.RecurrenceSettingsProperty.Builder monthlySettings(IResolvable monthlySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getMonthlySettings()- Parameters:
monthlySettings- Information about on-call rotations that recur monthly.- Returns:
this
-
monthlySettings
@Stability(Stable) public CfnRotation.RecurrenceSettingsProperty.Builder monthlySettings(List<? extends Object> monthlySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getMonthlySettings()- Parameters:
monthlySettings- Information about on-call rotations that recur monthly.- Returns:
this
-
shiftCoverages
@Stability(Stable) public CfnRotation.RecurrenceSettingsProperty.Builder shiftCoverages(IResolvable shiftCoverages) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getShiftCoverages()- Parameters:
shiftCoverages- Information about the days of the week included in on-call rotation coverage.- Returns:
this
-
shiftCoverages
@Stability(Stable) public CfnRotation.RecurrenceSettingsProperty.Builder shiftCoverages(List<? extends Object> shiftCoverages) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getShiftCoverages()- Parameters:
shiftCoverages- Information about the days of the week included in on-call rotation coverage.- Returns:
this
-
weeklySettings
@Stability(Stable) public CfnRotation.RecurrenceSettingsProperty.Builder weeklySettings(IResolvable weeklySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getWeeklySettings()- Parameters:
weeklySettings- Information about on-call rotations that recur weekly.- Returns:
this
-
weeklySettings
@Stability(Stable) public CfnRotation.RecurrenceSettingsProperty.Builder weeklySettings(List<? extends Object> weeklySettings) Sets the value ofCfnRotation.RecurrenceSettingsProperty.getWeeklySettings()- Parameters:
weeklySettings- Information about on-call rotations that recur weekly.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRotation.RecurrenceSettingsProperty>- Returns:
- a new instance of
CfnRotation.RecurrenceSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-