Interface AlarmRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AlarmRule.Builder,,AlarmRule> SdkBuilder<AlarmRule.Builder,,AlarmRule> SdkPojo
- Enclosing class:
AlarmRule
@Mutable
@NotThreadSafe
public static interface AlarmRule.Builder
extends SdkPojo, CopyableBuilder<AlarmRule.Builder,AlarmRule>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AlarmRule.BuildersimpleRule(Consumer<SimpleRule.Builder> simpleRule) A rule that compares an input property value to a threshold value with a comparison operator.simpleRule(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
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
-
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
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:
-