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 Summary
Modifier and TypeMethodDescriptionThe unit the value is counted in.unit(DurationUnit unit) The unit the value is counted in.The number of units of time.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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,000HOURS, or 36,500DAYS.- 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,000MINUTES, 876,000HOURS, or 36,500DAYS.- 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:
-