Interface Duration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Duration.Builder,Duration>, SdkBuilder<Duration.Builder,Duration>, SdkPojo
Enclosing class:
Duration

@Mutable @NotThreadSafe public static interface Duration.Builder extends SdkPojo, CopyableBuilder<Duration.Builder,Duration>
  • Method Details

    • value

      Duration.Builder value(Integer value)

      The number of units of time. You can use a negative value to report an overdrawn balance. The value must be within 876,000 hours (100 years) of zero: at most 52,560,000 MINUTES, 876,000 HOURS , or 36,500 DAYS.

      Parameters:
      value - The number of units of time. You can use a negative value to report an overdrawn balance. The value must be within 876,000 hours (100 years) of zero: at most 52,560,000 MINUTES, 876,000 HOURS, or 36,500 DAYS.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unit

      The unit the value is counted in.

      Parameters:
      unit - The unit the value is counted in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unit

      The unit the value is counted in.

      Parameters:
      unit - The unit the value is counted in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: