Interface AlarmRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AlarmRule.Builder,AlarmRule>,SdkBuilder<AlarmRule.Builder,AlarmRule>,SdkPojo
- Enclosing class:
- AlarmRule
public static interface AlarmRule.Builder extends SdkPojo, CopyableBuilder<AlarmRule.Builder,AlarmRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AlarmRule.BuildersimpleRule(Consumer<SimpleRule.Builder> simpleRule)A rule that compares an input property value to a threshold value with a comparison operator.AlarmRule.BuildersimpleRule(SimpleRule simpleRule)A rule that compares an input property value to a threshold value with a comparison operator.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
simpleRule
AlarmRule.Builder simpleRule(SimpleRule simpleRule)
A rule that compares an input property value to a threshold value with a comparison operator.
- Parameters:
simpleRule- A rule that compares an input property value to a threshold value with a comparison operator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
simpleRule
default AlarmRule.Builder simpleRule(Consumer<SimpleRule.Builder> simpleRule)
A rule that compares an input property value to a threshold value with a comparison operator.
This is a convenience method that creates an instance of theSimpleRule.Builderavoiding the need to create one manually viaSimpleRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosimpleRule(SimpleRule).- Parameters:
simpleRule- a consumer that will call methods onSimpleRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
simpleRule(SimpleRule)
-
-