Class RemoveUsersSavedShowsRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,RemoveUsersSavedShowsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,RemoveUsersSavedShowsRequest.Builder>
se.michaelthelin.spotify.requests.data.library.RemoveUsersSavedShowsRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,RemoveUsersSavedShowsRequest.Builder>
- Enclosing class:
RemoveUsersSavedShowsRequest
public static final class RemoveUsersSavedShowsRequest.Builder
extends AbstractDataRequest.Builder<String,RemoveUsersSavedShowsRequest.Builder>
Builder class for building a
RemoveUsersSavedShowsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()The request build method.ids(com.google.gson.JsonArray ids) The show IDs setter.The show IDs setter.market(com.neovisionaries.i18n.CountryCode market) The market country code setter.protected RemoveUsersSavedShowsRequest.Builderself()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 newRemoveUsersSavedShowsRequest.Builderinstance.Modification of the current user's "Your Music" collection requires authorization of the
user-library-modifyscope.- 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 deleted from the user’s library. Maximum: 50 IDs.- Returns:
- A
RemoveUsersSavedShowsRequest.Builder. - See Also:
-
market
The market country code setter.If a country code is specified, only shows that are available in that market will be removed. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter. Note: If neither market or user country are provided, the content is considered unavailable for the client.
Users can view the country that is associated with their account in the account settings.
- Parameters:
market- Optional. An ISO 3166-1 alpha-2 country code.- Returns:
- A
RemoveUsersSavedShowsRequest.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 deleted from the user’s library. Maximum: 50 IDs.- Returns:
- A
RemoveUsersSavedShowsRequest.Builder. - See Also:
-
build
The request build method.- Returns:
- A custom
RemoveUsersSavedShowsRequest.
-
self
Description copied from class:AbstractRequest.BuilderReturn this instance to simulate a self-type.- Specified by:
selfin classAbstractRequest.Builder<String,RemoveUsersSavedShowsRequest.Builder> - Returns:
- This instance.
-