Class HealthResponse.Builder

java.lang.Object
com.styra.opa.openapi.models.operations.HealthResponse.Builder
Enclosing class:
HealthResponse

public static final class HealthResponse.Builder extends Object
  • Method Details

    • contentType

      public HealthResponse.Builder contentType(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(HttpResponse<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(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.
    • build

      public HealthResponse build()