Class AddItemToUsersPlaybackQueueRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,AddItemToUsersPlaybackQueueRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,AddItemToUsersPlaybackQueueRequest.Builder>
se.michaelthelin.spotify.requests.data.player.AddItemToUsersPlaybackQueueRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
AddItemToUsersPlaybackQueueRequest.Builder>
- Enclosing class:
AddItemToUsersPlaybackQueueRequest
public static final class AddItemToUsersPlaybackQueueRequest.Builder
extends AbstractDataRequest.Builder<String,AddItemToUsersPlaybackQueueRequest.Builder>
Builder class for building a
AddItemToUsersPlaybackQueueRequest
.-
Constructor Summary
-
Method Summary
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 newAddItemToUsersPlaybackQueueRequest.Builder
.Your access token must have the
user-modify-playback-state
scope authorized in order to control playback.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
device_id
The device ID setter.- Parameters:
device_id
- Optional. The ID of the device this command is targeting. If not supplied, the user's currently active device is the target.- Returns:
- A
AddItemToUsersPlaybackQueueRequest.Builder
. - See Also:
-
uri
The uri setter.- Parameters:
uri
- Required. The uri of the item to add to the queue. Must be a track or an episode uri.- Returns:
- A
AddItemToUsersPlaybackQueueRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
AddItemToUsersPlaybackQueueRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
AddItemToUsersPlaybackQueueRequest.Builder> - Returns:
- This instance.
-