@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CaptchaResponse extends Object implements Serializable, Cloneable, StructuredPojo
The result from the inspection of the web request for a valid CAPTCHA
token.
Constructor and Description |
---|
CaptchaResponse() |
Modifier and Type | Method and Description |
---|---|
CaptchaResponse |
clone() |
boolean |
equals(Object obj) |
String |
getFailureReason()
The reason for failure, populated when the evaluation of the token fails.
|
Integer |
getResponseCode()
The HTTP response code indicating the status of the
CAPTCHA token in the web request. |
Long |
getSolveTimestamp()
The time that the
CAPTCHA was last solved for the supplied token. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFailureReason(String failureReason)
The reason for failure, populated when the evaluation of the token fails.
|
void |
setResponseCode(Integer responseCode)
The HTTP response code indicating the status of the
CAPTCHA token in the web request. |
void |
setSolveTimestamp(Long solveTimestamp)
The time that the
CAPTCHA was last solved for the supplied token. |
String |
toString()
Returns a string representation of this object.
|
CaptchaResponse |
withFailureReason(FailureReason failureReason)
The reason for failure, populated when the evaluation of the token fails.
|
CaptchaResponse |
withFailureReason(String failureReason)
The reason for failure, populated when the evaluation of the token fails.
|
CaptchaResponse |
withResponseCode(Integer responseCode)
The HTTP response code indicating the status of the
CAPTCHA token in the web request. |
CaptchaResponse |
withSolveTimestamp(Long solveTimestamp)
The time that the
CAPTCHA was last solved for the supplied token. |
public void setResponseCode(Integer responseCode)
The HTTP response code indicating the status of the CAPTCHA
token in the web request. If the token
is missing, invalid, or expired, this code is 405 Method Not Allowed
.
responseCode
- The HTTP response code indicating the status of the CAPTCHA
token in the web request. If the
token is missing, invalid, or expired, this code is 405 Method Not Allowed
.public Integer getResponseCode()
The HTTP response code indicating the status of the CAPTCHA
token in the web request. If the token
is missing, invalid, or expired, this code is 405 Method Not Allowed
.
CAPTCHA
token in the web request. If the
token is missing, invalid, or expired, this code is 405 Method Not Allowed
.public CaptchaResponse withResponseCode(Integer responseCode)
The HTTP response code indicating the status of the CAPTCHA
token in the web request. If the token
is missing, invalid, or expired, this code is 405 Method Not Allowed
.
responseCode
- The HTTP response code indicating the status of the CAPTCHA
token in the web request. If the
token is missing, invalid, or expired, this code is 405 Method Not Allowed
.public void setSolveTimestamp(Long solveTimestamp)
The time that the CAPTCHA
was last solved for the supplied token.
solveTimestamp
- The time that the CAPTCHA
was last solved for the supplied token.public Long getSolveTimestamp()
The time that the CAPTCHA
was last solved for the supplied token.
CAPTCHA
was last solved for the supplied token.public CaptchaResponse withSolveTimestamp(Long solveTimestamp)
The time that the CAPTCHA
was last solved for the supplied token.
solveTimestamp
- The time that the CAPTCHA
was last solved for the supplied token.public void setFailureReason(String failureReason)
The reason for failure, populated when the evaluation of the token fails.
failureReason
- The reason for failure, populated when the evaluation of the token fails.FailureReason
public String getFailureReason()
The reason for failure, populated when the evaluation of the token fails.
FailureReason
public CaptchaResponse withFailureReason(String failureReason)
The reason for failure, populated when the evaluation of the token fails.
failureReason
- The reason for failure, populated when the evaluation of the token fails.FailureReason
public CaptchaResponse withFailureReason(FailureReason failureReason)
The reason for failure, populated when the evaluation of the token fails.
failureReason
- The reason for failure, populated when the evaluation of the token fails.FailureReason
public String toString()
toString
in class Object
Object.toString()
public CaptchaResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.