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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RuleUpdate.Builderaction(String action)SpecifyINSERTto add aPredicateto aRule.RuleUpdate.Builderaction(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.RuleUpdate.Builderpredicate(Predicate predicate)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 Detail
-
action
RuleUpdate.Builder action(String 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:
ChangeAction,ChangeAction
-
action
RuleUpdate.Builder action(ChangeAction 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:
ChangeAction,ChangeAction
-
predicate
RuleUpdate.Builder predicate(Predicate 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
default RuleUpdate.Builder predicate(Consumer<Predicate.Builder> 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:
predicate(Predicate)
-
-