Interface DayOfMonth.Builder

  • Method Details

    • dayNumber

      DayOfMonth.Builder dayNumber(Integer dayNumber)

      A specific day of the month, from 1 to 28. Values are capped at 28, so a monthly sync runs in every month, including February.

      Parameters:
      dayNumber - A specific day of the month, from 1 to 28. Values are capped at 28, so a monthly sync runs in every month, including February.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastDayOfMonth

      DayOfMonth.Builder lastDayOfMonth(LastDayOfMonth lastDayOfMonth)

      Set this option to run the monthly sync on the last calendar day of each month.

      Parameters:
      lastDayOfMonth - Set this option to run the monthly sync on the last calendar day of each month.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastDayOfMonth

      default DayOfMonth.Builder lastDayOfMonth(Consumer<LastDayOfMonth.Builder> lastDayOfMonth)

      Set this option to run the monthly sync on the last calendar day of each month.

      This is a convenience method that creates an instance of the LastDayOfMonth.Builder avoiding the need to create one manually via LastDayOfMonth.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lastDayOfMonth(LastDayOfMonth).

      Parameters:
      lastDayOfMonth - a consumer that will call methods on LastDayOfMonth.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: