Interface AuthenticationResultType.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AuthenticationResultType.Builder,AuthenticationResultType>,SdkBuilder<AuthenticationResultType.Builder,AuthenticationResultType>,SdkPojo
- Enclosing class:
- AuthenticationResultType
public static interface AuthenticationResultType.Builder extends SdkPojo, CopyableBuilder<AuthenticationResultType.Builder,AuthenticationResultType>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AuthenticationResultType.BuilderaccessToken(String accessToken)Your user's access token.AuthenticationResultType.BuilderexpiresIn(Integer expiresIn)The expiration period of the authentication result in seconds.AuthenticationResultType.BuilderidToken(String idToken)Your user's ID token.default AuthenticationResultType.BuildernewDeviceMetadata(Consumer<NewDeviceMetadataType.Builder> newDeviceMetadata)The new device metadata from an authentication result.AuthenticationResultType.BuildernewDeviceMetadata(NewDeviceMetadataType newDeviceMetadata)The new device metadata from an authentication result.AuthenticationResultType.BuilderrefreshToken(String refreshToken)Your user's refresh token.AuthenticationResultType.BuildertokenType(String tokenType)The intended use of the token, for exampleBearer.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
accessToken
AuthenticationResultType.Builder accessToken(String 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
AuthenticationResultType.Builder expiresIn(Integer 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
AuthenticationResultType.Builder tokenType(String 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
AuthenticationResultType.Builder refreshToken(String 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
AuthenticationResultType.Builder idToken(String 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
AuthenticationResultType.Builder newDeviceMetadata(NewDeviceMetadataType 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:
newDeviceMetadata(NewDeviceMetadataType)
-
-