Class ResponseAction
- java.lang.Object
-
- software.amazon.awssdk.services.shield.model.ResponseAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResponseAction.Builder,ResponseAction>
@Generated("software.amazon.awssdk:codegen") public final class ResponseAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseAction.Builder,ResponseAction>
Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResponseAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockActionblock()Specifies that Shield Advanced should configure its WAF rules with the WAFBlockaction.static ResponseAction.Builderbuilder()CountActioncount()Specifies that Shield Advanced should configure its WAF rules with the WAFCountaction.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ResponseAction.Builder>serializableBuilderClass()ResponseAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
block
public final BlockAction block()
Specifies that Shield Advanced should configure its WAF rules with the WAF
Blockaction.You must specify exactly one action, either
BlockorCount.- Returns:
- Specifies that Shield Advanced should configure its WAF rules with the WAF
Blockaction.You must specify exactly one action, either
BlockorCount.
-
count
public final CountAction count()
Specifies that Shield Advanced should configure its WAF rules with the WAF
Countaction.You must specify exactly one action, either
BlockorCount.- Returns:
- Specifies that Shield Advanced should configure its WAF rules with the WAF
Countaction.You must specify exactly one action, either
BlockorCount.
-
toBuilder
public ResponseAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseAction.Builder,ResponseAction>
-
builder
public static ResponseAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResponseAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-