Class ChallengeResponse
- java.lang.Object
-
- software.amazon.awssdk.services.wafv2.model.ChallengeResponse
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ChallengeResponse.Builder,ChallengeResponse>
@Generated("software.amazon.awssdk:codegen") public final class ChallengeResponse extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ChallengeResponse.Builder,ChallengeResponse>
The result from the inspection of the web request for a valid challenge token.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceChallengeResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChallengeResponse.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 the challenge token in the web request.List<SdkField<?>>sdkFields()static Class<? extends ChallengeResponse.Builder>serializableBuilderClass()LongsolveTimestamp()The time that the challenge was last solved for the supplied token.ChallengeResponse.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 challenge token in the web request. If the token is missing, invalid, or expired, this code is
202 Request Accepted.- Returns:
- The HTTP response code indicating the status of the challenge token in the web request. If the token is
missing, invalid, or expired, this code is
202 Request Accepted.
-
solveTimestamp
public final Long solveTimestamp()
The time that the challenge was last solved for the supplied token.
- Returns:
- The time that the challenge was 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 ChallengeResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ChallengeResponse.Builder,ChallengeResponse>
-
builder
public static ChallengeResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends ChallengeResponse.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.
-
-