Interface SloRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SloRule.Builder,,SloRule> SdkBuilder<SloRule.Builder,,SloRule> SdkPojo
- Enclosing class:
SloRule
-
Method Summary
Modifier and TypeMethodDescriptiondefault SloRule.Buildercondition(Consumer<SloAlertCondition.Builder> condition) What makes the alert fire.condition(SloAlertCondition condition) What makes the alert fire.default SloRule.Builderevaluation(Consumer<AlertEvaluation.Builder> evaluation) The evaluation cadence and durations.evaluation(AlertEvaluation evaluation) The evaluation cadence and durations.default SloRule.BuildernoData(Consumer<NoData.Builder> noData) How the alert behaves when no fresh SLO measurement is available.How the alert behaves when no fresh SLO measurement is available.The SLO the alert is built on.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
-
sloId
The SLO the alert is built on. It must be in the same space as the alert, and the caller must be allowed to read it. Required on create; omit on update to keep the current SLO.
- Parameters:
sloId- The SLO the alert is built on. It must be in the same space as the alert, and the caller must be allowed to read it. Required on create; omit on update to keep the current SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
What makes the alert fire. Exactly one member is set. Required on create; omit on update to keep the current condition. When supplied on update, the condition block is replaced whole.
- Parameters:
condition- What makes the alert fire. Exactly one member is set. Required on create; omit on update to keep the current condition. When supplied on update, the condition block is replaced whole.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
What makes the alert fire. Exactly one member is set. Required on create; omit on update to keep the current condition. When supplied on update, the condition block is replaced whole.
This is a convenience method that creates an instance of theSloAlertCondition.Builderavoiding the need to create one manually viaSloAlertCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocondition(SloAlertCondition).- Parameters:
condition- a consumer that will call methods onSloAlertCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluation
The evaluation cadence and durations. Required on create; omit on update to keep the current evaluation settings. When supplied on update, the evaluation block is replaced whole.
- Parameters:
evaluation- The evaluation cadence and durations. Required on create; omit on update to keep the current evaluation settings. When supplied on update, the evaluation block is replaced whole.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluation
The evaluation cadence and durations. Required on create; omit on update to keep the current evaluation settings. When supplied on update, the evaluation block is replaced whole.
This is a convenience method that creates an instance of theAlertEvaluation.Builderavoiding the need to create one manually viaAlertEvaluation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluation(AlertEvaluation).- Parameters:
evaluation- a consumer that will call methods onAlertEvaluation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
noData
How the alert behaves when no fresh SLO measurement is available. Omit on create to use NODATA. Omit on update to keep the current behavior. When supplied on update, the noData block is replaced whole.
- Parameters:
noData- How the alert behaves when no fresh SLO measurement is available. Omit on create to use NODATA. Omit on update to keep the current behavior. When supplied on update, the noData block is replaced whole.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noData
How the alert behaves when no fresh SLO measurement is available. Omit on create to use NODATA. Omit on update to keep the current behavior. When supplied on update, the noData block is replaced whole.
This is a convenience method that creates an instance of theNoData.Builderavoiding the need to create one manually viaNoData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonoData(NoData).- Parameters:
noData- a consumer that will call methods onNoData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-