@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseAction extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ResponseAction() |
Modifier and Type | Method and Description |
---|---|
ResponseAction |
clone() |
boolean |
equals(Object obj) |
BlockAction |
getBlock()
Specifies that Shield Advanced should configure its WAF rules with the WAF
Block action. |
CountAction |
getCount()
Specifies that Shield Advanced should configure its WAF rules with the WAF
Count action. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlock(BlockAction block)
Specifies that Shield Advanced should configure its WAF rules with the WAF
Block action. |
void |
setCount(CountAction count)
Specifies that Shield Advanced should configure its WAF rules with the WAF
Count action. |
String |
toString()
Returns a string representation of this object.
|
ResponseAction |
withBlock(BlockAction block)
Specifies that Shield Advanced should configure its WAF rules with the WAF
Block action. |
ResponseAction |
withCount(CountAction count)
Specifies that Shield Advanced should configure its WAF rules with the WAF
Count action. |
public void setBlock(BlockAction block)
Specifies that Shield Advanced should configure its WAF rules with the WAF Block
action.
You must specify exactly one action, either Block
or Count
.
block
- Specifies that Shield Advanced should configure its WAF rules with the WAF Block
action.
You must specify exactly one action, either Block
or Count
.
public BlockAction getBlock()
Specifies that Shield Advanced should configure its WAF rules with the WAF Block
action.
You must specify exactly one action, either Block
or Count
.
Block
action.
You must specify exactly one action, either Block
or Count
.
public ResponseAction withBlock(BlockAction block)
Specifies that Shield Advanced should configure its WAF rules with the WAF Block
action.
You must specify exactly one action, either Block
or Count
.
block
- Specifies that Shield Advanced should configure its WAF rules with the WAF Block
action.
You must specify exactly one action, either Block
or Count
.
public void setCount(CountAction count)
Specifies that Shield Advanced should configure its WAF rules with the WAF Count
action.
You must specify exactly one action, either Block
or Count
.
count
- Specifies that Shield Advanced should configure its WAF rules with the WAF Count
action.
You must specify exactly one action, either Block
or Count
.
public CountAction getCount()
Specifies that Shield Advanced should configure its WAF rules with the WAF Count
action.
You must specify exactly one action, either Block
or Count
.
Count
action.
You must specify exactly one action, either Block
or Count
.
public ResponseAction withCount(CountAction count)
Specifies that Shield Advanced should configure its WAF rules with the WAF Count
action.
You must specify exactly one action, either Block
or Count
.
count
- Specifies that Shield Advanced should configure its WAF rules with the WAF Count
action.
You must specify exactly one action, either Block
or Count
.
public String toString()
toString
in class Object
Object.toString()
public ResponseAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.