public static final class EpisodeSimplified.Builder extends AbstractModelObject.Builder
EpisodeSimplified instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EpisodeSimplified |
build()
Build a model object with the information set in the builder object.
|
EpisodeSimplified.Builder |
setAudioPreviewUrl(String audioPreviewUrl)
Set the URL to a audio preview for the episode to be built.
|
EpisodeSimplified.Builder |
setDescription(String description)
Set the description for the episode to be built.
|
EpisodeSimplified.Builder |
setDurationMs(Integer durationMs)
Set the duration for the episode to be built.
|
EpisodeSimplified.Builder |
setExplicit(Boolean explicit)
Set whether the episode to be built is explicit or not.
|
EpisodeSimplified.Builder |
setExternallyHosted(Boolean externallyHosted)
Set whether the episode to be built is hosted outside of Spotify's CDN.
|
EpisodeSimplified.Builder |
setExternalUrls(ExternalUrl externalUrls)
Set the external URLs for the episode to be built.
|
EpisodeSimplified.Builder |
setHref(String href)
Set the link to the Web API endpoint providing full details of the episode to be built.
|
EpisodeSimplified.Builder |
setId(String id)
Set the Spotify ID for the episode to be built.
|
EpisodeSimplified.Builder |
setImages(Image... images)
Set the cover art for the episode to be built.
|
EpisodeSimplified.Builder |
setLanguages(String... languages)
Set a list of the languages used in the episode to be built.
|
EpisodeSimplified.Builder |
setName(String name)
Set the name for the episode to be built.
|
EpisodeSimplified.Builder |
setPlayable(Boolean playable)
Set whether the episode to be built is playable in the given market.
|
EpisodeSimplified.Builder |
setReleaseDate(String releaseDate)
Set the release date for the episode to be built.
|
EpisodeSimplified.Builder |
setReleaseDatePrecision(ReleaseDatePrecision releaseDatePrecision)
Set the release date precision for the episode to be built.
|
EpisodeSimplified.Builder |
setResumePoint(ResumePoint resumePoint)
Set the user's most recent resume point for the episode to be built.
|
EpisodeSimplified.Builder |
setType(ModelObjectType type)
Set the type of model object.
|
EpisodeSimplified.Builder |
setUri(String uri)
Set the Spotify URI for the episode to be built.
|
public EpisodeSimplified.Builder setAudioPreviewUrl(String audioPreviewUrl)
audioPreviewUrl - The URL to an audio preview.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setDescription(String description)
description - The description of the episode.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setDurationMs(Integer durationMs)
durationMs - The duration of the episode in milliseconds.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setExplicit(Boolean explicit)
explicit - Whether or not the episode has explicit content (true = yes it does; false = no it does not OR unknown).EpisodeSimplified.Builder.public EpisodeSimplified.Builder setExternalUrls(ExternalUrl externalUrls)
externalUrls - The ExternalUrl for the episode object.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setHref(String href)
href - The link to the Web API endpoint providing full details of the episode.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setId(String id)
id - Spotify episode ID.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setImages(Image... images)
images - Image objects.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setExternallyHosted(Boolean externallyHosted)
externallyHosted - True if the episode is hosted outside of Spotify’s CDN.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setPlayable(Boolean playable)
playable - True if the episode is playable in the given market. Otherwise false.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setLanguages(String... languages)
languages - An array of ISO 3166-1 alpha-2 country codes.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setName(String name)
name - The name of the episode.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setReleaseDate(String releaseDate)
releaseDate - The release date of the episode.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setReleaseDatePrecision(ReleaseDatePrecision releaseDatePrecision)
releaseDatePrecision - The ReleaseDatePrecision of the episode.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setResumePoint(ResumePoint resumePoint)
resumePoint - The ResumePoint of the episode.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setType(ModelObjectType type)
type - The ModelObjectType.EpisodeSimplified.Builder.public EpisodeSimplified.Builder setUri(String uri)
uri - The Spotify URI for the episode.EpisodeSimplified.Builder.public EpisodeSimplified build()
IModelObject.BuilderCopyright © 2020. All rights reserved.