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
Builder class for building
ShowSimplified
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setAvailableMarkets
(com.neovisionaries.i18n.CountryCode... availableMarkets) Set the available markets of the show to be built.setCopyrights
(Copyright... copyrights) Set the copyrights of the show to be built.setDescription
(String description) Set the description for the show to be built.setExplicit
(Boolean explicit) Set whether the show to be built is explicit or not.setExternallyHosted
(Boolean externallyHosted) Set whether the show to be built is hosted outside of Spotify's CDN.setExternalUrls
(ExternalUrl externalUrls) Set the external URLs for the show to be built.Set the link to the Web API endpoint providing full details of the show to be built.Set the Spotify ID for the show to be built.Set the cover art for the show to be built.setLanguages
(String[] languages) Set a list of the languages used in the show to be built.setMediaType
(String mediaType) Set the media type of the show.Set the name for the show to be built.setPublisher
(String publisher) Set the publisher for the show to be built.setType
(ModelObjectType type) Set the type of the model object.Set the Spotify URI for the show to be built.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
Set the copyrights of the show to be built.- Parameters:
copyrights
-Copyright
objects.- Returns:
- A
ShowSimplified.Builder
.
-
setDescription
Set the description for the show to be built.- Parameters:
description
- The description of the show.- Returns:
- A
ShowSimplified.Builder
.
-
setExplicit
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
Set the external URLs for the show to be built.- Parameters:
externalUrls
- TheExternalUrl
for the show object.- Returns:
- A
ShowSimplified.Builder
.
-
setHref
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
Set the Spotify ID for the show to be built.- Parameters:
id
- Spotify show ID.- Returns:
- A
ShowSimplified.Builder
.
-
setImages
Set the cover art for the show to be built.- Parameters:
images
-Image
objects.- Returns:
- A
ShowSimplified.Builder
.
-
setExternallyHosted
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
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
Set the media type of the show.- Parameters:
mediaType
- The media type of the show.- Returns:
- A
ShowSimplified.Builder
.
-
setName
Set the name for the show to be built.- Parameters:
name
- The name of the show.- Returns:
- A
ShowSimplified.Builder
.
-
setPublisher
Set the publisher for the show to be built.- Parameters:
publisher
- The publisher of the show.- Returns:
- A
ShowSimplified.Builder
.
-
setType
Set the type of the model object. In this case "show".- Parameters:
type
- TheModelObjectType
.- Returns:
- A
ShowSimplified.Builder
.
-
setUri
Set the Spotify URI for the show to be built.- Parameters:
uri
- The Spotify URI for the show.- Returns:
- A
ShowSimplified.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build 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.
-