Class AlbumSimplified.Builder
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject.Builder
-
- com.wrapper.spotify.model_objects.specification.AlbumSimplified.Builder
-
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
- AlbumSimplified
public static final class AlbumSimplified.Builder extends AbstractModelObject.Builder
Builder class for buildingAlbumSimplifiedinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description AlbumSimplifiedbuild()Build a model object with the information set in the builder object.AlbumSimplified.BuildersetAlbumType(AlbumType albumType)Set the type of the album to be built.AlbumSimplified.BuildersetArtists(ArtistSimplified... artists)Set the artists of the album to be built.AlbumSimplified.BuildersetAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets)Set the available markets of the album to be built.AlbumSimplified.BuildersetExternalUrls(ExternalUrl externalUrls)Set external URLs of the album to be built.AlbumSimplified.BuildersetHref(java.lang.String href)Set href of Spotify Web API endpoint of the album to be built.AlbumSimplified.BuildersetId(java.lang.String id)Set album ID of the album to be built.AlbumSimplified.BuildersetImages(Image... images)Set the cover art in different sizes of the album to be built.AlbumSimplified.BuildersetName(java.lang.String name)Set the name of the album to be built.AlbumSimplified.BuildersetType(ModelObjectType type)Set the type of the model object.AlbumSimplified.BuildersetUri(java.lang.String uri)Set the Spotify album URI of the album to be built.
-
-
-
Method Detail
-
setAlbumType
public AlbumSimplified.Builder setAlbumType(AlbumType albumType)
Set the type of the album to be built.- Parameters:
albumType- TheAlbumType.- Returns:
- A
Album.Builder.
-
setArtists
public AlbumSimplified.Builder setArtists(ArtistSimplified... artists)
Set the artists of the album to be built.- Parameters:
artists-ArtistSimplifiedobjects.- Returns:
- A
Album.Builder.
-
setAvailableMarkets
public AlbumSimplified.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
Album.Builder.
-
setExternalUrls
public AlbumSimplified.Builder setExternalUrls(ExternalUrl externalUrls)
Set external URLs of the album to be built.- Parameters:
externalUrls-ExternalUrlobject.- Returns:
- A
Album.Builder.
-
setHref
public AlbumSimplified.Builder setHref(java.lang.String href)
Set href of Spotify Web API endpoint of the album to be built.- Parameters:
href- Spotify Web API endpoint URL.- Returns:
- A
Album.Builder.
-
setId
public AlbumSimplified.Builder setId(java.lang.String id)
Set album ID of the album to be built.- Parameters:
id- Spotify album ID.- Returns:
- A
Album.Builder.
-
setImages
public AlbumSimplified.Builder setImages(Image... images)
Set the cover art in different sizes of the album to be built.- Parameters:
images-Imageobjects.- Returns:
- A
Album.Builder.
-
setName
public AlbumSimplified.Builder setName(java.lang.String name)
Set the name of the album to be built.- Parameters:
name- The album name.- Returns:
- A
Album.Builder.
-
setType
public AlbumSimplified.Builder setType(ModelObjectType type)
Set the type of the model object. In this case "album".- Parameters:
type- TheModelObjectType.- Returns:
- A
Album.Builder.
-
setUri
public AlbumSimplified.Builder setUri(java.lang.String uri)
Set the Spotify album URI of the album to be built.- Parameters:
uri- Spotify album URI.- Returns:
- A
Album.Builder.
-
build
public AlbumSimplified 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.
-
-