Interface SloAlertCondition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SloAlertCondition.Builder,,SloAlertCondition> SdkBuilder<SloAlertCondition.Builder,,SloAlertCondition> SdkPojo
- Enclosing class:
SloAlertCondition
@Mutable
@NotThreadSafe
public static interface SloAlertCondition.Builder
extends SdkPojo, CopyableBuilder<SloAlertCondition.Builder,SloAlertCondition>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SloAlertCondition.BuilderburnRate(Consumer<SloBurnRateCondition.Builder> burnRate) Fire on how fast the error budget is being spent.burnRate(SloBurnRateCondition burnRate) Fire on how fast the error budget is being spent.default SloAlertCondition.BuildererrorBudget(Consumer<SloErrorBudgetCondition.Builder> errorBudget) Fire on how much of the error budget has been spent.errorBudget(SloErrorBudgetCondition errorBudget) Fire on how much of the error budget has been spent.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
-
burnRate
Fire on how fast the error budget is being spent.
- Parameters:
burnRate- Fire on how fast the error budget is being spent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
burnRate
Fire on how fast the error budget is being spent.
This is a convenience method that creates an instance of theSloBurnRateCondition.Builderavoiding the need to create one manually viaSloBurnRateCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toburnRate(SloBurnRateCondition).- Parameters:
burnRate- a consumer that will call methods onSloBurnRateCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorBudget
Fire on how much of the error budget has been spent.
- Parameters:
errorBudget- Fire on how much of the error budget has been spent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorBudget
default SloAlertCondition.Builder errorBudget(Consumer<SloErrorBudgetCondition.Builder> errorBudget) Fire on how much of the error budget has been spent.
This is a convenience method that creates an instance of theSloErrorBudgetCondition.Builderavoiding the need to create one manually viaSloErrorBudgetCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrorBudget(SloErrorBudgetCondition).- Parameters:
errorBudget- a consumer that will call methods onSloErrorBudgetCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-