Class TimeRange.Builder

java.lang.Object
com.dropbox.core.v2.teamcommon.TimeRange.Builder
Enclosing class:
TimeRange

public static class TimeRange.Builder extends Object
Builder for TimeRange.
  • Field Details

    • startTime

      protected Date startTime
    • endTime

      protected Date endTime
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • withStartTime

      public TimeRange.Builder withStartTime(Date startTime)
      Set value for optional field.
      Parameters:
      startTime - Optional starting time (inclusive).
      Returns:
      this builder
    • withEndTime

      public TimeRange.Builder withEndTime(Date endTime)
      Set value for optional field.
      Parameters:
      endTime - Optional ending time (exclusive).
      Returns:
      this builder
    • build

      public TimeRange build()
      Builds an instance of TimeRange configured with this builder's values
      Returns:
      new instance of TimeRange