Class ImageSummaryDTO.Builder

  • Enclosing class:
    ImageSummaryDTO

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


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

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

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

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

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

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

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