Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Duration |
build() |
Duration.Builder |
copy(Duration model) |
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.
|
Duration.Builder |
timeUnit(Duration.TimeUnit timeUnit)
The unit that should be used to interpret 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.
timeAmount
- the value to setpublic Duration.Builder timeUnit(Duration.TimeUnit timeUnit)
The unit that should be used to interpret timeAmount.
timeUnit
- the value to setpublic Duration build()
public Duration.Builder copy(Duration model)
Copyright © 2016–2024. All rights reserved.