Interface SloTimeWindow.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SloTimeWindow.Builder,,SloTimeWindow> SdkBuilder<SloTimeWindow.Builder,,SloTimeWindow> SdkPojo
- Enclosing class:
SloTimeWindow
@Mutable
@NotThreadSafe
public static interface SloTimeWindow.Builder
extends SdkPojo, CopyableBuilder<SloTimeWindow.Builder,SloTimeWindow>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SloTimeWindow.Buildercalendar(Consumer<SloCalendarWindow.Builder> calendar) A calendar week or month.calendar(SloCalendarWindow calendar) A calendar week or month.default SloTimeWindow.Builderrolling(Consumer<SloRollingWindow.Builder> rolling) A window covering the most recent days, moving with every evaluation.rolling(SloRollingWindow rolling) A window covering the most recent days, moving with every evaluation.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
-
rolling
A window covering the most recent days, moving with every evaluation.
- Parameters:
rolling- A window covering the most recent days, moving with every evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rolling
A window covering the most recent days, moving with every evaluation.
This is a convenience method that creates an instance of theSloRollingWindow.Builderavoiding the need to create one manually viaSloRollingWindow.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torolling(SloRollingWindow).- Parameters:
rolling- a consumer that will call methods onSloRollingWindow.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
calendar
A calendar week or month. The totals restart at each boundary.
- Parameters:
calendar- A calendar week or month. The totals restart at each boundary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
calendar
A calendar week or month. The totals restart at each boundary.
This is a convenience method that creates an instance of theSloCalendarWindow.Builderavoiding the need to create one manually viaSloCalendarWindow.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocalendar(SloCalendarWindow).- Parameters:
calendar- a consumer that will call methods onSloCalendarWindow.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-