Class ImmutableCheckRunOutput.Builder

  • Enclosing class:
    ImmutableCheckRunOutput

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

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

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

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

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

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

        @CanIgnoreReturnValue
        public final ImmutableCheckRunOutput.Builder addImages​(CheckRunImage... elements)
        Adds elements to images list.
        Parameters:
        elements - An array of images elements
        Returns:
        this builder for use in a chained invocation
      • addAnnotations

        @CanIgnoreReturnValue
        public final ImmutableCheckRunOutput.Builder addAnnotations​(Annotation element)
        Adds one element to annotations list.
        Parameters:
        element - A annotations element
        Returns:
        this builder for use in a chained invocation
      • addAnnotations

        @CanIgnoreReturnValue
        public final ImmutableCheckRunOutput.Builder addAnnotations​(Annotation... elements)
        Adds elements to annotations list.
        Parameters:
        elements - An array of annotations elements
        Returns:
        this builder for use in a chained invocation
      • annotations

        @CanIgnoreReturnValue
        public final ImmutableCheckRunOutput.Builder annotations​(Iterable<? extends Annotation> elements)
        Sets or replaces all elements for annotations list.
        Parameters:
        elements - An iterable of annotations elements
        Returns:
        this builder for use in a chained invocation
      • annotationsCount

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

        @CanIgnoreReturnValue
        public final ImmutableCheckRunOutput.Builder annotationsCount​(Optional<Integer> annotationsCount)
        Initializes the optional value annotationsCount to annotationsCount.
        Parameters:
        annotationsCount - The value for annotationsCount
        Returns:
        this builder for use in a chained invocation
      • annotationsUrl

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

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