public static final class AlbumSimplified.Builder extends AbstractModelObject.Builder
AlbumSimplified instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AlbumSimplified |
build()
Build a model object with the information set in the builder object.
|
AlbumSimplified.Builder |
setAlbumGroup(AlbumGroup albumGroup)
Set the album group of the album to be built.
|
AlbumSimplified.Builder |
setAlbumType(AlbumType albumType)
Set the type of the album to be built.
|
AlbumSimplified.Builder |
setArtists(ArtistSimplified... artists)
Set the artists of the album to be built.
|
AlbumSimplified.Builder |
setAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets)
Set the available markets of the album to be built.
|
AlbumSimplified.Builder |
setExternalUrls(ExternalUrl externalUrls)
Set external URLs of the album to be built.
|
AlbumSimplified.Builder |
setHref(String href)
Set href of Spotify Web API endpoint of the album to be built.
|
AlbumSimplified.Builder |
setId(String id)
Set album ID of the album to be built.
|
AlbumSimplified.Builder |
setImages(Image... images)
Set the cover art in different sizes of the album to be built.
|
AlbumSimplified.Builder |
setName(String name)
Set the name of the album to be built.
|
AlbumSimplified.Builder |
setReleaseDate(String releaseDate)
Set the release date of the album to be built.
|
AlbumSimplified.Builder |
setReleaseDatePrecision(ReleaseDatePrecision releaseDatePrecision)
Set the release date precision of the album to be built.
|
AlbumSimplified.Builder |
setRestrictions(Restrictions restrictions)
Set the restrictions of the album to be built.
|
AlbumSimplified.Builder |
setType(ModelObjectType type)
Set the type of the model object.
|
AlbumSimplified.Builder |
setUri(String uri)
Set the Spotify album URI of the album to be built.
|
public AlbumSimplified.Builder setAlbumGroup(AlbumGroup albumGroup)
albumGroup - The album group of the album.AlbumSimplified.Builder.public AlbumSimplified.Builder setAlbumType(AlbumType albumType)
albumType - The AlbumType.AlbumSimplified.Builder.public AlbumSimplified.Builder setArtists(ArtistSimplified... artists)
artists - ArtistSimplified objects.AlbumSimplified.Builder.public AlbumSimplified.Builder setAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets)
availableMarkets -
ISO 3166-1 alpha-2 country codes.AlbumSimplified.Builder.public AlbumSimplified.Builder setExternalUrls(ExternalUrl externalUrls)
externalUrls - ExternalUrl object.AlbumSimplified.Builder.public AlbumSimplified.Builder setHref(String href)
href - Spotify Web API endpoint URL.AlbumSimplified.Builder.public AlbumSimplified.Builder setId(String id)
id - Spotify album ID.AlbumSimplified.Builder.public AlbumSimplified.Builder setImages(Image... images)
images - Image objects.AlbumSimplified.Builder.public AlbumSimplified.Builder setName(String name)
name - The album name.AlbumSimplified.Builder.public AlbumSimplified.Builder setReleaseDate(String releaseDate)
releaseDate - The release date of the album.AlbumSimplified.Builder.public AlbumSimplified.Builder setReleaseDatePrecision(ReleaseDatePrecision releaseDatePrecision)
releaseDatePrecision - The ReleaseDatePrecision of the album.AlbumSimplified.Builder.public AlbumSimplified.Builder setRestrictions(Restrictions restrictions)
restrictions - The restrictions of the album.AlbumSimplified.Builder.public AlbumSimplified.Builder setType(ModelObjectType type)
type - The ModelObjectType.AlbumSimplified.Builder.public AlbumSimplified.Builder setUri(String uri)
uri -
Spotify album URI.AlbumSimplified.Builder.public AlbumSimplified build()
IModelObject.BuilderCopyright © 2020. All rights reserved.