Class AuthorizationCodePKCERefreshRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<AuthorizationCodeCredentials,AuthorizationCodePKCERefreshRequest.Builder>
se.michaelthelin.spotify.requests.authorization.authorization_code.pkce.AuthorizationCodePKCERefreshRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<AuthorizationCodeCredentials,
AuthorizationCodePKCERefreshRequest.Builder>
- Enclosing class:
AuthorizationCodePKCERefreshRequest
public static final class AuthorizationCodePKCERefreshRequest.Builder
extends AbstractRequest.Builder<AuthorizationCodeCredentials,AuthorizationCodePKCERefreshRequest.Builder>
Builder class for building an
AuthorizationCodePKCERefreshRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The client ID setter.grant_type
(String grant_type) The grant type setter.refresh_token
(String refresh_token) The refresh token setter.self()
Return this instance to simulate a self-type.Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
grant_type
The grant type setter.- Parameters:
grant_type
- Required. Set it to"refresh_token"
- Returns:
- An
AuthorizationCodePKCERefreshRequest.Builder
.
-
refresh_token
The refresh token setter.- Parameters:
refresh_token
- Required. The refresh token returned from the authorization code exchange.- Returns:
- An
AuthorizationCodePKCERefreshRequest.Builder
.
-
client_id
The client ID setter.- Parameters:
client_id
- Required. The client ID for your app, available from the developer dashboard.- Returns:
- An
AuthorizationCodePKCERefreshRequest.Builder
.
-
build
The request build method.- Returns:
- An
AuthorizationCodePKCERefreshRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<AuthorizationCodeCredentials,
AuthorizationCodePKCERefreshRequest.Builder> - Returns:
- This instance.
-