Interface GetOAuthTokenResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetOAuthTokenResponse.Builder,,GetOAuthTokenResponse> CredentialBrokerResponse.Builder,SdkBuilder<GetOAuthTokenResponse.Builder,,GetOAuthTokenResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetOAuthTokenResponse
@Mutable
@NotThreadSafe
public static interface GetOAuthTokenResponse.Builder
extends CredentialBrokerResponse.Builder, SdkPojo, CopyableBuilder<GetOAuthTokenResponse.Builder,GetOAuthTokenResponse>
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) The access token.When the access token expires.sessionStatus(String sessionStatus) Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.sessionStatus(SessionStatus sessionStatus) Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.credentialbroker.model.CredentialBrokerResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
accessToken
The access token. Present it to the third-party API as a bearer credential.
- Parameters:
accessToken- The access token. Present it to the third-party API as a bearer credential.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresAt
When the access token expires. Absent when the authorization server does not report an expiry, in which case the token's lifetime is whatever that server applies.
- Parameters:
expiresAt- When the access token expires. Absent when the authorization server does not report an expiry, in which case the token's lifetime is whatever that server applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionStatus
Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.
- Parameters:
sessionStatus- Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sessionStatus
Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.
- Parameters:
sessionStatus- Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-