Class HealthResponse.Builder

  • Enclosing class:
    HealthResponse

    public static final class HealthResponse.Builder
    extends java.lang.Object
    • Method Detail

      • contentType

        public HealthResponse.Builder contentType​(java.lang.String contentType)
        HTTP response content type for this operation
      • statusCode

        public HealthResponse.Builder statusCode​(int statusCode)
        HTTP response status code for this operation
      • rawResponse

        public HealthResponse.Builder rawResponse​(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
        Raw HTTP response; suitable for custom response parsing
      • healthyServer

        public HealthResponse.Builder healthyServer​(HealthyServer healthyServer)
        OPA service is healthy. If the bundles option is specified then all configured bundles have been activated. If the plugins option is specified then all plugins are in an OK state.
      • healthyServer

        public HealthResponse.Builder healthyServer​(java.util.Optional<? extends HealthyServer> healthyServer)
        OPA service is healthy. If the bundles option is specified then all configured bundles have been activated. If the plugins option is specified then all plugins are in an OK state.