Class UnfollowArtistsOrUsersRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,UnfollowArtistsOrUsersRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,UnfollowArtistsOrUsersRequest.Builder>
se.michaelthelin.spotify.requests.data.follow.UnfollowArtistsOrUsersRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
UnfollowArtistsOrUsersRequest.Builder>
- Enclosing class:
UnfollowArtistsOrUsersRequest
public static final class UnfollowArtistsOrUsersRequest.Builder
extends AbstractDataRequest.Builder<String,UnfollowArtistsOrUsersRequest.Builder>
Builder class for building an
UnfollowArtistsOrUsersRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.ids
(com.google.gson.JsonArray ids) The artist or user IDs setter.The artist or user IDs setter.protected UnfollowArtistsOrUsersRequest.Builder
self()
Return this instance to simulate a self-type.type
(ModelObjectType type) The ID type setter.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 newUnfollowArtistsOrUsersRequest.Builder
instance.Modifying the list of artists or users the current user follows requires authorization of the
user-follow-modify
scope.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
type
The ID type setter.- Parameters:
type
- Required. The ID type: eitherartist
oruser
.- Returns:
- An
UnfollowArtistsOrUsersRequest.Builder
.
-
ids
The artist or user IDs setter.- Parameters:
ids
- Optional. A comma-separated list of the artist or the user Spotify IDs. A maximum of 50 IDs can be sent in one request.- Returns:
- An
UnfollowArtistsOrUsersRequest.Builder
. - See Also:
-
ids
The artist or user IDs setter.Note: If the ids have already been set with
ids(String)
, any ids added here will be ignored.- Parameters:
ids
- Optional. A JSON array of the artist or the user Spotify IDs. A maximum of 50 IDs can be sent in one request.- Returns:
- An
UnfollowArtistsOrUsersRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
UnfollowArtistsOrUsersRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
UnfollowArtistsOrUsersRequest.Builder> - Returns:
- This instance.
-