Class SaveTracksForUserRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,SaveTracksForUserRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,SaveTracksForUserRequest.Builder>
se.michaelthelin.spotify.requests.data.library.SaveTracksForUserRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
SaveTracksForUserRequest.Builder>
- Enclosing class:
SaveTracksForUserRequest
public static final class SaveTracksForUserRequest.Builder
extends AbstractDataRequest.Builder<String,SaveTracksForUserRequest.Builder>
Builder class for building a
SaveTracksForUserRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.ids
(com.google.gson.JsonArray ids) The track IDs setter.The track IDs setter.protected SaveTracksForUserRequest.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 newSaveTracksForUserRequest.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 track IDs setter.- Parameters:
ids
- Optional. A comma-separated list of the Spotify IDs. Maximum: 50 IDs.- Returns:
- A
SaveTracksForUserRequest.Builder
. - See Also:
-
ids
The track IDs setter.- Parameters:
ids
- Optional. A json array consisting of the Spotify IDs. Maximum: 50 IDs.- Returns:
- A
SaveTracksForUserRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
SaveTracksForUserRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
SaveTracksForUserRequest.Builder> - Returns:
- This instance.
-