Class MovieDTO.TrailerDTO.Builder

  • Enclosing class:
    MovieDTO.TrailerDTO

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


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

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

        public final MovieDTO.TrailerDTO.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
      • url

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