Class GetPlaylistRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Playlist,GetPlaylistRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Playlist,GetPlaylistRequest.Builder>
se.michaelthelin.spotify.requests.data.playlists.GetPlaylistRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<Playlist,
GetPlaylistRequest.Builder>
- Enclosing class:
GetPlaylistRequest
public static final class GetPlaylistRequest.Builder
extends AbstractDataRequest.Builder<Playlist,GetPlaylistRequest.Builder>
Builder class for building a
GetPlaylistRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalTypes
(String additionalTypes) The additional types setter.build()
The request build method.The fields filter setter.market
(com.neovisionaries.i18n.CountryCode market) The market country code setter.playlist_id
(String playlist_id) The playlist ID setter.protected GetPlaylistRequest.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 newGetPlaylistRequest.Builder
.Both Public and Private playlists belonging to any user are retrievable on provision of a valid access token.
- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.
-
-
Method Details
-
playlist_id
The playlist ID setter.- Parameters:
playlist_id
- The Spotify ID for the playlist.- Returns:
- A
GetPlaylistRequest.Builder
. - See Also:
-
fields
The fields filter setter.- Parameters:
fields
- Optional. Filters for the query: a comma-separated list of the fields to return. If omitted, all fields are returned.- Returns:
- A
GetPlaylistRequest.Builder
. - See Also:
-
market
The market country code setter.- Parameters:
market
- Optional. An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking.- Returns:
- A
GetPlaylistRequest.Builder
. - See Also:
-
additionalTypes
The additional types setter.- Parameters:
additionalTypes
- Optional. A comma-separated list of item types that your client supports besides the default track type. Valid types are:track
andepisode
. An unsupported type in the response is expected to be represented asnull
value in theitem
field.- Returns:
- A
GetPlaylistRequest.Builder
.
-
build
The request build method.- Returns:
- A custom
GetPlaylistRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Playlist,
GetPlaylistRequest.Builder> - Returns:
- This instance.
-