Class ReplacePlaylistsItemsRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,ReplacePlaylistsItemsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,ReplacePlaylistsItemsRequest.Builder>
se.michaelthelin.spotify.requests.data.playlists.ReplacePlaylistsItemsRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
ReplacePlaylistsItemsRequest.Builder>
- Enclosing class:
ReplacePlaylistsItemsRequest
public static final class ReplacePlaylistsItemsRequest.Builder
extends AbstractDataRequest.Builder<String,ReplacePlaylistsItemsRequest.Builder>
Builder class for building a
ReplacePlaylistsItemsRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.playlist_id
(String playlist_id) The playlist ID setter.protected ReplacePlaylistsItemsRequest.Builder
self()
Return this instance to simulate a self-type.uris
(com.google.gson.JsonArray uris) The item URIs setter.The item URIs setter.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 newReplacePlaylistsItemsRequest.Builder
.Replacing items in the current user's public playlists requires authorization of the
playlist-modify-public
scope; replacing items in the current user's private playlist (including collaborative playlists) requires theplaylist-modify-private
scope.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
playlist_id
The playlist ID setter.- Parameters:
playlist_id
- The Spotify ID for the playlist.- Returns:
- A
ReplacePlaylistsItemsRequest.Builder
. - See Also:
-
uris
The item URIs setter.- Parameters:
uris
- Optional. A comma-separated list of Spotify track or episode URIs to set. Maximum: 100 track or episode URIs.- Returns:
- A
ReplacePlaylistsItemsRequest.Builder
. - See Also:
-
uris
The item URIs setter.Note: If the URIs have already been set with
uris(String)
, any URIs set here will be ignored.- Parameters:
uris
- Optional. A JSON array of Spotify track or episode URIs to set. Maximum: 100 track or episode URIs.- Returns:
- A
ReplacePlaylistsItemsRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
ReplacePlaylistsItemsRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
ReplacePlaylistsItemsRequest.Builder> - Returns:
- This instance.
-