@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImmunityTimeProperty extends Object implements Serializable, Cloneable, StructuredPojo
Used for CAPTCHA and challenge token settings. Determines how long a CAPTCHA or challenge timestamp
remains valid after WAF updates it for a successful CAPTCHA or challenge response.
| Constructor and Description |
|---|
ImmunityTimeProperty() |
| Modifier and Type | Method and Description |
|---|---|
ImmunityTimeProperty |
clone() |
boolean |
equals(Object obj) |
Long |
getImmunityTime()
The amount of time, in seconds, that a
CAPTCHA or challenge timestamp is considered valid by WAF. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setImmunityTime(Long immunityTime)
The amount of time, in seconds, that a
CAPTCHA or challenge timestamp is considered valid by WAF. |
String |
toString()
Returns a string representation of this object.
|
ImmunityTimeProperty |
withImmunityTime(Long immunityTime)
The amount of time, in seconds, that a
CAPTCHA or challenge timestamp is considered valid by WAF. |
public void setImmunityTime(Long immunityTime)
The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by WAF.
The default setting is 300.
For the Challenge action, the minimum setting is 300.
immunityTime - The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by
WAF. The default setting is 300.
For the Challenge action, the minimum setting is 300.
public Long getImmunityTime()
The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by WAF.
The default setting is 300.
For the Challenge action, the minimum setting is 300.
CAPTCHA or challenge timestamp is considered valid by
WAF. The default setting is 300.
For the Challenge action, the minimum setting is 300.
public ImmunityTimeProperty withImmunityTime(Long immunityTime)
The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by WAF.
The default setting is 300.
For the Challenge action, the minimum setting is 300.
immunityTime - The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by
WAF. The default setting is 300.
For the Challenge action, the minimum setting is 300.
public String toString()
toString in class ObjectObject.toString()public ImmunityTimeProperty clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.