Class GetUsersSavedTracksRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Paging<SavedTrack>,GetUsersSavedTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Paging<SavedTrack>,GetUsersSavedTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataPagingRequest.Builder<SavedTrack,GetUsersSavedTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.library.GetUsersSavedTracksRequest.Builder
- All Implemented Interfaces:
IPagingRequestBuilder<SavedTrack,
,GetUsersSavedTracksRequest.Builder> IRequest.Builder<Paging<SavedTrack>,
GetUsersSavedTracksRequest.Builder>
- Enclosing class:
GetUsersSavedTracksRequest
public static final class GetUsersSavedTracksRequest.Builder
extends AbstractDataPagingRequest.Builder<SavedTrack,GetUsersSavedTracksRequest.Builder>
Builder class for building a
GetUsersSavedTracksRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The limit setter.market
(com.neovisionaries.i18n.CountryCode market) The market country code setter.The offset setter.protected GetUsersSavedTracksRequest.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 newGetUsersSavedTracksRequest.Builder
instance.The
user-library-read
scope must have been authorized by the user.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
limit
The limit setter.- Parameters:
limit
- Optional. The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50.- Returns:
- A
GetUsersSavedTracksRequest.Builder
.
-
offset
The offset setter.- Parameters:
offset
- Optional. The index of the first object to return. Default: 0 (i.e., the first object). Use withlimit(Integer)
to get the next set of objects.- Returns:
- A
GetUsersSavedTracksRequest.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
GetUsersSavedTracksRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetUsersSavedTracksRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Paging<SavedTrack>,
GetUsersSavedTracksRequest.Builder> - Returns:
- This instance.
-