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