Class RemoveAlbumsForCurrentUserRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,RemoveAlbumsForCurrentUserRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,RemoveAlbumsForCurrentUserRequest.Builder>
se.michaelthelin.spotify.requests.data.library.RemoveAlbumsForCurrentUserRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
RemoveAlbumsForCurrentUserRequest.Builder>
- Enclosing class:
RemoveAlbumsForCurrentUserRequest
public static final class RemoveAlbumsForCurrentUserRequest.Builder
extends AbstractDataRequest.Builder<String,RemoveAlbumsForCurrentUserRequest.Builder>
Builder class for building a
RemoveAlbumsForCurrentUserRequest
.-
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 newRemoveAlbumsForCurrentUserRequest.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 album IDs setter.- Parameters:
ids
- Optional. A comma-separated list of the Spotify IDs. Maximum: 50 IDs.- Returns:
- A
RemoveAlbumsForCurrentUserRequest.Builder
. - See Also:
-
ids
The album 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 the Spotify IDs. Maximum: 50 IDs.- Returns:
- A
RemoveAlbumsForCurrentUserRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
RemoveAlbumsForCurrentUserRequest.Builder
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
RemoveAlbumsForCurrentUserRequest.Builder> - Returns:
- This instance.
-