Class ImmutableBlob.Builder

  • Enclosing class:
    ImmutableBlob

    @NotThreadSafe
    public static final class ImmutableBlob.Builder
    extends Object
    Builds instances of type ImmutableBlob. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableBlob.Builder from​(ShaLink instance)
        Fill a builder with attribute values from the provided com.spotify.github.v3.git.ShaLink instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        @CanIgnoreReturnValue
        public final ImmutableBlob.Builder from​(Blob instance)
        Fill a builder with attribute values from the provided com.spotify.github.v3.git.Blob instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • sha

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

        @CanIgnoreReturnValue
        public final ImmutableBlob.Builder url​(@Nullable
                                               URI 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
      • content

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

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

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