Class GetAlbumRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Album,GetAlbumRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Album,GetAlbumRequest.Builder>
se.michaelthelin.spotify.requests.data.albums.GetAlbumRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<Album,
GetAlbumRequest.Builder>
- Enclosing class:
GetAlbumRequest
public static final class GetAlbumRequest.Builder
extends AbstractDataRequest.Builder<Album,GetAlbumRequest.Builder>
A builder class for a
GetAlbumRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The ID path parameter setter.market
(com.neovisionaries.i18n.CountryCode market) The market query parameter setter.protected GetAlbumRequest.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 newGetAlbumRequest.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
GetAlbumRequest.Builder
. - See Also:
-
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
GetAlbumRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetAlbumRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Album,
GetAlbumRequest.Builder> - Returns:
- This instance.
-