Interface GetClientTokenResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CognitoIdentityProviderResponse.Builder,CopyableBuilder<GetClientTokenResponse.Builder,,GetClientTokenResponse> SdkBuilder<GetClientTokenResponse.Builder,,GetClientTokenResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetClientTokenResponse
@Mutable
@NotThreadSafe
public static interface GetClientTokenResponse.Builder
extends CognitoIdentityProviderResponse.Builder, SdkPojo, CopyableBuilder<GetClientTokenResponse.Builder,GetClientTokenResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetClientTokenResponse.BuilderclientAuthenticationResult(Consumer<ClientAuthenticationResultType.Builder> clientAuthenticationResult) The access token that Amazon Cognito issues for the app client, and its metadata.clientAuthenticationResult(ClientAuthenticationResultType clientAuthenticationResult) The access token that Amazon Cognito issues for the app client, and its metadata.Methods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
clientAuthenticationResult
GetClientTokenResponse.Builder clientAuthenticationResult(ClientAuthenticationResultType clientAuthenticationResult) The access token that Amazon Cognito issues for the app client, and its metadata.
- Parameters:
clientAuthenticationResult- The access token that Amazon Cognito issues for the app client, and its metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientAuthenticationResult
default GetClientTokenResponse.Builder clientAuthenticationResult(Consumer<ClientAuthenticationResultType.Builder> clientAuthenticationResult) The access token that Amazon Cognito issues for the app client, and its metadata.
This is a convenience method that creates an instance of theClientAuthenticationResultType.Builderavoiding the need to create one manually viaClientAuthenticationResultType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toclientAuthenticationResult(ClientAuthenticationResultType).- Parameters:
clientAuthenticationResult- a consumer that will call methods onClientAuthenticationResultType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-