Class DayOfMonthScheduleBuilder
java.lang.Object
com.commercetools.api.models.recurrence_policy.DayOfMonthScheduleBuilder
- All Implemented Interfaces:
Builder<DayOfMonthSchedule>
DayOfMonthScheduleBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DayOfMonthSchedule dayOfMonthSchedule = DayOfMonthSchedule.builder()
.day(1)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DayOfMonthSchedule with checking for non-null required valuesbuilds DayOfMonthSchedule without checking for non-null required valuesThe day of the month when the Recurring Order is created.getDay()
The day of the month when the Recurring Order is created.static DayOfMonthScheduleBuilder
of()
factory method for an instance of DayOfMonthScheduleBuilderstatic DayOfMonthScheduleBuilder
of
(DayOfMonthSchedule template) create builder for DayOfMonthSchedule instance
-
Constructor Details
-
DayOfMonthScheduleBuilder
public DayOfMonthScheduleBuilder()
-
-
Method Details
-
day
The day of the month when the Recurring Order is created. If the value is greater than the number of days in a given month, the order is created on the last day of the month.
- Parameters:
day
- value to be set- Returns:
- Builder
-
getDay
The day of the month when the Recurring Order is created. If the value is greater than the number of days in a given month, the order is created on the last day of the month.
- Returns:
- day
-
build
builds DayOfMonthSchedule with checking for non-null required values- Specified by:
build
in interfaceBuilder<DayOfMonthSchedule>
- Returns:
- DayOfMonthSchedule
-
buildUnchecked
builds DayOfMonthSchedule without checking for non-null required values- Returns:
- DayOfMonthSchedule
-
of
factory method for an instance of DayOfMonthScheduleBuilder- Returns:
- builder
-
of
create builder for DayOfMonthSchedule instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-