Class ImmutableCheckRunImage.Builder

  • Enclosing class:
    ImmutableCheckRunImage

    @NotThreadSafe
    public static final class ImmutableCheckRunImage.Builder
    extends Object
    Builds instances of type ImmutableCheckRunImage. 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 ImmutableCheckRunImage.Builder from​(CheckRunImage instance)
        Fill a builder with attribute values from the provided CheckRunImage instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • alt

        @CanIgnoreReturnValue
        public final ImmutableCheckRunImage.Builder alt​(String alt)
        Initializes the value for the alt attribute.
        Parameters:
        alt - The value for alt
        Returns:
        this builder for use in a chained invocation
      • imageUrl

        @CanIgnoreReturnValue
        public final ImmutableCheckRunImage.Builder imageUrl​(String imageUrl)
        Initializes the value for the imageUrl attribute.
        Parameters:
        imageUrl - The value for imageUrl
        Returns:
        this builder for use in a chained invocation
      • caption

        @CanIgnoreReturnValue
        public final ImmutableCheckRunImage.Builder caption​(String caption)
        Initializes the optional value caption to caption.
        Parameters:
        caption - The value for caption
        Returns:
        this builder for chained invocation
      • caption

        @CanIgnoreReturnValue
        public final ImmutableCheckRunImage.Builder caption​(Optional<String> caption)
        Initializes the optional value caption to caption.
        Parameters:
        caption - The value for caption
        Returns:
        this builder for use in a chained invocation