Class MovieDTO.PeopleDTO.Builder

  • Enclosing class:
    MovieDTO.PeopleDTO

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


    This builder provides a fluent API for setting certain object properties and creating a new immutable MovieDTO.PeopleDTO 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 MovieDTO.PeopleDTO.Builder from​(Movie.People instance)
        Fill a builder with attribute values from the provided com.github.m0nk3y2k4.thetvdb.api.model.data.Movie.People instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

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

        public final MovieDTO.PeopleDTO.Builder id​(@Nullable
                                                   String 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
      • name

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

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

        public final MovieDTO.PeopleDTO.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
      • isFeatured

        public final MovieDTO.PeopleDTO.Builder isFeatured​(@Nullable
                                                           Boolean isFeatured)
        Initializes the value for the isFeatured attribute.
        Parameters:
        isFeatured - The value for isFeatured (can be null)
        Returns:
        this builder for use in a chained invocation
      • peopleFacebook

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

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

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

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

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

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