Class ArtistSimplified.Builder
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject.Builder
-
- com.wrapper.spotify.model_objects.specification.ArtistSimplified.Builder
-
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
- ArtistSimplified
public static final class ArtistSimplified.Builder extends AbstractModelObject.Builder
Builder class for buildingArtistSimplifiedinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ArtistSimplifiedbuild()Build a model object with the information set in the builder object.ArtistSimplified.BuildersetExternalUrls(ExternalUrl externalUrls)Set external URLs of the artist to be built.ArtistSimplified.BuildersetHref(java.lang.String href)Set href of Spotify Web API endpoint of the artist to be built.ArtistSimplified.BuildersetId(java.lang.String id)Set artist ID of the artist to be built.ArtistSimplified.BuildersetName(java.lang.String name)Set the name of the artist to be built.ArtistSimplified.BuildersetType(ModelObjectType type)Set the type of the model object.ArtistSimplified.BuildersetUri(java.lang.String uri)Set the Spotify artist URI of the artist to be built.
-
-
-
Method Detail
-
setExternalUrls
public ArtistSimplified.Builder setExternalUrls(ExternalUrl externalUrls)
Set external URLs of the artist to be built.- Parameters:
externalUrls-ExternalUrlobject.- Returns:
- A
ArtistSimplified.Builder.
-
setHref
public ArtistSimplified.Builder setHref(java.lang.String href)
Set href of Spotify Web API endpoint of the artist to be built.- Parameters:
href- Spotify Web API endpoint URL.- Returns:
- A
ArtistSimplified.Builder.
-
setId
public ArtistSimplified.Builder setId(java.lang.String id)
Set artist ID of the artist to be built.- Parameters:
id- Spotify artist ID.- Returns:
- A
ArtistSimplified.Builder.
-
setName
public ArtistSimplified.Builder setName(java.lang.String name)
Set the name of the artist to be built.- Parameters:
name- The artist name.- Returns:
- A
ArtistSimplified.Builder.
-
setType
public ArtistSimplified.Builder setType(ModelObjectType type)
Set the type of the model object. In this case "artist".- Parameters:
type- TheModelObjectType.- Returns:
- A
ArtistSimplified.Builder.
-
setUri
public ArtistSimplified.Builder setUri(java.lang.String uri)
Set the Spotify artist URI of the artist to be built.- Parameters:
uri- Spotify artist URI.- Returns:
- A
ArtistSimplified.Builder.
-
build
public ArtistSimplified 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.
-
-