Interface TimeInterval.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TimeInterval.Builder,,TimeInterval> SdkBuilder<TimeInterval.Builder,,TimeInterval> SdkPojo
- Enclosing class:
TimeInterval
@Mutable
@NotThreadSafe
public static interface TimeInterval.Builder
extends SdkPojo, CopyableBuilder<TimeInterval.Builder,TimeInterval>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TimeInterval.BuilderendTime(Consumer<TimeInNanos.Builder> endTime) The end of the time interval.endTime(TimeInNanos endTime) The end of the time interval.default TimeInterval.BuilderstartTime(Consumer<TimeInNanos.Builder> startTime) The start of the time interval.startTime(TimeInNanos startTime) The start of the time interval.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
-
startTime
The start of the time interval.
- Parameters:
startTime- The start of the time interval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The start of the time interval.
This is a convenience method that creates an instance of theTimeInNanos.Builderavoiding the need to create one manually viaTimeInNanos.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostartTime(TimeInNanos).- Parameters:
startTime- a consumer that will call methods onTimeInNanos.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
endTime
The end of the time interval.
- Parameters:
endTime- The end of the time interval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The end of the time interval.
This is a convenience method that creates an instance of theTimeInNanos.Builderavoiding the need to create one manually viaTimeInNanos.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toendTime(TimeInNanos).- Parameters:
endTime- a consumer that will call methods onTimeInNanos.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-