IModelObject.Builderpublic static final class Album.Builder extends AbstractModelObject.Builder
Album instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
Album |
build() |
Build a model object with the information set in the builder object.
|
Album.Builder |
setAlbumType(AlbumType albumType) |
Set the type of the album to be built.
|
Album.Builder |
setArtists(ArtistSimplified... artists) |
Set the artists of the album to be built.
|
Album.Builder |
setAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets) |
Set the available markets of the album to be built.
|
Album.Builder |
setCopyrights(Copyright... copyrights) |
Set the copyrights of the album to be built.
|
Album.Builder |
setExternalIds(ExternalId externalIds) |
Set the external IDs of the album to be built.
|
Album.Builder |
setExternalUrls(ExternalUrl externalUrls) |
Set external URLs of the album to be built.
|
Album.Builder |
setGenres(String... genres) |
Set the genres of the album to be built.
|
Album.Builder |
setHref(String href) |
Set href of Spotify Web API endpoint of the album to be built.
|
Album.Builder |
setId(String id) |
Set album ID of the album to be built.
|
Album.Builder |
setImages(Image... images) |
Set the cover art in different sizes of the album to be built.
|
Album.Builder |
setLabel(String label) |
Set the label of the album to be built.
|
Album.Builder |
setName(String name) |
Set the name of the album to be built.
|
Album.Builder |
setPopularity(Integer popularity) |
Set the popularity of the album to be built.
|
Album.Builder |
setReleaseDate(String releaseDate) |
Set the release date of the album to be built.
|
Album.Builder |
setReleaseDatePrecision(ReleaseDatePrecision releaseDatePrecision) |
Set the release date precision of the album to be built.
|
Album.Builder |
setTracks(Paging<TrackSimplified> tracks) |
Set the tracks of the album to be built.
|
Album.Builder |
setType(ModelObjectType type) |
Set the type of the model object.
|
Album.Builder |
setUri(String uri) |
Set the Spotify album URI of the album to be built.
|
public Album.Builder setAlbumType(AlbumType albumType)
albumType - The AlbumType.Album.Builder.public Album.Builder setArtists(ArtistSimplified... artists)
artists - ArtistSimplified objects.Album.Builder.public Album.Builder setAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets)
availableMarkets -
ISO 3166-1 alpha-2 country codes.Album.Builder.public Album.Builder setCopyrights(Copyright... copyrights)
copyrights - Copyright objects.Album.Builder.public Album.Builder setExternalIds(ExternalId externalIds)
externalIds - ExternalId object.Album.Builder.public Album.Builder setExternalUrls(ExternalUrl externalUrls)
externalUrls - ExternalUrl object.Album.Builder.public Album.Builder setGenres(String... genres)
genres - Genre names.Album.Builder.public Album.Builder setHref(String href)
href - Spotify Web API endpoint URL.Album.Builder.public Album.Builder setId(String id)
id - Spotify album ID.Album.Builder.public Album.Builder setImages(Image... images)
images - Image objects.Album.Builder.public Album.Builder setLabel(String label)
label - The album label.Album.Builder.public Album.Builder setName(String name)
name - The album name.Album.Builder.public Album.Builder setPopularity(Integer popularity)
popularity - The popularity of the album between 0 and 100.Album.Builder.public Album.Builder setReleaseDate(String releaseDate)
releaseDate - The release date of the album.Album.Builder.public Album.Builder setReleaseDatePrecision(ReleaseDatePrecision releaseDatePrecision)
releaseDatePrecision - The ReleaseDatePrecision of the album.Album.Builder.public Album.Builder setTracks(Paging<TrackSimplified> tracks)
tracks - A Paging object containing TrackSimplified objects.Album.Builder.public Album.Builder setType(ModelObjectType type)
type - The ModelObjectType.Album.Builder.public Album.Builder setUri(String uri)
uri -
Spotify album URI.Album.Builder.public Album build()
IModelObject.BuilderCopyright © 2019. All rights reserved.