@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChallengeResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ChallengeResponse.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 challenge token in the web request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ChallengeResponse.Builder> |
serializableBuilderClass() |
Long |
solveTimestamp()
The time that the challenge was last solved for the supplied token.
|
ChallengeResponse.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 challenge token in the web request. If the token is missing,
invalid, or expired, this code is 202 Request Accepted.
202 Request Accepted.public final Long solveTimestamp()
The time that the challenge 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 ChallengeResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ChallengeResponse.Builder,ChallengeResponse>public static ChallengeResponse.Builder builder()
public static Class<? extends ChallengeResponse.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.