IModelObject.Builderpublic static final class Artist.Builder extends AbstractModelObject.Builder
Artist instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
Artist |
build() |
Build a model object with the information set in the builder object.
|
Artist.Builder |
setExternalUrls(ExternalUrl externalUrls) |
Set external URLs of the artist to be built.
|
Artist.Builder |
setFollowers(Followers followers) |
Set the followers object of the artist to be built.
|
Artist.Builder |
setGenres(String... genres) |
Set the genres of the artist to be built.
|
Artist.Builder |
setHref(String href) |
Set href of Spotify Web API endpoint of the artist to be built.
|
Artist.Builder |
setId(String id) |
Set artist ID of the artist to be built.
|
Artist.Builder |
setImages(Image... images) |
Set the images of the artist to be built, like the header image.
|
Artist.Builder |
setName(String name) |
Set the name of the artist to be built.
|
Artist.Builder |
setPopularity(Integer popularity) |
Set the popularity of the artist to be built.
|
Artist.Builder |
setType(ModelObjectType type) |
Set the type of the model object.
|
Artist.Builder |
setUri(String uri) |
Set the Spotify artist URI of the artist to be built.
|
public Artist.Builder setExternalUrls(ExternalUrl externalUrls)
externalUrls - ExternalUrl object.Artist.Builder.public Artist.Builder setFollowers(Followers followers)
followers - A Followers object.Artist.Builder.public Artist.Builder setGenres(String... genres)
genres - Genre names.Artist.Builder.public Artist.Builder setHref(String href)
href - Spotify Web API endpoint URL.Artist.Builder.public Artist.Builder setId(String id)
id - Spotify artist ID.Artist.Builder.public Artist.Builder setImages(Image... images)
images - Image objects.Artist.Builder.public Artist.Builder setName(String name)
name - The artist name.Artist.Builder.public Artist.Builder setPopularity(Integer popularity)
popularity - The popularity of the artist between 0 and 100.Artist.Builder.public Artist.Builder setType(ModelObjectType type)
type - The ModelObjectType.Artist.Builder.public Artist.Builder setUri(String uri)
uri -
Spotify artist URI.Artist.Builder.public Artist build()
IModelObject.BuilderCopyright © 2019. All rights reserved.