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