Class ImmutableCheckRunResponse.Builder

  • Enclosing class:
    ImmutableCheckRunResponse

    @NotThreadSafe
    public static final class ImmutableCheckRunResponse.Builder
    extends Object
    Builds instances of type ImmutableCheckRunResponse. 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 ImmutableCheckRunResponse.Builder from​(CheckRunBase instance)
        Fill a builder with attribute values from the provided com.spotify.github.v3.checks.CheckRunBase instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

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

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

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

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

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

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

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

        @CanIgnoreReturnValue
        public final ImmutableCheckRunResponse.Builder id​(int id)
        Initializes the value for the id attribute.
        Parameters:
        id - The value for id
        Returns:
        this builder for use in a chained invocation
      • url

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

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

        @CanIgnoreReturnValue
        public final ImmutableCheckRunResponse.Builder checkSuite​(CheckSuite checkSuite)
        Initializes the optional value checkSuite to checkSuite.
        Parameters:
        checkSuite - The value for checkSuite
        Returns:
        this builder for chained invocation
      • app

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

        @CanIgnoreReturnValue
        public final ImmutableCheckRunResponse.Builder app​(Optional<? extends App> app)
        Initializes the optional value app to app.
        Parameters:
        app - The value for app
        Returns:
        this builder for use in a chained invocation