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
public static final class AlbumSimplifiedSpecial.Builder extends AbstractModelObject.Builder
Builder class for buildingAlbumSimplifiedSpecialinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlbumSimplifiedSpecialbuild()Build a model object with the information set in the builder object.AlbumSimplifiedSpecial.BuildersetAlbumType(AlbumType albumType)Set the type of the album to be built.AlbumSimplifiedSpecial.BuildersetArtists(ArtistSimplified... artists)Set the artists of the album to be built.AlbumSimplifiedSpecial.BuildersetAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets)Set the available markets of the album to be built.AlbumSimplifiedSpecial.BuildersetExternalUrls(ExternalUrl externalUrls)Set external URLs of the album to be built.AlbumSimplifiedSpecial.BuildersetHref(String href)Set href of Spotify Web API endpoint of the album to be built.AlbumSimplifiedSpecial.BuildersetId(String id)Set album ID of the album to be built.AlbumSimplifiedSpecial.BuildersetImages(Image... images)Set the cover art in different sizes of the album to be built.AlbumSimplifiedSpecial.BuildersetName(String name)Set the name of the album to be built.AlbumSimplifiedSpecial.BuildersetReleaseDate(String releaseDate)Set the release date of the album to be built.AlbumSimplifiedSpecial.BuildersetReleaseDatePrecision(ReleaseDatePrecision releaseDatePrecision)Set the release date precision of the album to be built.AlbumSimplifiedSpecial.BuildersetTotalTracks(Integer totalTracks)Set the number of total tracks of the album to be built.AlbumSimplifiedSpecial.BuildersetType(ModelObjectType type)Set the type of the model object.AlbumSimplifiedSpecial.BuildersetUri(String uri)Set the Spotify album URI of the album to be built.
-
-
-
Method Detail
-
setAlbumType
public AlbumSimplifiedSpecial.Builder setAlbumType(AlbumType albumType)
Set the type of the album to be built.- Parameters:
albumType- TheAlbumType.- Returns:
- A
AlbumSimplifiedSpecial.Builder.
-
setArtists
public AlbumSimplifiedSpecial.Builder setArtists(ArtistSimplified... artists)
Set the artists of the album to be built.- Parameters:
artists-ArtistSimplifiedobjects.- 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
public AlbumSimplifiedSpecial.Builder setExternalUrls(ExternalUrl externalUrls)
Set external URLs of the album to be built.- Parameters:
externalUrls-ExternalUrlobject.- Returns:
- A
AlbumSimplifiedSpecial.Builder.
-
setHref
public AlbumSimplifiedSpecial.Builder setHref(String href)
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
public AlbumSimplifiedSpecial.Builder setId(String id)
Set album ID of the album to be built.- Parameters:
id- Spotify album ID.- Returns:
- A
Album.Builder.
-
setImages
public AlbumSimplifiedSpecial.Builder setImages(Image... images)
Set the cover art in different sizes of the album to be built.- Parameters:
images-Imageobjects.- Returns:
- A
AlbumSimplifiedSpecial.Builder.
-
setName
public AlbumSimplifiedSpecial.Builder setName(String name)
Set the name of the album to be built.- Parameters:
name- The album name.- Returns:
- A
AlbumSimplifiedSpecial.Builder.
-
setReleaseDate
public AlbumSimplifiedSpecial.Builder setReleaseDate(String releaseDate)
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- TheReleaseDatePrecisionof the album.- Returns:
- A
AlbumSimplifiedSpecial.Builder.
-
setTotalTracks
public AlbumSimplifiedSpecial.Builder setTotalTracks(Integer totalTracks)
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
public AlbumSimplifiedSpecial.Builder setType(ModelObjectType type)
Set the type of the model object. In this case "album".- Parameters:
type- TheModelObjectType.- Returns:
- A
AlbumSimplifiedSpecial.Builder.
-
setUri
public AlbumSimplifiedSpecial.Builder setUri(String uri)
Set the Spotify album URI of the album to be built.- Parameters:
uri- Spotify album URI.- Returns:
- A
AlbumSimplifiedSpecial.Builder.
-
build
public AlbumSimplifiedSpecial build()
Description copied from interface:IModelObject.BuilderBuild 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.
-
-