Class HealthResponse.Builder
- java.lang.Object
-
- com.styra.opa.openapi.models.operations.HealthResponse.Builder
-
- Enclosing class:
- HealthResponse
public static final class HealthResponse.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthResponse
build()
HealthResponse.Builder
contentType(java.lang.String contentType)
HTTP response content type for this operationHealthResponse.Builder
healthyServer(HealthyServer healthyServer)
OPA service is healthy.HealthResponse.Builder
healthyServer(java.util.Optional<? extends HealthyServer> healthyServer)
OPA service is healthy.HealthResponse.Builder
rawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsingHealthResponse.Builder
statusCode(int statusCode)
HTTP response status code for this operation
-
-
-
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.
-
build
public HealthResponse build()
-
-