@Generated(value="software.amazon.awssdk:codegen") public final class RuleUpdate extends Object implements StructuredPojo, ToCopyableBuilder<RuleUpdate.Builder,RuleUpdate>
Specifies a Predicate
(such as an IPSet
) and indicates whether you want to add it to a
Rule
or delete it from a Rule
.
Modifier and Type | Class and Description |
---|---|
static interface |
RuleUpdate.Builder |
Modifier and Type | Method and Description |
---|---|
ChangeAction |
action()
Specify
INSERT to add a Predicate to a Rule . |
String |
actionAsString()
Specify
INSERT to add a Predicate to a Rule . |
static RuleUpdate.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Predicate |
predicate()
The ID of the
Predicate (such as an IPSet ) that you want to add to a Rule . |
static Class<? extends RuleUpdate.Builder> |
serializableBuilderClass() |
RuleUpdate.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public ChangeAction action()
Specify INSERT
to add a Predicate
to a Rule
. Use DELETE
to
remove a Predicate
from a Rule
.
If the service returns an enum value that is not available in the current SDK version, action
will
return ChangeAction.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
actionAsString()
.
INSERT
to add a Predicate
to a Rule
. Use
DELETE
to remove a Predicate
from a Rule
.ChangeAction
public String actionAsString()
Specify INSERT
to add a Predicate
to a Rule
. Use DELETE
to
remove a Predicate
from a Rule
.
If the service returns an enum value that is not available in the current SDK version, action
will
return ChangeAction.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
actionAsString()
.
INSERT
to add a Predicate
to a Rule
. Use
DELETE
to remove a Predicate
from a Rule
.ChangeAction
public Predicate predicate()
The ID of the Predicate
(such as an IPSet
) that you want to add to a Rule
.
Predicate
(such as an IPSet
) that you want to add to a
Rule
.public RuleUpdate.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RuleUpdate.Builder,RuleUpdate>
public static RuleUpdate.Builder builder()
public static Class<? extends RuleUpdate.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.