Class MovieDTO.ArtworkDTO.Builder

  • Enclosing class:
    MovieDTO.ArtworkDTO

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


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

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

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

        public final MovieDTO.ArtworkDTO.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
      • tags

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

        public final MovieDTO.ArtworkDTO.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
      • width

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

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

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

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