Class AddItemsToPlaylistDeprecatedRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<SnapshotResult, AddItemsToPlaylistDeprecatedRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<SnapshotResult, AddItemsToPlaylistDeprecatedRequest.Builder>
se.michaelthelin.spotify.requests.data.playlists.AddItemsToPlaylistDeprecatedRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<SnapshotResult, AddItemsToPlaylistDeprecatedRequest.Builder>
- Enclosing class:
AddItemsToPlaylistDeprecatedRequest
@Deprecated
public static final class AddItemsToPlaylistDeprecatedRequest.Builder
extends AbstractDataRequest.Builder<SnapshotResult, AddItemsToPlaylistDeprecatedRequest.Builder>
Deprecated.
This endpoint has been deprecated by Spotify.
Builder class for building a
AddItemsToPlaylistDeprecatedRequest.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a newAddItemsToPlaylistDeprecatedRequest.Builderinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.The request build method.playlist_id(String playlist_id) Deprecated.The playlist_id path parameter setter.Deprecated.The position body parameter setter.self()Deprecated.Return this instance to simulate a self-type.Deprecated.The uris body parameter setter.Methods inherited from class AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setSchemeModifier and TypeMethodDescriptionsetBody(org.apache.hc.core5.http.HttpEntity httpEntity) Set the body for the request.setBodyParameter(String name, X value) Set a body parameter for the request.setContentType(org.apache.hc.core5.http.ContentType contentType) Set the content type for the request.setDefaults(IHttpManager httpManager, String scheme, String host, Integer port) Set default values for the request.Set a header for the request.Set the host for the request.setHttpManager(IHttpManager httpManager) Set the HTTP manager for the request.Set the path for the request.setPathParameter(String name, String value) Set a path parameter for the request.Set the port for the request.setQueryParameter(String name, X value) Set a query parameter for the request.Set the scheme for the request.
-
Constructor Details
-
Builder
Deprecated.Create a newAddItemsToPlaylistDeprecatedRequest.Builderinstance.- Parameters:
accessToken- Required. A valid access token from the Spotify Accounts service.
-
-
Method Details
-
playlist_id
Deprecated.The playlist_id path parameter setter.- Parameters:
playlist_id- Required. The Spotify ID of the playlist.- Returns:
- A
AddItemsToPlaylistDeprecatedRequest.Builder.
-
position
Deprecated.The position body parameter setter.- Parameters:
position- Optional. The position to insert the items, a zero-based index. For example, to insert the items in the first position:position=0; to insert the items in the third position:position=2. If omitted, the items will be appended to the playlist. Items are added in the order they appear in the uris array. For example:{"uris": ["spotify:track:4iV5W9uYEdYUVa79Axb7Rh","spotify:track:1301WleyT98MSxVHPZCA6M"], "position": 3}- Returns:
- A
AddItemsToPlaylistDeprecatedRequest.Builder.
-
uris
Deprecated.The uris body parameter setter.- Parameters:
uris- Optional. A JSON array of the Spotify URIs to add. For example:{"uris": ["spotify:track:4iV5W9uYEdYUVa79Axb7Rh","spotify:track:1301WleyT98MSxVHPZCA6M", "spotify:episode:512ojhOuo1ktJprKbVcKyQ"]}
A maximum of 100 items can be added in one request. Note: if theurisparameter is present in the query string, any URIs listed here in the body will be ignored.- Returns:
- A
AddItemsToPlaylistDeprecatedRequest.Builder.
-
build
-
self
Deprecated.Description copied from class:AbstractRequest.BuilderReturn this instance to simulate a self-type.- Specified by:
selfin classAbstractRequest.Builder<SnapshotResult, AddItemsToPlaylistDeprecatedRequest.Builder>- Returns:
- This instance.
-