public static interface RuleUpdate.Builder extends CopyableBuilder<RuleUpdate.Builder,RuleUpdate>
Modifier and Type | Method and Description |
---|---|
RuleUpdate.Builder |
action(ChangeAction action)
Specify
INSERT to add a Predicate to a Rule . |
RuleUpdate.Builder |
action(String action)
Specify
INSERT to add a Predicate to a Rule . |
default RuleUpdate.Builder |
predicate(Consumer<Predicate.Builder> predicate)
The ID of the
Predicate (such as an IPSet ) that you want to add to a
Rule . |
RuleUpdate.Builder |
predicate(Predicate predicate)
The ID of the
Predicate (such as an IPSet ) that you want to add to a
Rule . |
copy
apply, build
RuleUpdate.Builder action(String action)
Specify INSERT
to add a Predicate
to a Rule
. Use DELETE
to remove a Predicate
from a Rule
.
action
- Specify INSERT
to add a Predicate
to a Rule
. Use
DELETE
to remove a Predicate
from a Rule
.ChangeAction
,
ChangeAction
RuleUpdate.Builder action(ChangeAction action)
Specify INSERT
to add a Predicate
to a Rule
. Use DELETE
to remove a Predicate
from a Rule
.
action
- Specify INSERT
to add a Predicate
to a Rule
. Use
DELETE
to remove a Predicate
from a Rule
.ChangeAction
,
ChangeAction
RuleUpdate.Builder predicate(Predicate predicate)
The ID of the Predicate
(such as an IPSet
) that you want to add to a
Rule
.
predicate
- The ID of the Predicate
(such as an IPSet
) that you want to add to a
Rule
.default RuleUpdate.Builder predicate(Consumer<Predicate.Builder> predicate)
The ID of the Predicate
(such as an IPSet
) that you want to add to a
Rule
.
Predicate.Builder
avoiding the need to create
one manually via Predicate.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to predicate(Predicate)
.predicate
- a consumer that will call methods on Predicate.Builder
predicate(Predicate)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.