Class UploadCustomPlaylistCoverImageRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,UploadCustomPlaylistCoverImageRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,UploadCustomPlaylistCoverImageRequest.Builder>
se.michaelthelin.spotify.requests.data.playlists.UploadCustomPlaylistCoverImageRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
UploadCustomPlaylistCoverImageRequest.Builder>
- Enclosing class:
UploadCustomPlaylistCoverImageRequest
public static final class UploadCustomPlaylistCoverImageRequest.Builder
extends AbstractDataRequest.Builder<String,UploadCustomPlaylistCoverImageRequest.Builder>
Builder class for building an
UploadCustomPlaylistCoverImageRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.image_data
(String image_data) The image data setter.playlist_id
(String playlist_id) The playlist ID setter.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 newUploadCustomPlaylistCoverImageRequest.Builder
.This access token must be tied to the user who owns the playlist, and must have the scope
ugc-image-upload
granted. In addition, the token must also containplaylist-modify-public
and/orplaylist-modify-private
, depending the public status of the playlist you want to update.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
playlist_id
The playlist ID setter.- Parameters:
playlist_id
- The Spotify ID for the playlist.- Returns:
- A
UploadCustomPlaylistCoverImageRequest.Builder
. - See Also:
-
image_data
The image data setter.- Parameters:
image_data
- Base64 encoded JPEG image data, maximum payload size is 256 KB.- Returns:
- A
UploadCustomPlaylistCoverImageRequest.Builder
.
-
build
The request build method.- Returns:
- A custom
UploadCustomPlaylistCoverImageRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
UploadCustomPlaylistCoverImageRequest.Builder> - Returns:
- This instance.
-