java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.specification.Show.Builder
All Implemented Interfaces:
IModelObject.Builder
Enclosing class:
Show

public static final class Show.Builder extends AbstractModelObject.Builder
Builder class for building Show instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setAvailableMarkets

      public Show.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 Show.Builder.
    • setCopyrights

      public Show.Builder setCopyrights(Copyright... copyrights)
      Set the copyrights of the show to be built.
      Parameters:
      copyrights - Copyright objects.
      Returns:
      A Show.Builder.
    • setDescription

      public Show.Builder setDescription(String description)
      Set the description for the show to be built.
      Parameters:
      description - The description of the show.
      Returns:
      A Show.Builder.
    • setExplicit

      public Show.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 Show.Builder.
    • setEpisodes

      public Show.Builder setEpisodes(Paging<EpisodeSimplified> episodes)
      Set a list of the show's episodes.
      Parameters:
      episodes - A Paging object containing EpisodeSimplified objects.
      Returns:
      A Show.Builder.
    • setExternalUrls

      public Show.Builder setExternalUrls(ExternalUrl externalUrls)
      Set the external URLs for the show to be built.
      Parameters:
      externalUrls - The ExternalUrl for the show object.
      Returns:
      A Show.Builder.
    • setHref

      public Show.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 Show.Builder.
    • setId

      public Show.Builder setId(String id)
      Set the Spotify ID for the show to be built.
      Parameters:
      id - Spotify show ID.
      Returns:
      A Show.Builder.
    • setImages

      public Show.Builder setImages(Image... images)
      Set the cover art for the show to be built.
      Parameters:
      images - Image objects.
      Returns:
      A Show.Builder.
    • setExternallyHosted

      public Show.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 Show.Builder.
    • setLanguages

      public Show.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 Show.Builder.
    • setMediaType

      public Show.Builder setMediaType(String mediaType)
      Set the media type of the show.
      Parameters:
      mediaType - The media type of the show.
      Returns:
      A Show.Builder.
    • setName

      public Show.Builder setName(String name)
      Set the name for the show to be built.
      Parameters:
      name - The name of the show.
      Returns:
      A Show.Builder.
    • setPublisher

      public Show.Builder setPublisher(String publisher)
      Set the publisher for the show to be built.
      Parameters:
      publisher - The publisher of the show.
      Returns:
      A Show.Builder.
    • setType

      public Show.Builder setType(ModelObjectType type)
      Set the type of the model object. In this case "show".
      Parameters:
      type - The ModelObjectType.
      Returns:
      A Show.Builder.
    • setUri

      public Show.Builder setUri(String uri)
      Set the Spotify URI for the show to be built.
      Parameters:
      uri - The Spotify URI for the show.
      Returns:
      A Show.Builder.
    • build

      public Show 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.