Class Artist.Builder
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject.Builder
-
- com.wrapper.spotify.model_objects.specification.Artist.Builder
-
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
- Artist
public static final class Artist.Builder extends AbstractModelObject.Builder
Builder class for buildingArtistinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Artistbuild()Build a model object with the information set in the builder object.Artist.BuildersetExternalUrls(ExternalUrl externalUrls)Set external URLs of the artist to be built.Artist.BuildersetFollowers(Followers followers)Set the followers object of the artist to be built.Artist.BuildersetGenres(String... genres)Set the genres of the artist to be built.Artist.BuildersetHref(String href)Set href of Spotify Web API endpoint of the artist to be built.Artist.BuildersetId(String id)Set artist ID of the artist to be built.Artist.BuildersetImages(Image... images)Set the images of the artist to be built, like the header image.Artist.BuildersetName(String name)Set the name of the artist to be built.Artist.BuildersetPopularity(Integer popularity)Set the popularity of the artist to be built.Artist.BuildersetType(ModelObjectType type)Set the type of the model object.Artist.BuildersetUri(String uri)Set the Spotify artist URI of the artist to be built.
-
-
-
Method Detail
-
setExternalUrls
public Artist.Builder setExternalUrls(ExternalUrl externalUrls)
Set external URLs of the artist to be built.- Parameters:
externalUrls-ExternalUrlobject.- Returns:
- A
Artist.Builder.
-
setFollowers
public Artist.Builder setFollowers(Followers followers)
Set the followers object of the artist to be built.- Parameters:
followers- AFollowersobject.- Returns:
- A
Artist.Builder.
-
setGenres
public Artist.Builder setGenres(String... genres)
Set the genres of the artist to be built.- Parameters:
genres- Genre names.- Returns:
- A
Artist.Builder.
-
setHref
public Artist.Builder setHref(String href)
Set href of Spotify Web API endpoint of the artist to be built.- Parameters:
href- Spotify Web API endpoint URL.- Returns:
- A
Artist.Builder.
-
setId
public Artist.Builder setId(String id)
Set artist ID of the artist to be built.- Parameters:
id- Spotify artist ID.- Returns:
- A
Artist.Builder.
-
setImages
public Artist.Builder setImages(Image... images)
Set the images of the artist to be built, like the header image.- Parameters:
images-Imageobjects.- Returns:
- A
Artist.Builder.
-
setName
public Artist.Builder setName(String name)
Set the name of the artist to be built.- Parameters:
name- The artist name.- Returns:
- A
Artist.Builder.
-
setPopularity
public Artist.Builder setPopularity(Integer popularity)
Set the popularity of the artist to be built.- Parameters:
popularity- The popularity of the artist between 0 and 100.- Returns:
- A
Artist.Builder.
-
setType
public Artist.Builder setType(ModelObjectType type)
Set the type of the model object. In this case "artist".- Parameters:
type- TheModelObjectType.- Returns:
- A
Artist.Builder.
-
setUri
public Artist.Builder setUri(String uri)
Set the Spotify artist URI of the artist to be built.- Parameters:
uri- Spotify artist URI.- Returns:
- A
Artist.Builder.
-
build
public Artist 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.
-
-