Class GetArtistsTopTracksRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Track[],GetArtistsTopTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Track[],GetArtistsTopTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.artists.GetArtistsTopTracksRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<Track[],
GetArtistsTopTracksRequest.Builder>
- Enclosing class:
GetArtistsTopTracksRequest
public static final class GetArtistsTopTracksRequest.Builder
extends AbstractDataRequest.Builder<Track[],GetArtistsTopTracksRequest.Builder>
Builder class for building a
GetArtistsTopTracksRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.country
(com.neovisionaries.i18n.CountryCode country) The country code setter.The artist ID setter.protected GetArtistsTopTracksRequest.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 newGetArtistsTopTracksRequest.Builder
instance.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.
-
-
Method Details
-
id
The artist ID setter.- Parameters:
id
- The Spotify ID for the artist.- Returns:
- A
GetArtistsTopTracksRequest.Builder
. - See Also:
-
country
The country code setter.- Parameters:
country
- Required. The country: an ISO 3166-1 alpha-2 country code.- Returns:
- A
GetArtistsTopTracksRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetArtistsTopTracksRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Track[],
GetArtistsTopTracksRequest.Builder> - Returns:
- This instance.
-