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