Class GetUsersFollowedArtistsRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<PagingCursorbased<Artist>,GetUsersFollowedArtistsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<PagingCursorbased<Artist>,GetUsersFollowedArtistsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataPagingCursorbasedRequest.Builder<Artist,String,GetUsersFollowedArtistsRequest.Builder>
se.michaelthelin.spotify.requests.data.follow.GetUsersFollowedArtistsRequest.Builder
- All Implemented Interfaces:
IPagingCursorbasedRequestBuilder<Artist,
,String, GetUsersFollowedArtistsRequest.Builder> IRequest.Builder<PagingCursorbased<Artist>,
GetUsersFollowedArtistsRequest.Builder>
- Enclosing class:
GetUsersFollowedArtistsRequest
public static final class GetUsersFollowedArtistsRequest.Builder
extends AbstractDataPagingCursorbasedRequest.Builder<Artist,String,GetUsersFollowedArtistsRequest.Builder>
Builder class for building a
GetUsersFollowedArtistsRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe after value setter.build()
The request build method.The limit setter.protected GetUsersFollowedArtistsRequest.Builder
self()
Return this instance to simulate a self-type.type
(ModelObjectType type) The type setter.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 newGetUsersFollowedArtistsRequest.Builder
instance.Getting details of the artists or users the current user follows requires authorization of the
user-follow-read
scope.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
type
The type setter.- Parameters:
type
- Required. The ID type: currently onlyartist
is supported.- Returns:
- A
GetUsersFollowedArtistsRequest.Builder
.
-
limit
The limit setter.- Parameters:
limit
- Optional. The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.- Returns:
- A
GetUsersFollowedArtistsRequest.Builder
.
-
after
The after value setter.- Parameters:
after
- Optional. The last artist ID retrieved from the previous request.- Returns:
- A
GetUsersFollowedArtistsRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetUsersFollowedArtistsRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<PagingCursorbased<Artist>,
GetUsersFollowedArtistsRequest.Builder> - Returns:
- This instance.
-