Class ShowSimplified.Builder
- java.lang.Object
-
- se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
-
- se.michaelthelin.spotify.model_objects.specification.ShowSimplified.Builder
-
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
- ShowSimplified
public static final class ShowSimplified.Builder extends AbstractModelObject.Builder
Builder class for buildingShowSimplifiedinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShowSimplifiedbuild()Build a model object with the information set in the builder object.ShowSimplified.BuildersetAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets)Set the available markets of the show to be built.ShowSimplified.BuildersetCopyrights(Copyright... copyrights)Set the copyrights of the show to be built.ShowSimplified.BuildersetDescription(String description)Set the description for the show to be built.ShowSimplified.BuildersetExplicit(Boolean explicit)Set whether the show to be built is explicit or not.ShowSimplified.BuildersetExternallyHosted(Boolean externallyHosted)Set whether the show to be built is hosted outside of Spotify's CDN.ShowSimplified.BuildersetExternalUrls(ExternalUrl externalUrls)Set the external URLs for the show to be built.ShowSimplified.BuildersetHref(String href)Set the link to the Web API endpoint providing full details of the show to be built.ShowSimplified.BuildersetId(String id)Set the Spotify ID for the show to be built.ShowSimplified.BuildersetImages(Image... images)Set the cover art for the show to be built.ShowSimplified.BuildersetLanguages(String[] languages)Set a list of the languages used in the show to be built.ShowSimplified.BuildersetMediaType(String mediaType)Set the media type of the show.ShowSimplified.BuildersetName(String name)Set the name for the show to be built.ShowSimplified.BuildersetPublisher(String publisher)Set the publisher for the show to be built.ShowSimplified.BuildersetType(ModelObjectType type)Set the type of the model object.ShowSimplified.BuildersetUri(String uri)Set the Spotify URI for the show to be built.
-
-
-
Method Detail
-
setAvailableMarkets
public ShowSimplified.Builder setAvailableMarkets(com.neovisionaries.i18n.CountryCode... availableMarkets)
Set the available markets of the show to be built.- Parameters:
availableMarkets- A list of the countries in which the show can be played, identified by their ISO 3166-1 alpha-2 code.- Returns:
- A
ShowSimplified.Builder.
-
setCopyrights
public ShowSimplified.Builder setCopyrights(Copyright... copyrights)
Set the copyrights of the show to be built.- Parameters:
copyrights-Copyrightobjects.- Returns:
- A
ShowSimplified.Builder.
-
setDescription
public ShowSimplified.Builder setDescription(String description)
Set the description for the show to be built.- Parameters:
description- The description of the show.- Returns:
- A
ShowSimplified.Builder.
-
setExplicit
public ShowSimplified.Builder setExplicit(Boolean explicit)
Set whether the show to be built is explicit or not.- Parameters:
explicit- Whether or not the show has explicit content (true = yes it does; false = no it does not OR unknown).- Returns:
- A
ShowSimplified.Builder.
-
setExternalUrls
public ShowSimplified.Builder setExternalUrls(ExternalUrl externalUrls)
Set the external URLs for the show to be built.- Parameters:
externalUrls- TheExternalUrlfor the show object.- Returns:
- A
ShowSimplified.Builder.
-
setHref
public ShowSimplified.Builder setHref(String href)
Set the link to the Web API endpoint providing full details of the show to be built.- Parameters:
href- The link to the Web API endpoint providing full details of the show.- Returns:
- A
ShowSimplified.Builder.
-
setId
public ShowSimplified.Builder setId(String id)
Set the Spotify ID for the show to be built.- Parameters:
id- Spotify show ID.- Returns:
- A
ShowSimplified.Builder.
-
setImages
public ShowSimplified.Builder setImages(Image... images)
Set the cover art for the show to be built.- Parameters:
images-Imageobjects.- Returns:
- A
ShowSimplified.Builder.
-
setExternallyHosted
public ShowSimplified.Builder setExternallyHosted(Boolean externallyHosted)
Set whether the show to be built is hosted outside of Spotify's CDN.- Parameters:
externallyHosted- True if the show is hosted outside of Spotify’s CDN.- Returns:
- A
ShowSimplified.Builder.
-
setLanguages
public ShowSimplified.Builder setLanguages(String[] languages)
Set a list of the languages used in the show to be built.- Parameters:
languages- An array of ISO 3166-1 alpha-2 country codes.- Returns:
- A
ShowSimplified.Builder.
-
setMediaType
public ShowSimplified.Builder setMediaType(String mediaType)
Set the media type of the show.- Parameters:
mediaType- The media type of the show.- Returns:
- A
ShowSimplified.Builder.
-
setName
public ShowSimplified.Builder setName(String name)
Set the name for the show to be built.- Parameters:
name- The name of the show.- Returns:
- A
ShowSimplified.Builder.
-
setPublisher
public ShowSimplified.Builder setPublisher(String publisher)
Set the publisher for the show to be built.- Parameters:
publisher- The publisher of the show.- Returns:
- A
ShowSimplified.Builder.
-
setType
public ShowSimplified.Builder setType(ModelObjectType type)
Set the type of the model object. In this case "show".- Parameters:
type- TheModelObjectType.- Returns:
- A
ShowSimplified.Builder.
-
setUri
public ShowSimplified.Builder setUri(String uri)
Set the Spotify URI for the show to be built.- Parameters:
uri- The Spotify URI for the show.- Returns:
- A
ShowSimplified.Builder.
-
build
public ShowSimplified 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.
-
-