Class GetListOfUsersPlaylistsRequest.Builder
- java.lang.Object
-
- com.wrapper.spotify.requests.AbstractRequest.Builder<BuilderType>
-
- com.wrapper.spotify.requests.data.AbstractDataRequest.Builder<GetListOfUsersPlaylistsRequest.Builder>
-
- com.wrapper.spotify.requests.data.playlists.GetListOfUsersPlaylistsRequest.Builder
-
- All Implemented Interfaces:
IRequest.Builder
- Enclosing class:
- GetListOfUsersPlaylistsRequest
public static final class GetListOfUsersPlaylistsRequest.Builder extends AbstractDataRequest.Builder<GetListOfUsersPlaylistsRequest.Builder>
Builder class for building aGetListOfUsersPlaylistsRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder(String accessToken)Create a newGetListOfUsersPlaylistsRequest.Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetListOfUsersPlaylistsRequestbuild()The request build method.GetListOfUsersPlaylistsRequest.Builderlimit(Integer limit)The limit setter.GetListOfUsersPlaylistsRequest.Builderoffset(Integer offset)The offset setter.GetListOfUsersPlaylistsRequest.Builderuser_id(String user_id)The user ID setter.-
Methods inherited from class com.wrapper.spotify.requests.AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
-
-
-
Constructor Detail
-
Builder
public Builder(String accessToken)
Create a newGetListOfUsersPlaylistsRequest.Builder.Private playlists are only retrievable for the current user and requires the
playlist-read-privatescope to have been authorized by the user. Note: This scope alone will not return collaborative playlists, even though they are always private.Collaborative playlists are only retrievable for the current user and requires the
playlist-read-collaborativescope to have been authorized by the user.- Parameters:
accessToken- Required. A valid access token from the Spotify Accounts service.- See Also:
- Spotify: Using Scopes
-
-
Method Detail
-
user_id
public GetListOfUsersPlaylistsRequest.Builder user_id(String user_id)
The user ID setter.- Parameters:
user_id- The user's Spotify user ID.- Returns:
- A
GetListOfUsersPlaylistsRequest.Builder. - See Also:
- Spotify: URIs & IDs
-
limit
public GetListOfUsersPlaylistsRequest.Builder limit(Integer limit)
The limit setter.- Parameters:
limit- Optional. The maximum number of playlists to return. Default: 20. Minimum: 1. Maximum: 50.- Returns:
- A
GetListOfUsersPlaylistsRequest.Builder.
-
offset
public GetListOfUsersPlaylistsRequest.Builder offset(Integer offset)
The offset setter.- Parameters:
offset- Optional. The index of the first playlist to return. Default: 0 (the first object). Maximum offset: 100.000. Use withlimit(Integer)to get the next set of playlists.- Returns:
- A
GetListOfUsersPlaylistsRequest.Builder.
-
build
public GetListOfUsersPlaylistsRequest build()
The request build method.- Returns:
- A custom
GetListOfUsersPlaylistsRequest.
-
-