Class GetArtistsRelatedArtistsRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Artist[],GetArtistsRelatedArtistsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Artist[],GetArtistsRelatedArtistsRequest.Builder>
se.michaelthelin.spotify.requests.data.artists.GetArtistsRelatedArtistsRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<Artist[],
GetArtistsRelatedArtistsRequest.Builder>
- Enclosing class:
GetArtistsRelatedArtistsRequest
public static final class GetArtistsRelatedArtistsRequest.Builder
extends AbstractDataRequest.Builder<Artist[],GetArtistsRelatedArtistsRequest.Builder>
Builder class for building a
GetArtistsRelatedArtistsRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The artist ID setter.protected GetArtistsRelatedArtistsRequest.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 newGetArtistsRelatedArtistsRequest.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
GetArtistsRelatedArtistsRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetArtistsRelatedArtistsRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Artist[],
GetArtistsRelatedArtistsRequest.Builder> - Returns:
- This instance.
-