Class Show.ShowBuilder<C extends Show,B extends Show.ShowBuilder<C,B>>

java.lang.Object
com.amilesend.tvmaze.client.model.Resource.ResourceBuilder<Show,ResourceLink,C,B>
com.amilesend.tvmaze.client.model.Show.ShowBuilder<C,B>
Enclosing class:
Show

public abstract static class Show.ShowBuilder<C extends Show,B extends Show.ShowBuilder<C,B>> extends Resource.ResourceBuilder<Show,ResourceLink,C,B>
  • Constructor Details

    • ShowBuilder

      public ShowBuilder()
  • Method Details

    • url

      public B url(String url)
      The URL for the show.
      Returns:
      this.
    • name

      public B name(String name)
      The name of the show.
      Returns:
      this.
    • type

      public B type(String type)
      The type of show.
      Returns:
      this.
    • language

      public B language(String language)
      The primary language of the show.
      Returns:
      this.
    • genres

      public B genres(List<String> genres)
      The list of associated genres for the show.
      Returns:
      this.
    • status

      public B status(String status)
      The airing state.
      Returns:
      this.
    • runtime

      public B runtime(int runtime)
      The runtime in minutes.
      Returns:
      this.
    • averageRuntime

      public B averageRuntime(int averageRuntime)
      The average runtime in minutes.
      Returns:
      this.
    • premiered

      public B premiered(LocalDate premiered)
      The date the series was initially aired.
      Returns:
      this.
    • ended

      public B ended(LocalDate ended)
      The date when the series was ended, if applicable.
      Returns:
      this.
    • officialSite

      public B officialSite(String officialSite)
      The URL for the show's official site.
      Returns:
      this.
    • schedule

      public B schedule(Schedule schedule)
      The airing schedule.
      Returns:
      this.
    • rating

      public B rating(Rating rating)
      The show rating.
      Returns:
      this.
    • weight

      public B weight(int weight)
      The weight associated with the shows search relevance and/or popularity.
      Returns:
      this.
    • network

      public B network(Network network)
      The associated network that air/distributes the show.
      Returns:
      this.
    • webChannel

      public B webChannel(WebChannel webChannel)
      The streaming channel that the show is aired on.
      Returns:
      this.
    • dvdCountry

      public B dvdCountry(Country dvdCountry)
      The associated country.
      Returns:
      this.
    • externals

      public B externals(Map<String,Object> externals)
      A map of source providers and associated identifiers. The key is the external source id (e.g., tvrage, thetvdb, imdb, etc.), and the value is the identifier.
      Returns:
      this.
    • image

      public B image(ImageUrl image)
      The images associated with the show.
      Returns:
      this.
    • summary

      public B summary(String summary)
      A brief show summary.
      Returns:
      this.
    • updated

      public B updated(long updated)
      Indicates when this show was last updated.
      Returns:
      this.
    • embeddedResource

      public B embeddedResource(Show.EmbeddedResource embeddedResource)
      Any embedded resources associated with the show. Note: can be null.
      Returns:
      this.
    • build

      public abstract C build()
      Specified by:
      build in class Resource.ResourceBuilder<Show,ResourceLink,C extends Show,B extends Show.ShowBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class Resource.ResourceBuilder<Show,ResourceLink,C extends Show,B extends Show.ShowBuilder<C,B>>