Class CfnHoursOfOperation.RecurrencePatternProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnHoursOfOperation.RecurrencePatternProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHoursOfOperation.RecurrencePatternProperty>
- Enclosing interface:
CfnHoursOfOperation.RecurrencePatternProperty
@Stability(Stable)
public static final class CfnHoursOfOperation.RecurrencePatternProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHoursOfOperation.RecurrencePatternProperty>
A builder for
CfnHoursOfOperation.RecurrencePatternProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByMonth()byMonth(IResolvable byMonth) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByMonth()byMonthDay(List<? extends Number> byMonthDay) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByMonthDay()byMonthDay(IResolvable byMonthDay) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByMonthDay()byWeekdayOccurrence(List<? extends Number> byWeekdayOccurrence) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByWeekdayOccurrence()byWeekdayOccurrence(IResolvable byWeekdayOccurrence) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByWeekdayOccurrence()Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getFrequency()Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getInterval()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
byMonth
@Stability(Stable) public CfnHoursOfOperation.RecurrencePatternProperty.Builder byMonth(List<? extends Number> byMonth) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByMonth()- Parameters:
byMonth- List of months (1-12) for recurrence pattern.- Returns:
this
-
byMonth
@Stability(Stable) public CfnHoursOfOperation.RecurrencePatternProperty.Builder byMonth(IResolvable byMonth) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByMonth()- Parameters:
byMonth- List of months (1-12) for recurrence pattern.- Returns:
this
-
byMonthDay
@Stability(Stable) public CfnHoursOfOperation.RecurrencePatternProperty.Builder byMonthDay(List<? extends Number> byMonthDay) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByMonthDay()- Parameters:
byMonthDay- List of month days (-1 to 31) for recurrence pattern.- Returns:
this
-
byMonthDay
@Stability(Stable) public CfnHoursOfOperation.RecurrencePatternProperty.Builder byMonthDay(IResolvable byMonthDay) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByMonthDay()- Parameters:
byMonthDay- List of month days (-1 to 31) for recurrence pattern.- Returns:
this
-
byWeekdayOccurrence
@Stability(Stable) public CfnHoursOfOperation.RecurrencePatternProperty.Builder byWeekdayOccurrence(List<? extends Number> byWeekdayOccurrence) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByWeekdayOccurrence()- Parameters:
byWeekdayOccurrence- the value to be set.- Returns:
this
-
byWeekdayOccurrence
@Stability(Stable) public CfnHoursOfOperation.RecurrencePatternProperty.Builder byWeekdayOccurrence(IResolvable byWeekdayOccurrence) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getByWeekdayOccurrence()- Parameters:
byWeekdayOccurrence- the value to be set.- Returns:
this
-
frequency
@Stability(Stable) public CfnHoursOfOperation.RecurrencePatternProperty.Builder frequency(String frequency) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getFrequency()- Parameters:
frequency- The frequency of recurrence for hours of operation overrides.- Returns:
this
-
interval
@Stability(Stable) public CfnHoursOfOperation.RecurrencePatternProperty.Builder interval(Number interval) Sets the value ofCfnHoursOfOperation.RecurrencePatternProperty.getInterval()- Parameters:
interval- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHoursOfOperation.RecurrencePatternProperty>- Returns:
- a new instance of
CfnHoursOfOperation.RecurrencePatternProperty - Throws:
NullPointerException- if any required attribute was not provided
-