@Generated(value="software.amazon.awssdk:codegen") public final class CaptchaResponse extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CaptchaResponse.Builder,CaptchaResponse>
The result from the inspection of the web request for a valid CAPTCHA token.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CaptchaResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CaptchaResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FailureReason |
failureReason()
The reason for failure, populated when the evaluation of the token fails.
|
String |
failureReasonAsString()
The reason for failure, populated when the evaluation of the token fails.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
responseCode()
The HTTP response code indicating the status of the
CAPTCHA token in the web request. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CaptchaResponse.Builder> |
serializableBuilderClass() |
Long |
solveTimestamp()
The time that the
CAPTCHA was last solved for the supplied token. |
CaptchaResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
CAPTCHA token in the web request. If the
token is missing, invalid, or expired, this code is 405 Method Not Allowed.public final Long solveTimestamp()
The time that the CAPTCHA was last solved for the supplied token.
CAPTCHA was last solved for the supplied token.public final FailureReason failureReason()
The reason for failure, populated when the evaluation of the token fails.
If the service returns an enum value that is not available in the current SDK version, failureReason
will return FailureReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
failureReasonAsString().
FailureReasonpublic final String failureReasonAsString()
The reason for failure, populated when the evaluation of the token fails.
If the service returns an enum value that is not available in the current SDK version, failureReason
will return FailureReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
failureReasonAsString().
FailureReasonpublic CaptchaResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CaptchaResponse.Builder,CaptchaResponse>public static CaptchaResponse.Builder builder()
public static Class<? extends CaptchaResponse.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.