Class ActorDTO.Builder

  • Enclosing class:
    ActorDTO

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


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

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

        public final ActorDTO.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
      • image

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

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

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

        public final ActorDTO.Builder lastUpdated​(@Nullable
                                                  String 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
      • name

        public final ActorDTO.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 ActorDTO.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
      • seriesId

        public final ActorDTO.Builder seriesId​(@Nullable
                                               Long 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
      • sortOrder

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