Class AlbumSimplifiedSpecial.Builder
java.lang.Object
com.wrapper.spotify.model_objects.AbstractModelObject.Builder
com.wrapper.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 building
AlbumSimplifiedSpecial instances.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
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.
-
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-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
Set external URLs of the album to be built.- Parameters:
externalUrls-ExternalUrlobject.- 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-Imageobjects.- 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- TheReleaseDatePrecisionof 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.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.
-