Class CaptchaResponse
- java.lang.Object
-
- software.amazon.awssdk.services.wafv2.model.CaptchaResponse
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CaptchaResponse.Builder,CaptchaResponse>
@Generated("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
CAPTCHAtoken.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCaptchaResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CaptchaResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FailureReasonfailureReason()The reason for failure, populated when the evaluation of the token fails.StringfailureReasonAsString()The reason for failure, populated when the evaluation of the token fails.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerresponseCode()The HTTP response code indicating the status of theCAPTCHAtoken in the web request.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CaptchaResponse.Builder>serializableBuilderClass()LongsolveTimestamp()The time that theCAPTCHAwas last solved for the supplied token.CaptchaResponse.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
-
responseCode
public final Integer responseCode()
The HTTP response code indicating the status of the
CAPTCHAtoken in the web request. If the token is missing, invalid, or expired, this code is405 Method Not Allowed.- Returns:
- The HTTP response code indicating the status of the
CAPTCHAtoken in the web request. If the token is missing, invalid, or expired, this code is405 Method Not Allowed.
-
solveTimestamp
public final Long solveTimestamp()
The time that the
CAPTCHAwas last solved for the supplied token.- Returns:
- The time that the
CAPTCHAwas last solved for the supplied token.
-
failureReason
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,
failureReasonwill returnFailureReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureReasonAsString().- Returns:
- The reason for failure, populated when the evaluation of the token fails.
- See Also:
FailureReason
-
failureReasonAsString
public 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,
failureReasonwill returnFailureReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureReasonAsString().- Returns:
- The reason for failure, populated when the evaluation of the token fails.
- See Also:
FailureReason
-
toBuilder
public CaptchaResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CaptchaResponse.Builder,CaptchaResponse>
-
builder
public static CaptchaResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends CaptchaResponse.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
-
-