IModelObject.Builderpublic static final class Playlist.Builder extends AbstractModelObject.Builder
Playlist instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
Playlist |
build() |
Build a model object with the information set in the builder object.
|
Playlist.Builder |
setCollaborative(Boolean collaborative) |
Set whether the playlist to be built is collaborative or not.
|
Playlist.Builder |
setDescription(String description) |
Set the description of the playlist to be built.
|
Playlist.Builder |
setExternalUrls(ExternalUrl externalUrls) |
Set the external URLs of the playlist to be built.
|
Playlist.Builder |
setFollowers(Followers followers) |
Set information about the followers of the playlist to be built.
|
Playlist.Builder |
setHref(String href) |
Set the link to the Spotify Web API endpoint providing full details of the playlist.
|
Playlist.Builder |
setId(String id) |
Set the Spotify ID for the playlist to be built.
|
Playlist.Builder |
setImages(Image... images) |
Set the cover image of the playlist to be built.
|
Playlist.Builder |
setName(String name) |
Set the name of the playlist to be built.
|
Playlist.Builder |
setOwner(User owner) |
Set the owner of the playlist to be built.
|
Playlist.Builder |
setPublicAccess(Boolean publicAccess) |
Set whether the playlist to be built is available in public or not.
|
Playlist.Builder |
setSnapshotId(String snapshotId) |
Set the version identifier for the playlist to be built.
|
Playlist.Builder |
setTracks(Paging<PlaylistTrack> tracks) |
Set the tracks of the playlist to be built.
|
Playlist.Builder |
setType(ModelObjectType type) |
Set the type of the model object.
|
Playlist.Builder |
setUri(String uri) |
Set the Spotify URI
of the playlist to be built.
|
public Playlist.Builder setCollaborative(Boolean collaborative)
collaborative - true if the owner allows other users to modify the playlist, false if not.Playlist.Builder.public Playlist.Builder setDescription(String description)
description - Playlist description.Playlist.Builder.public Playlist.Builder setExternalUrls(ExternalUrl externalUrls)
externalUrls - Known external URLs for this playlist.Playlist.Builder.public Playlist.Builder setFollowers(Followers followers)
followers - Information about the followers of the playlist.Playlist.Builder.public Playlist.Builder setHref(String href)
href - A link to the Spotify Web API endpoint providing full details of the playlist.Playlist.Builder.public Playlist.Builder setId(String id)
id - The Spotify ID for the playlist.Playlist.Builder.public Playlist.Builder setImages(Image... images)
images - An array of images in different sizes.Playlist.Builder.public Playlist.Builder setName(String name)
name - The playlist name.Playlist.Builder.public Playlist.Builder setOwner(User owner)
owner - A user object.Playlist.Builder.public Playlist.Builder setPublicAccess(Boolean publicAccess)
publicAccess - true the playlist is public, false the playlist is private, null
the playlist status is not relevant.Playlist.Builder.public Playlist.Builder setSnapshotId(String snapshotId)
snapshotId - The version identifier for the playlist.Playlist.Builder.public Playlist.Builder setTracks(Paging<PlaylistTrack> tracks)
tracks - Information about the tracks of the playlist.Playlist.Builder.public Playlist.Builder setType(ModelObjectType type)
type - The model object type.Playlist.Builder.public Playlist.Builder setUri(String uri)
uri - The Spotify playlist URI.Playlist.Builder.public Playlist build()
IModelObject.BuilderCopyright © 2019. All rights reserved.