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

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

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

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

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

      public static DayOfMonthScheduleDraftBuilder 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