Class AuthorizationCodeRefreshRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<AuthorizationCodeCredentials,AuthorizationCodeRefreshRequest.Builder>
se.michaelthelin.spotify.requests.authorization.AbstractAuthorizationRequest.Builder<AuthorizationCodeCredentials,AuthorizationCodeRefreshRequest.Builder>
se.michaelthelin.spotify.requests.authorization.authorization_code.AuthorizationCodeRefreshRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<AuthorizationCodeCredentials,
AuthorizationCodeRefreshRequest.Builder>
- Enclosing class:
AuthorizationCodeRefreshRequest
public static final class AuthorizationCodeRefreshRequest.Builder
extends AbstractAuthorizationRequest.Builder<AuthorizationCodeCredentials,AuthorizationCodeRefreshRequest.Builder>
Builder class for building an
AuthorizationCodeRefreshRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.grant_type
(String grant_type) The grant type setter.refresh_token
(String refresh_token) The refresh token setter.protected AuthorizationCodeRefreshRequest.Builder
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
-
-
Method Details
-
grant_type
The grant type setter.- Parameters:
grant_type
- Required. Set it to"refresh_token"
- Returns:
- An
AuthorizationCodeRefreshRequest.Builder
.
-
refresh_token
The refresh token setter.- Parameters:
refresh_token
- Required. The refresh token returned from the authorization code exchange.- Returns:
- An
AuthorizationCodeRefreshRequest.Builder
.
-
build
The request build method.- Returns:
- An
AuthorizationCodeRefreshRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<AuthorizationCodeCredentials,
AuthorizationCodeRefreshRequest.Builder> - Returns:
- This instance.
-