@Generated(value="software.amazon.awssdk:codegen") public final class ActionCondition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ActionCondition.Builder,ActionCondition>
A single action condition for a Condition in a logging filter.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ActionCondition.Builder |
| Modifier and Type | Method and Description |
|---|---|
ActionValue |
action()
The action setting that a log record must contain in order to meet the condition.
|
String |
actionAsString()
The action setting that a log record must contain in order to meet the condition.
|
static ActionCondition.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ActionCondition.Builder> |
serializableBuilderClass() |
ActionCondition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ActionValue action()
The action setting that a log record must contain in order to meet the condition. This is the action that WAF applied to the web request.
For rule groups, this is either the configured rule action setting, or if you've applied a rule action override
to the rule, it's the override action. The value EXCLUDED_AS_COUNT matches on excluded rules and
also on rules that have a rule action override of Count.
If the service returns an enum value that is not available in the current SDK version, action will
return ActionValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
For rule groups, this is either the configured rule action setting, or if you've applied a rule action
override to the rule, it's the override action. The value EXCLUDED_AS_COUNT matches on
excluded rules and also on rules that have a rule action override of Count.
ActionValuepublic final String actionAsString()
The action setting that a log record must contain in order to meet the condition. This is the action that WAF applied to the web request.
For rule groups, this is either the configured rule action setting, or if you've applied a rule action override
to the rule, it's the override action. The value EXCLUDED_AS_COUNT matches on excluded rules and
also on rules that have a rule action override of Count.
If the service returns an enum value that is not available in the current SDK version, action will
return ActionValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
For rule groups, this is either the configured rule action setting, or if you've applied a rule action
override to the rule, it's the override action. The value EXCLUDED_AS_COUNT matches on
excluded rules and also on rules that have a rule action override of Count.
ActionValuepublic ActionCondition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ActionCondition.Builder,ActionCondition>public static ActionCondition.Builder builder()
public static Class<? extends ActionCondition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.