Class GetPlaylistsItemsRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Paging<PlaylistTrack>,GetPlaylistsItemsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Paging<PlaylistTrack>,GetPlaylistsItemsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataPagingRequest.Builder<PlaylistTrack,GetPlaylistsItemsRequest.Builder>
se.michaelthelin.spotify.requests.data.playlists.GetPlaylistsItemsRequest.Builder
- All Implemented Interfaces:
IPagingRequestBuilder<PlaylistTrack,
,GetPlaylistsItemsRequest.Builder> IRequest.Builder<Paging<PlaylistTrack>,
GetPlaylistsItemsRequest.Builder>
- Enclosing class:
GetPlaylistsItemsRequest
public static final class GetPlaylistsItemsRequest.Builder
extends AbstractDataPagingRequest.Builder<PlaylistTrack,GetPlaylistsItemsRequest.Builder>
Builder class for building a
GetPlaylistsItemsRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalTypes
(String additionalTypes) The additional types setter.build()
The request build method.The fields filter setter.The limit setter.market
(com.neovisionaries.i18n.CountryCode market) The market country code setter.The offset setter.playlist_id
(String playlist_id) The playlist ID setter.protected GetPlaylistsItemsRequest.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.michaelthelin.spotify.requests.IRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
Create a newGetPlaylistsItemsRequest.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
GetPlaylistsItemsRequest.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
GetPlaylistsItemsRequest.Builder
. - See Also:
-
limit
The limit setter.- Parameters:
limit
- Optional. The maximum number of items to return. Default: 100. Minimum: 1. Maximum: 100.- Returns:
- A
GetPlaylistsItemsRequest.Builder
.
-
offset
The offset setter.- Parameters:
offset
- Optional. The index of the first item to return. Default: 0 (the first object).- Returns:
- A
GetPlaylistsItemsRequest.Builder
.
-
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
GetPlaylistsItemsRequest.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
GetPlaylistsItemsRequest.Builder
.
-
build
The request build method.- Returns:
- A custom
GetPlaylistsItemsRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Paging<PlaylistTrack>,
GetPlaylistsItemsRequest.Builder> - Returns:
- This instance.
-