Class UpdatePlaylistsItemsReorderDeprecatedRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<SnapshotResult, UpdatePlaylistsItemsReorderDeprecatedRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<SnapshotResult, UpdatePlaylistsItemsReorderDeprecatedRequest.Builder>
se.michaelthelin.spotify.requests.data.playlists.UpdatePlaylistsItemsReorderDeprecatedRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<SnapshotResult, UpdatePlaylistsItemsReorderDeprecatedRequest.Builder>
- Enclosing class:
UpdatePlaylistsItemsReorderDeprecatedRequest
@Deprecated
public static final class UpdatePlaylistsItemsReorderDeprecatedRequest.Builder
extends AbstractDataRequest.Builder<SnapshotResult, UpdatePlaylistsItemsReorderDeprecatedRequest.Builder>
Deprecated.
Builder class for building a
UpdatePlaylistsItemsReorderDeprecatedRequest.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a newUpdatePlaylistsItemsReorderDeprecatedRequest.Builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.The request build method.insert_before(Integer insert_before) Deprecated.The insert before setter.playlist_id(String playlist_id) Deprecated.The playlist ID setter.range_length(Integer range_length) Deprecated.The range length setter.range_start(Integer range_start) Deprecated.The range start setter.self()Deprecated.Return this instance to simulate a self-type.snapshot_id(String snapshot_id) Deprecated.The playlist snapshot ID setter.Methods inherited from class AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
Deprecated.Create a newUpdatePlaylistsItemsReorderDeprecatedRequest.Builder.Reordering items in the current user's public playlists requires authorization of the
playlist-modify-publicscope; reordering items in the current user's private playlist (including collaborative playlists) requires theplaylist-modify-privatescope.- Parameters:
accessToken- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
playlist_id
Deprecated.The playlist ID setter.- Parameters:
playlist_id- The Spotify ID for the playlist.- Returns:
- A
UpdatePlaylistsItemsReorderDeprecatedRequest.Builder. - See Also:
-
range_start
Deprecated.The range start setter.- Parameters:
range_start- Required. The position of the first item to be reordered.- Returns:
- A
UpdatePlaylistsItemsReorderDeprecatedRequest.Builder.
-
range_length
Deprecated.The range length setter.- Parameters:
range_length- Optional. The amount of items to be reordered. Defaults to 1 if not set.- Returns:
- A
UpdatePlaylistsItemsReorderDeprecatedRequest.Builder.
-
insert_before
Deprecated.The insert before setter.- Parameters:
insert_before- Required. The position where the items should be inserted. To reorder the items to the end of the playlist, simply set insert_before to the position after the last item.- Returns:
- A
UpdatePlaylistsItemsReorderDeprecatedRequest.Builder.
-
snapshot_id
Deprecated.The playlist snapshot ID setter.- Parameters:
snapshot_id- Optional. The playlist's snapshot ID against which you want to make the changes.- Returns:
- A
UpdatePlaylistsItemsReorderDeprecatedRequest.Builder. - See Also:
-
build
Deprecated.The request build method.- Returns:
- A custom
UpdatePlaylistsItemsReorderDeprecatedRequest.
-
self
Deprecated.Description copied from class:AbstractRequest.BuilderReturn this instance to simulate a self-type.- Specified by:
selfin classAbstractRequest.Builder<SnapshotResult, UpdatePlaylistsItemsReorderDeprecatedRequest.Builder>- Returns:
- This instance.
-
UpdatePlaylistsItemsReorderRequestinstead.