IModelObject.Builderpublic static final class TrackSimplified.Builder extends AbstractModelObject.Builder
TrackSimplified instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
TrackSimplified |
build() |
Build a model object with the information set in the builder object.
|
TrackSimplified.Builder |
setArtists(ArtistSimplified... artists) |
Set the artists of the track to be built.
|
TrackSimplified.Builder |
setAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets) |
Set the available markets of the track to be built.
|
TrackSimplified.Builder |
setDiscNumber(Integer discNumber) |
Set the disc numer of the track to be built.
|
TrackSimplified.Builder |
setDurationMs(Integer durationMs) |
Set the duration in milliseconds of the track to be built.
|
TrackSimplified.Builder |
setExplicit(Boolean explicit) |
Set whether the track to be built is explicit or not.
|
TrackSimplified.Builder |
setExternalUrls(ExternalUrl externalUrls) |
Set external URLs of the track to be built.
|
TrackSimplified.Builder |
setHref(String href) |
Set href of Spotify Web API endpoint of the track to be built.
|
TrackSimplified.Builder |
setId(String id) |
Set track ID of the track to be built.
|
TrackSimplified.Builder |
setIsPlayable(Boolean isPlayable) |
Set whether the track to be built is playable in your market region or not.
|
TrackSimplified.Builder |
setLinkedFrom(TrackLink linkedFrom) |
Set the track link object of the track to be built.
|
TrackSimplified.Builder |
setName(String name) |
Set the name of the track to be built.
|
TrackSimplified.Builder |
setPreviewUrl(String previewUrl) |
Set the preview URL of the track to be built.
|
TrackSimplified.Builder |
setTrackNumber(Integer trackNumber) |
Set the track number of the track to be built.
|
TrackSimplified.Builder |
setType(ModelObjectType type) |
Set the type of the model object.
|
TrackSimplified.Builder |
setUri(String uri) |
Set Spotify URI of the track to be built.
|
public TrackSimplified.Builder setArtists(ArtistSimplified... artists)
artists - The artists who performed the track.TrackSimplified.Builder.public TrackSimplified.Builder setAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets)
availableMarkets - A list of the countries in which the track can be played, identified by their
ISO 3166-1 alpha-2 code.TrackSimplified.Builder.public TrackSimplified.Builder setDiscNumber(Integer discNumber)
discNumber - The disc number (usually 1 unless the album consists of more than one disc).TrackSimplified.Builder.public TrackSimplified.Builder setDurationMs(Integer durationMs)
durationMs - The track length in milliseconds.TrackSimplified.Builder.public TrackSimplified.Builder setExplicit(Boolean explicit)
explicit - Whether or not the track has explicit lyrics (true = yes it does; false = no it
does not OR unknown).TrackSimplified.Builder.public TrackSimplified.Builder setExternalUrls(ExternalUrl externalUrls)
externalUrls - Known external URLs for the track.TrackSimplified.Builder.public TrackSimplified.Builder setHref(String href)
href - A link to the Web API endpoint providing full details of the track.TrackSimplified.Builder.public TrackSimplified.Builder setId(String id)
id - The Spotify ID for the track.TrackSimplified.Builder.public TrackSimplified.Builder setIsPlayable(Boolean isPlayable)
isPlayable - If true, the track is playable in the given market. Otherwise false.TrackSimplified.Builder.public TrackSimplified.Builder setLinkedFrom(TrackLink linkedFrom)
linkedFrom - The track in the linked_from object contains information about the originally requested
track.TrackSimplified.Builder.public TrackSimplified.Builder setName(String name)
name - Track name.TrackSimplified.Builder.public TrackSimplified.Builder setPreviewUrl(String previewUrl)
previewUrl - A link to a 30 second preview (MP3 format) of the track. null if not available.TrackSimplified.Builder.public TrackSimplified.Builder setTrackNumber(Integer trackNumber)
trackNumber - The track number.TrackSimplified.Builder.public TrackSimplified.Builder setType(ModelObjectType type)
type - The object type: "track".TrackSimplified.Builder.public TrackSimplified.Builder setUri(String uri)
uri - The Spotify URI
for the track.TrackSimplified.Builder.public TrackSimplified build()
IModelObject.BuilderCopyright © 2019. All rights reserved.