Class EpisodeDTO.Builder

  • Enclosing class:
    EpisodeDTO

    public static class EpisodeDTO.Builder
    extends Object
    Builder used to create a new immutable EpisodeDTO implementation


    This builder provides a fluent API for setting certain object properties and creating a new immutable EpisodeDTO instance based on these properties. New builders may be initialized with some existing DTO instance, which presets the builders properties to the values of the given DTO, still retaining the option to make additional changes before actually building a new immutable object.

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • from

        public final EpisodeDTO.Builder from​(Episode instance)
        Fill a builder with attribute values from the provided com.github.m0nk3y2k4.thetvdb.api.model.data.Episode instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final EpisodeDTO.Builder from​(EpisodeDTO instance)
        Fill a builder with attribute values from the provided com.github.m0nk3y2k4.thetvdb.internal.api.impl.model.data.EpisodeDTO instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • absoluteNumber

        public final EpisodeDTO.Builder absoluteNumber​(@Nullable
                                                       Long absoluteNumber)
        Initializes the value for the absoluteNumber attribute.
        Parameters:
        absoluteNumber - The value for absoluteNumber (can be null)
        Returns:
        this builder for use in a chained invocation
      • airedEpisodeNumber

        public final EpisodeDTO.Builder airedEpisodeNumber​(@Nullable
                                                           Long airedEpisodeNumber)
        Initializes the value for the airedEpisodeNumber attribute.
        Parameters:
        airedEpisodeNumber - The value for airedEpisodeNumber (can be null)
        Returns:
        this builder for use in a chained invocation
      • airedSeason

        public final EpisodeDTO.Builder airedSeason​(@Nullable
                                                    Long airedSeason)
        Initializes the value for the airedSeason attribute.
        Parameters:
        airedSeason - The value for airedSeason (can be null)
        Returns:
        this builder for use in a chained invocation
      • airsAfterSeason

        public final EpisodeDTO.Builder airsAfterSeason​(@Nullable
                                                        Long airsAfterSeason)
        Initializes the value for the airsAfterSeason attribute.
        Parameters:
        airsAfterSeason - The value for airsAfterSeason (can be null)
        Returns:
        this builder for use in a chained invocation
      • airsBeforeEpisode

        public final EpisodeDTO.Builder airsBeforeEpisode​(@Nullable
                                                          Long airsBeforeEpisode)
        Initializes the value for the airsBeforeEpisode attribute.
        Parameters:
        airsBeforeEpisode - The value for airsBeforeEpisode (can be null)
        Returns:
        this builder for use in a chained invocation
      • airsBeforeSeason

        public final EpisodeDTO.Builder airsBeforeSeason​(@Nullable
                                                         Long airsBeforeSeason)
        Initializes the value for the airsBeforeSeason attribute.
        Parameters:
        airsBeforeSeason - The value for airsBeforeSeason (can be null)
        Returns:
        this builder for use in a chained invocation
      • director

        @Deprecated
        public final EpisodeDTO.Builder director​(@Nullable
                                                 String director)
        Deprecated.
        Initializes the value for the director attribute.
        Parameters:
        director - The value for director (can be null)
        Returns:
        this builder for use in a chained invocation
      • addDirectors

        public final EpisodeDTO.Builder addDirectors​(String element)
        Adds one element to directors list.
        Parameters:
        element - A directors element
        Returns:
        this builder for use in a chained invocation
      • addDirectors

        public final EpisodeDTO.Builder addDirectors​(String... elements)
        Adds elements to directors list.
        Parameters:
        elements - An array of directors elements
        Returns:
        this builder for use in a chained invocation
      • directors

        public final EpisodeDTO.Builder directors​(Iterable<String> elements)
        Sets or replaces all elements for directors list.
        Parameters:
        elements - An iterable of directors elements
        Returns:
        this builder for use in a chained invocation
      • addAllDirectors

        public final EpisodeDTO.Builder addAllDirectors​(Iterable<String> elements)
        Adds elements to directors list.
        Parameters:
        elements - An iterable of directors elements
        Returns:
        this builder for use in a chained invocation
      • dvdChapter

        public final EpisodeDTO.Builder dvdChapter​(@Nullable
                                                   Long dvdChapter)
        Initializes the value for the dvdChapter attribute.
        Parameters:
        dvdChapter - The value for dvdChapter (can be null)
        Returns:
        this builder for use in a chained invocation
      • dvdDiscid

        public final EpisodeDTO.Builder dvdDiscid​(@Nullable
                                                  String dvdDiscid)
        Initializes the value for the dvdDiscid attribute.
        Parameters:
        dvdDiscid - The value for dvdDiscid (can be null)
        Returns:
        this builder for use in a chained invocation
      • dvdEpisodeNumber

        public final EpisodeDTO.Builder dvdEpisodeNumber​(@Nullable
                                                         Long dvdEpisodeNumber)
        Initializes the value for the dvdEpisodeNumber attribute.
        Parameters:
        dvdEpisodeNumber - The value for dvdEpisodeNumber (can be null)
        Returns:
        this builder for use in a chained invocation
      • dvdSeason

        public final EpisodeDTO.Builder dvdSeason​(@Nullable
                                                  Long dvdSeason)
        Initializes the value for the dvdSeason attribute.
        Parameters:
        dvdSeason - The value for dvdSeason (can be null)
        Returns:
        this builder for use in a chained invocation
      • episodeName

        public final EpisodeDTO.Builder episodeName​(@Nullable
                                                    String episodeName)
        Initializes the value for the episodeName attribute.
        Parameters:
        episodeName - The value for episodeName (can be null)
        Returns:
        this builder for use in a chained invocation
      • filename

        public final EpisodeDTO.Builder filename​(@Nullable
                                                 String filename)
        Initializes the value for the filename attribute.
        Parameters:
        filename - The value for filename (can be null)
        Returns:
        this builder for use in a chained invocation
      • firstAired

        public final EpisodeDTO.Builder firstAired​(@Nullable
                                                   String firstAired)
        Initializes the value for the firstAired attribute.
        Parameters:
        firstAired - The value for firstAired (can be null)
        Returns:
        this builder for use in a chained invocation
      • addGuestStars

        public final EpisodeDTO.Builder addGuestStars​(String element)
        Adds one element to guestStars list.
        Parameters:
        element - A guestStars element
        Returns:
        this builder for use in a chained invocation
      • addGuestStars

        public final EpisodeDTO.Builder addGuestStars​(String... elements)
        Adds elements to guestStars list.
        Parameters:
        elements - An array of guestStars elements
        Returns:
        this builder for use in a chained invocation
      • guestStars

        public final EpisodeDTO.Builder guestStars​(Iterable<String> elements)
        Sets or replaces all elements for guestStars list.
        Parameters:
        elements - An iterable of guestStars elements
        Returns:
        this builder for use in a chained invocation
      • addAllGuestStars

        public final EpisodeDTO.Builder addAllGuestStars​(Iterable<String> elements)
        Adds elements to guestStars list.
        Parameters:
        elements - An iterable of guestStars elements
        Returns:
        this builder for use in a chained invocation
      • id

        public final EpisodeDTO.Builder id​(@Nullable
                                           Long id)
        Initializes the value for the id attribute.
        Parameters:
        id - The value for id (can be null)
        Returns:
        this builder for use in a chained invocation
      • imdbId

        public final EpisodeDTO.Builder imdbId​(@Nullable
                                               String imdbId)
        Initializes the value for the imdbId attribute.
        Parameters:
        imdbId - The value for imdbId (can be null)
        Returns:
        this builder for use in a chained invocation
      • lastUpdated

        public final EpisodeDTO.Builder lastUpdated​(@Nullable
                                                    Long lastUpdated)
        Initializes the value for the lastUpdated attribute.
        Parameters:
        lastUpdated - The value for lastUpdated (can be null)
        Returns:
        this builder for use in a chained invocation
      • lastUpdatedBy

        public final EpisodeDTO.Builder lastUpdatedBy​(@Nullable
                                                      String lastUpdatedBy)
        Initializes the value for the lastUpdatedBy attribute.
        Parameters:
        lastUpdatedBy - The value for lastUpdatedBy (can be null)
        Returns:
        this builder for use in a chained invocation
      • overview

        public final EpisodeDTO.Builder overview​(@Nullable
                                                 String overview)
        Initializes the value for the overview attribute.
        Parameters:
        overview - The value for overview (can be null)
        Returns:
        this builder for use in a chained invocation
      • productionCode

        public final EpisodeDTO.Builder productionCode​(@Nullable
                                                       String productionCode)
        Initializes the value for the productionCode attribute.
        Parameters:
        productionCode - The value for productionCode (can be null)
        Returns:
        this builder for use in a chained invocation
      • seriesId

        public final EpisodeDTO.Builder seriesId​(@Nullable
                                                 String seriesId)
        Initializes the value for the seriesId attribute.
        Parameters:
        seriesId - The value for seriesId (can be null)
        Returns:
        this builder for use in a chained invocation
      • showUrl

        public final EpisodeDTO.Builder showUrl​(@Nullable
                                                String showUrl)
        Initializes the value for the showUrl attribute.
        Parameters:
        showUrl - The value for showUrl (can be null)
        Returns:
        this builder for use in a chained invocation
      • siteRating

        public final EpisodeDTO.Builder siteRating​(@Nullable
                                                   Double siteRating)
        Initializes the value for the siteRating attribute.
        Parameters:
        siteRating - The value for siteRating (can be null)
        Returns:
        this builder for use in a chained invocation
      • siteRatingCount

        public final EpisodeDTO.Builder siteRatingCount​(@Nullable
                                                        Long siteRatingCount)
        Initializes the value for the siteRatingCount attribute.
        Parameters:
        siteRatingCount - The value for siteRatingCount (can be null)
        Returns:
        this builder for use in a chained invocation
      • thumbAdded

        public final EpisodeDTO.Builder thumbAdded​(@Nullable
                                                   String thumbAdded)
        Initializes the value for the thumbAdded attribute.
        Parameters:
        thumbAdded - The value for thumbAdded (can be null)
        Returns:
        this builder for use in a chained invocation
      • thumbAuthor

        public final EpisodeDTO.Builder thumbAuthor​(@Nullable
                                                    Long thumbAuthor)
        Initializes the value for the thumbAuthor attribute.
        Parameters:
        thumbAuthor - The value for thumbAuthor (can be null)
        Returns:
        this builder for use in a chained invocation
      • thumbHeight

        public final EpisodeDTO.Builder thumbHeight​(@Nullable
                                                    String thumbHeight)
        Initializes the value for the thumbHeight attribute.
        Parameters:
        thumbHeight - The value for thumbHeight (can be null)
        Returns:
        this builder for use in a chained invocation
      • thumbWidth

        public final EpisodeDTO.Builder thumbWidth​(@Nullable
                                                   String thumbWidth)
        Initializes the value for the thumbWidth attribute.
        Parameters:
        thumbWidth - The value for thumbWidth (can be null)
        Returns:
        this builder for use in a chained invocation
      • addWriters

        public final EpisodeDTO.Builder addWriters​(String element)
        Adds one element to writers list.
        Parameters:
        element - A writers element
        Returns:
        this builder for use in a chained invocation
      • addWriters

        public final EpisodeDTO.Builder addWriters​(String... elements)
        Adds elements to writers list.
        Parameters:
        elements - An array of writers elements
        Returns:
        this builder for use in a chained invocation
      • writers

        public final EpisodeDTO.Builder writers​(Iterable<String> elements)
        Sets or replaces all elements for writers list.
        Parameters:
        elements - An iterable of writers elements
        Returns:
        this builder for use in a chained invocation
      • addAllWriters

        public final EpisodeDTO.Builder addAllWriters​(Iterable<String> elements)
        Adds elements to writers list.
        Parameters:
        elements - An iterable of writers elements
        Returns:
        this builder for use in a chained invocation