Class Duration.Builder

  • Enclosing class:
    Duration

    public static class Duration.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • timeAmount

        public Duration.Builder timeAmount​(Long timeAmount)
        The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object’s Last-Modified timestamp.
        Parameters:
        timeAmount - the value to set
        Returns:
        this builder
      • timeUnit

        public Duration.Builder timeUnit​(Duration.TimeUnit timeUnit)
        The unit that should be used to interpret timeAmount.
        Parameters:
        timeUnit - the value to set
        Returns:
        this builder