Interface SloObjective.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SloObjective.Builder,,SloObjective> SdkBuilder<SloObjective.Builder,,SloObjective> SdkPojo
- Enclosing class:
SloObjective
@Mutable
@NotThreadSafe
public static interface SloObjective.Builder
extends SdkPojo, CopyableBuilder<SloObjective.Builder,SloObjective>
-
Method Summary
Modifier and TypeMethodDescriptionThe target attainment as a percentage, greater than 0 and less than 100, with at most three decimal places.default SloObjective.BuildertimeWindow(Consumer<SloTimeWindow.Builder> timeWindow) The window the target is measured over.timeWindow(SloTimeWindow timeWindow) The window the target is measured over.warningBudgetConsumedRatio(Double warningBudgetConsumedRatio) The share of the error budget consumed at which the SLO enters the WARNING state, greater than 0 and less than 1.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
-
target
The target attainment as a percentage, greater than 0 and less than 100, with at most three decimal places. For example, 99.9.
- Parameters:
target- The target attainment as a percentage, greater than 0 and less than 100, with at most three decimal places. For example, 99.9.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
warningBudgetConsumedRatio
The share of the error budget consumed at which the SLO enters the WARNING state, greater than 0 and less than 1. There is no default: when absent, the SLO is never WARNING.
- Parameters:
warningBudgetConsumedRatio- The share of the error budget consumed at which the SLO enters the WARNING state, greater than 0 and less than 1. There is no default: when absent, the SLO is never WARNING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeWindow
The window the target is measured over. Together with the target it defines the error budget.
- Parameters:
timeWindow- The window the target is measured over. Together with the target it defines the error budget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeWindow
The window the target is measured over. Together with the target it defines the error budget.
This is a convenience method that creates an instance of theSloTimeWindow.Builderavoiding the need to create one manually viaSloTimeWindow.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeWindow(SloTimeWindow).- Parameters:
timeWindow- a consumer that will call methods onSloTimeWindow.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-