Class AlbumSimplifiedSpecial.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.special.AlbumSimplifiedSpecial.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
AlbumSimplifiedSpecial
Builder class for building
AlbumSimplifiedSpecial
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setAlbumType
(AlbumType albumType) Set the type of the album to be built.setArtists
(ArtistSimplified... artists) Set the artists of the album to be built.setAvailableMarkets
(com.neovisionaries.i18n.CountryCode... availableMarkets) Set the available markets of the album to be built.setExternalUrls
(ExternalUrl externalUrls) Set external URLs of the album to be built.Set href of Spotify Web API endpoint of the album to be built.Set album ID of the album to be built.Set the cover art in different sizes of the album to be built.Set the name of the album to be built.setReleaseDate
(String releaseDate) Set the release date of the album to be built.setReleaseDatePrecision
(ReleaseDatePrecision releaseDatePrecision) Set the release date precision of the album to be built.setTotalTracks
(Integer totalTracks) Set the number of total tracks of the album to be built.setType
(ModelObjectType type) Set the type of the model object.Set the Spotify album URI of the album to be built.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAlbumType
Set the type of the album to be built.- Parameters:
albumType
- TheAlbumType
.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setArtists
Set the artists of the album to be built.- Parameters:
artists
-ArtistSimplified
objects.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setAvailableMarkets
public AlbumSimplifiedSpecial.Builder setAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets) Set the available markets of the album to be built.- Parameters:
availableMarkets
- ISO 3166-1 alpha-2 country codes.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setExternalUrls
Set external URLs of the album to be built.- Parameters:
externalUrls
-ExternalUrl
object.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setHref
Set href of Spotify Web API endpoint of the album to be built.- Parameters:
href
- Spotify Web API endpoint URL.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setId
Set album ID of the album to be built.- Parameters:
id
- Spotify album ID.- Returns:
- A
Album.Builder
.
-
setImages
Set the cover art in different sizes of the album to be built.- Parameters:
images
-Image
objects.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setName
Set the name of the album to be built.- Parameters:
name
- The album name.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setReleaseDate
Set the release date of the album to be built.- Parameters:
releaseDate
- The release date of the album.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setReleaseDatePrecision
public AlbumSimplifiedSpecial.Builder setReleaseDatePrecision(ReleaseDatePrecision releaseDatePrecision) Set the release date precision of the album to be built.- Parameters:
releaseDatePrecision
- TheReleaseDatePrecision
of the album.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setTotalTracks
Set the number of total tracks of the album to be built.- Parameters:
totalTracks
- The number of total tracks of the album.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setType
Set the type of the model object. In this case "album".- Parameters:
type
- TheModelObjectType
.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
setUri
Set the Spotify album URI of the album to be built.- Parameters:
uri
- Spotify album URI.- Returns:
- A
AlbumSimplifiedSpecial.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build a model object with the information set in the builder object.
The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
-