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
Modifier and TypeMethodDescriptiondefault AlarmRule.Builder
simpleRule
(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
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 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.Builder
avoiding the need to create one manually viaSimpleRule.builder()
.When the
Consumer
completes,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:
-