Class SaveShowsForCurrentUserRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,SaveShowsForCurrentUserRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,SaveShowsForCurrentUserRequest.Builder>
se.michaelthelin.spotify.requests.data.library.SaveShowsForCurrentUserRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
SaveShowsForCurrentUserRequest.Builder>
- Enclosing class:
SaveShowsForCurrentUserRequest
public static final class SaveShowsForCurrentUserRequest.Builder
extends AbstractDataRequest.Builder<String,SaveShowsForCurrentUserRequest.Builder>
Builder class for building a
SaveShowsForCurrentUserRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.ids
(com.google.gson.JsonArray ids) The show IDs setter.The show IDs setter.protected SaveShowsForCurrentUserRequest.Builder
self()
Return this instance to simulate a self-type.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 newSaveShowsForCurrentUserRequest.Builder
instance.Modification of the current user's "Your Music" collection requires authorization of the
user-library-modify
scope.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
ids
The show IDs setter.- Parameters:
ids
- Optional. A comma-separated list of Spotify IDs for the shows to be added to the user’s library.- Returns:
- A
SaveShowsForCurrentUserRequest.Builder
. - See Also:
-
ids
The show IDs setter.Note: If the ids have already been set with
ids(String)
, any ids added here will be ignored.- Parameters:
ids
- Optional. A JSON array of Spotify IDs for the shows to be added to the user’s library.- Returns:
- A
SaveShowsForCurrentUserRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
SaveShowsForCurrentUserRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
SaveShowsForCurrentUserRequest.Builder> - Returns:
- This instance.
-