Class GetAlbumsTracksRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Paging<TrackSimplified>,GetAlbumsTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Paging<TrackSimplified>,GetAlbumsTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataPagingRequest.Builder<TrackSimplified,GetAlbumsTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.albums.GetAlbumsTracksRequest.Builder
- All Implemented Interfaces:
IPagingRequestBuilder<TrackSimplified,
,GetAlbumsTracksRequest.Builder> IRequest.Builder<Paging<TrackSimplified>,
GetAlbumsTracksRequest.Builder>
- Enclosing class:
GetAlbumsTracksRequest
public static final class GetAlbumsTracksRequest.Builder
extends AbstractDataPagingRequest.Builder<TrackSimplified,GetAlbumsTracksRequest.Builder>
Builder class for building a
GetAlbumsTracksRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The ID path parameter setter.The limit query parameter setter.market
(com.neovisionaries.i18n.CountryCode market) The market query parameter setter.The offset query parameter setter.protected GetAlbumsTracksRequest.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 newGetAlbumsTracksRequest.Builder
instance.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.
-
-
Method Details
-
id
The ID path parameter setter.- Parameters:
id
- The Spotify ID for the album.- Returns:
- A
GetAlbumsTracksRequest.Builder
. - See Also:
-
limit
The limit query parameter setter.- Parameters:
limit
- Optional. The maximum number of tracks to return. Default: 20. Minimum: 1. Maximum: 50.- Returns:
- A
GetAlbumsTracksRequest.Builder
.
-
offset
The offset query parameter setter.- Parameters:
offset
- Optional. The index of the first track to return. Default: 0 (the first object). Use with limit to get the next set of tracks.- Returns:
- A
GetAlbumsTracksRequest.Builder
.
-
market
The market query parameter setter.- Parameters:
market
- Optional. An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking.- Returns:
- A
GetAlbumsTracksRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetAlbumsTracksRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Paging<TrackSimplified>,
GetAlbumsTracksRequest.Builder> - Returns:
- This instance.
-