Interface RuleUpdate.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RuleUpdate.Builder,
,RuleUpdate> SdkBuilder<RuleUpdate.Builder,
,RuleUpdate> SdkPojo
- Enclosing class:
RuleUpdate
public static interface RuleUpdate.Builder
extends SdkPojo, CopyableBuilder<RuleUpdate.Builder,RuleUpdate>
-
Method Summary
Modifier and TypeMethodDescriptionSpecifyINSERT
to add aPredicate
to aRule
.action
(ChangeAction action) SpecifyINSERT
to add aPredicate
to aRule
.default RuleUpdate.Builder
predicate
(Consumer<Predicate.Builder> predicate) The ID of thePredicate
(such as anIPSet
) that you want to add to aRule
.The ID of thePredicate
(such as anIPSet
) that you want to add to aRule
.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
-
action
Specify
INSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- Parameters:
action
- SpecifyINSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
Specify
INSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- Parameters:
action
- SpecifyINSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
predicate
The ID of the
Predicate
(such as anIPSet
) that you want to add to aRule
.- Parameters:
predicate
- The ID of thePredicate
(such as anIPSet
) that you want to add to aRule
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predicate
The ID of the
This is a convenience method that creates an instance of thePredicate
(such as anIPSet
) that you want to add to aRule
.Predicate.Builder
avoiding the need to create one manually viaPredicate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topredicate(Predicate)
.- Parameters:
predicate
- a consumer that will call methods onPredicate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-