Interface AuthenticationResultType.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AuthenticationResultType.Builder,,AuthenticationResultType> SdkBuilder<AuthenticationResultType.Builder,,AuthenticationResultType> SdkPojo
- Enclosing class:
- AuthenticationResultType
@Mutable
@NotThreadSafe
public static interface AuthenticationResultType.Builder
extends SdkPojo, CopyableBuilder<AuthenticationResultType.Builder,AuthenticationResultType>
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) Your user's access token.The expiration period of the authentication result in seconds.Your user's ID token.default AuthenticationResultType.BuildernewDeviceMetadata(Consumer<NewDeviceMetadataType.Builder> newDeviceMetadata) The new device metadata from an authentication result.newDeviceMetadata(NewDeviceMetadataType newDeviceMetadata) The new device metadata from an authentication result.refreshToken(String refreshToken) Your user's refresh token.The intended use of the token, for exampleBearer.Methods 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, sdkFields
-
Method Details
-
accessToken
Your user's access token.
- Parameters:
accessToken- Your user's access token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresIn
The expiration period of the authentication result in seconds.
- Parameters:
expiresIn- The expiration period of the authentication result in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenType
The intended use of the token, for example
Bearer.- Parameters:
tokenType- The intended use of the token, for exampleBearer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshToken
Your user's refresh token.
- Parameters:
refreshToken- Your user's refresh token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
idToken
Your user's ID token.
- Parameters:
idToken- Your user's ID token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newDeviceMetadata
The new device metadata from an authentication result.
- Parameters:
newDeviceMetadata- The new device metadata from an authentication result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newDeviceMetadata
default AuthenticationResultType.Builder newDeviceMetadata(Consumer<NewDeviceMetadataType.Builder> newDeviceMetadata) The new device metadata from an authentication result.
This is a convenience method that creates an instance of theNewDeviceMetadataType.Builderavoiding the need to create one manually viaNewDeviceMetadataType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonewDeviceMetadata(NewDeviceMetadataType).- Parameters:
newDeviceMetadata- a consumer that will call methods onNewDeviceMetadataType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-