Interface Credentials.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Credentials.Builder,Credentials>,SdkBuilder<Credentials.Builder,Credentials>,SdkPojo
- Enclosing class:
- Credentials
public static interface Credentials.Builder extends SdkPojo, CopyableBuilder<Credentials.Builder,Credentials>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Credentials.BuilderaccessToken(String accessToken)An access token generated for a federated user to access Amazon Connect.Credentials.BuilderaccessTokenExpiration(Instant accessTokenExpiration)A token generated with an expiration time for the session a user is logged in to Amazon Connect.Credentials.BuilderrefreshToken(String refreshToken)Renews a token generated for a user to access the Amazon Connect instance.Credentials.BuilderrefreshTokenExpiration(Instant refreshTokenExpiration)Renews the expiration timer for a generated token.-
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, sdkFields
-
-
-
-
Method Detail
-
accessToken
Credentials.Builder accessToken(String accessToken)
An access token generated for a federated user to access Amazon Connect.
- Parameters:
accessToken- An access token generated for a federated user to access Amazon Connect.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessTokenExpiration
Credentials.Builder accessTokenExpiration(Instant accessTokenExpiration)
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
- Parameters:
accessTokenExpiration- A token generated with an expiration time for the session a user is logged in to Amazon Connect.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshToken
Credentials.Builder refreshToken(String refreshToken)
Renews a token generated for a user to access the Amazon Connect instance.
- Parameters:
refreshToken- Renews a token generated for a user to access the Amazon Connect instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshTokenExpiration
Credentials.Builder refreshTokenExpiration(Instant refreshTokenExpiration)
Renews the expiration timer for a generated token.
- Parameters:
refreshTokenExpiration- Renews the expiration timer for a generated token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-