@Generated(value="software.amazon.awssdk:codegen") public final class AdminRespondToAuthChallengeResponse extends CognitoIdentityProviderResponse implements ToCopyableBuilder<AdminRespondToAuthChallengeResponse.Builder,AdminRespondToAuthChallengeResponse>
Responds to the authentication challenge, as an administrator.
Modifier and Type | Class and Description |
---|---|
static interface |
AdminRespondToAuthChallengeResponse.Builder |
Modifier and Type | Method and Description |
---|---|
AuthenticationResultType |
authenticationResult()
The result returned by the server in response to the authentication request.
|
static AdminRespondToAuthChallengeResponse.Builder |
builder() |
ChallengeNameType |
challengeName()
The name of the challenge.
|
String |
challengeNameAsString()
The name of the challenge.
|
Map<String,String> |
challengeParameters()
The challenge parameters.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasChallengeParameters()
For responses, this returns true if the service returned a value for the ChallengeParameters property.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AdminRespondToAuthChallengeResponse.Builder> |
serializableBuilderClass() |
String |
session()
The session that should be passed both ways in challenge-response calls to the service.
|
AdminRespondToAuthChallengeResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final ChallengeNameType challengeName()
The name of the challenge. For more information, see AdminInitiateAuth.
If the service returns an enum value that is not available in the current SDK version, challengeName
will return ChallengeNameType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from challengeNameAsString()
.
ChallengeNameType
public final String challengeNameAsString()
The name of the challenge. For more information, see AdminInitiateAuth.
If the service returns an enum value that is not available in the current SDK version, challengeName
will return ChallengeNameType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from challengeNameAsString()
.
ChallengeNameType
public final String session()
The session that should be passed both ways in challenge-response calls to the service. If the caller must pass
another challenge, they return a session with other challenge parameters. This session should be passed as it is
to the next RespondToAuthChallenge
API call.
RespondToAuthChallenge
API call.public final boolean hasChallengeParameters()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,String> challengeParameters()
The challenge parameters. For more information, see AdminInitiateAuth.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasChallengeParameters()
method.
public final AuthenticationResultType authenticationResult()
The result returned by the server in response to the authentication request.
public AdminRespondToAuthChallengeResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AdminRespondToAuthChallengeResponse.Builder,AdminRespondToAuthChallengeResponse>
toBuilder
in class AwsResponse
public static AdminRespondToAuthChallengeResponse.Builder builder()
public static Class<? extends AdminRespondToAuthChallengeResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsResponse
public final boolean equals(Object obj)
equals
in class AwsResponse
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2023. All rights reserved.