Class DayOfMonthScheduleBuilder

java.lang.Object
com.commercetools.api.models.recurrence_policy.DayOfMonthScheduleBuilder
All Implemented Interfaces:
Builder<DayOfMonthSchedule>

public class DayOfMonthScheduleBuilder extends Object implements Builder<DayOfMonthSchedule>
DayOfMonthScheduleBuilder
Example to create an instance using the builder pattern

     DayOfMonthSchedule dayOfMonthSchedule = DayOfMonthSchedule.builder()
             .day(1)
             .build()
 
  • 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

      public Integer 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

      public DayOfMonthSchedule build()
      builds DayOfMonthSchedule with checking for non-null required values
      Specified by:
      build in interface Builder<DayOfMonthSchedule>
      Returns:
      DayOfMonthSchedule
    • buildUnchecked

      public DayOfMonthSchedule buildUnchecked()
      builds DayOfMonthSchedule without checking for non-null required values
      Returns:
      DayOfMonthSchedule
    • of

      public static DayOfMonthScheduleBuilder of()
      factory method for an instance of DayOfMonthScheduleBuilder
      Returns:
      builder
    • of

      public static DayOfMonthScheduleBuilder of(DayOfMonthSchedule template)
      create builder for DayOfMonthSchedule instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder