public static final class ReorderPlaylistsTracksRequest.Builder extends AbstractDataRequest.Builder<SnapshotResult,ReorderPlaylistsTracksRequest.Builder>
ReorderPlaylistsTracksRequest.| Constructor and Description |
|---|
Builder(String accessToken)
Create a new
ReorderPlaylistsTracksRequest.Builder. |
| Modifier and Type | Method and Description |
|---|---|
ReorderPlaylistsTracksRequest |
build()
The request build method.
|
ReorderPlaylistsTracksRequest.Builder |
insert_before(Integer insert_before)
The insert before setter.
|
ReorderPlaylistsTracksRequest.Builder |
playlist_id(String playlist_id)
The playlist ID setter.
|
ReorderPlaylistsTracksRequest.Builder |
range_length(Integer range_length)
The range length setter.
|
ReorderPlaylistsTracksRequest.Builder |
range_start(Integer range_start)
The range start setter.
|
protected ReorderPlaylistsTracksRequest.Builder |
self()
Return this instance to simulate a self-type.
|
ReorderPlaylistsTracksRequest.Builder |
snapshot_id(String snapshot_id)
The playlist snapshot ID setter.
|
ReorderPlaylistsTracksRequest.Builder |
user_id(String user_id)
Deprecated.
Playlist IDs are unique for themselves. This parameter is thus no longer used.
(https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
|
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setSchemepublic Builder(String accessToken)
ReorderPlaylistsTracksRequest.Builder.
Reordering tracks in the current user's public playlists requires authorization of the
playlist-modify-public scope; reordering tracks in the current user's private playlist (including
collaborative playlists) requires the playlist-modify-private scope.
accessToken - Required. A valid access token from the Spotify Accounts service.@Deprecated public ReorderPlaylistsTracksRequest.Builder user_id(String user_id)
user_id - The user's Spotify user ID.ReorderPlaylistsTracksRequest.Builder.public ReorderPlaylistsTracksRequest.Builder playlist_id(String playlist_id)
playlist_id - The Spotify ID for the playlist.ReorderPlaylistsTracksRequest.Builder.public ReorderPlaylistsTracksRequest.Builder range_start(Integer range_start)
range_start - Required. The position of the first track to be reordered.ReorderPlaylistsTracksRequest.Builder.public ReorderPlaylistsTracksRequest.Builder range_length(Integer range_length)
range_length - Optional. The amount of tracks to be reordered. Defaults to 1 if not set.ReorderPlaylistsTracksRequest.Builder.public ReorderPlaylistsTracksRequest.Builder insert_before(Integer insert_before)
insert_before - Required. The position where the tracks should be inserted. To reorder the tracks to the
end of the playlist, simply set insert_before to the position after the last track.ReorderPlaylistsTracksRequest.Builder.public ReorderPlaylistsTracksRequest.Builder snapshot_id(String snapshot_id)
snapshot_id - Optional. The playlist's snapshot ID against which you want to make the changes.RemoveTracksFromPlaylistRequest.Builder.public ReorderPlaylistsTracksRequest build()
ReorderPlaylistsTracksRequest.protected ReorderPlaylistsTracksRequest.Builder self()
AbstractRequest.Builderself in class AbstractRequest.Builder<SnapshotResult,ReorderPlaylistsTracksRequest.Builder>Copyright © 2020. All rights reserved.