Class UnfollowPlaylistRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,UnfollowPlaylistRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,UnfollowPlaylistRequest.Builder>
se.michaelthelin.spotify.requests.data.follow.legacy.UnfollowPlaylistRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
UnfollowPlaylistRequest.Builder>
- Enclosing class:
UnfollowPlaylistRequest
public static final class UnfollowPlaylistRequest.Builder
extends AbstractDataRequest.Builder<String,UnfollowPlaylistRequest.Builder>
Builder class for building an
UnfollowPlaylistRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The playlist owner ID setter.playlist_id
(String playlist_id) The playlist ID setter.protected UnfollowPlaylistRequest.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 newUnfollowPlaylistRequest.Builder
instance.Unfollowing a publicly followed playlist for a user requires authorization of the
playlist-modify-public
scope; unfollowing a privately followed playlist requires theplaylist-modify-private
scope.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
owner_id
The playlist owner ID setter.- Parameters:
owner_id
- The Spotify user ID of the person who owns the playlist.- Returns:
- An
UnfollowPlaylistRequest.Builder
. - See Also:
-
playlist_id
The playlist ID setter.- Parameters:
playlist_id
- The Spotify ID of the playlist that is to be no longer followed.- Returns:
- An
UnfollowPlaylistRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
UnfollowPlaylistRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
UnfollowPlaylistRequest.Builder> - Returns:
- This instance.
-