Class RemoveUsersSavedTracksRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,RemoveUsersSavedTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,RemoveUsersSavedTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.library.RemoveUsersSavedTracksRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
RemoveUsersSavedTracksRequest.Builder>
- Enclosing class:
RemoveUsersSavedTracksRequest
public static final class RemoveUsersSavedTracksRequest.Builder
extends AbstractDataRequest.Builder<String,RemoveUsersSavedTracksRequest.Builder>
Builder class for building a
RemoveUsersSavedTracksRequest
.-
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 RemoveUsersSavedTracksRequest.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 newRemoveUsersSavedTracksRequest.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
RemoveUsersSavedTracksRequest.Builder
. - See Also:
-
ids
The track IDs setter.Note: If the ids have already been set with
ids(String)
, any ids added here will be ignored.- Parameters:
ids
- Optional. A JSON array of the Spotify IDs. Maximum: 50 IDs.- Returns:
- A
RemoveUsersSavedTracksRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
RemoveUsersSavedTracksRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
RemoveUsersSavedTracksRequest.Builder> - Returns:
- This instance.
-