Class MovieDTO.RemoteIdDTO.Builder

  • Enclosing class:
    MovieDTO.RemoteIdDTO

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


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

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

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

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

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