Class GetSeveralAlbumsRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Album[],GetSeveralAlbumsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Album[],GetSeveralAlbumsRequest.Builder>
se.michaelthelin.spotify.requests.data.albums.GetSeveralAlbumsRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<Album[],
GetSeveralAlbumsRequest.Builder>
- Enclosing class:
GetSeveralAlbumsRequest
public static final class GetSeveralAlbumsRequest.Builder
extends AbstractDataRequest.Builder<Album[],GetSeveralAlbumsRequest.Builder>
Builder class for building a
GetSeveralAlbumsRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The IDs query parameter setter.market
(com.neovisionaries.i18n.CountryCode market) The market query parameter setter.protected GetSeveralAlbumsRequest.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 newGetSeveralAlbumsRequest.Builder
instance.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.
-
-
Method Details
-
ids
The IDs query parameter setter.- Parameters:
ids
- Required. A comma-separated list of the Spotify IDs for the albums. Maximum: 20 IDs.- Returns:
- A
GetSeveralAlbumsRequest.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
GetSeveralAlbumsRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetSeveralAlbumsRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Album[],
GetSeveralAlbumsRequest.Builder> - Returns:
- This instance.
-