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 TypeMethodDescriptionSpecifyINSERTto add aPredicateto aRule.action(ChangeAction action) SpecifyINSERTto add aPredicateto aRule.default RuleUpdate.Builderpredicate(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
action
Specify
INSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Parameters:
action- SpecifyINSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
Specify
INSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Parameters:
action- SpecifyINSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom 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.Builderavoiding the need to create one manually viaPredicate.builder().When the
Consumercompletes,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:
-