Class SaveAlbumsForCurrentUserRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,SaveAlbumsForCurrentUserRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,SaveAlbumsForCurrentUserRequest.Builder>
se.michaelthelin.spotify.requests.data.library.SaveAlbumsForCurrentUserRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
SaveAlbumsForCurrentUserRequest.Builder>
- Enclosing class:
SaveAlbumsForCurrentUserRequest
public static final class SaveAlbumsForCurrentUserRequest.Builder
extends AbstractDataRequest.Builder<String,SaveAlbumsForCurrentUserRequest.Builder>
Builder class for building a
SaveAlbumsForCurrentUserRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.ids
(com.google.gson.JsonArray ids) The album IDs setter.The album IDs setter.protected SaveAlbumsForCurrentUserRequest.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
Create a newSaveAlbumsForCurrentUserRequest.Builder
instance.Modification of the current user's "Your Music" collection requires authorization of the
user-library-modify
scope.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
ids
The album IDs setter.- Parameters:
ids
- Optional. A comma-separated list of the Spotify IDs. Maximum: 50 IDs.- Returns:
- A
SaveAlbumsForCurrentUserRequest.Builder
. - See Also:
-
ids
The album IDs setter.- Parameters:
ids
- Optional. A json array consisting of the Spotify IDs. Maximum: 50 IDs.- Returns:
- A
SaveAlbumsForCurrentUserRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
SaveAlbumsForCurrentUserRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
SaveAlbumsForCurrentUserRequest.Builder> - Returns:
- This instance.
-