java.lang.Object
io.helidon.health.HealthCheckResponse.Builder
- All Implemented Interfaces:
Builder<HealthCheckResponse.Builder,,HealthCheckResponse> Supplier<HealthCheckResponse>
- Enclosing interface:
HealthCheckResponse
public static class HealthCheckResponse.Builder
extends Object
implements Builder<HealthCheckResponse.Builder,HealthCheckResponse>
Fluent API builder for
HealthCheckResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.Add a detail of this health check, used when details are enabled.status(boolean status) Status of health check, defaults toHealthCheckResponse.Status.UP.status(HealthCheckResponse.Status status) Status of health check, defaults toHealthCheckResponse.Status.UP.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<HealthCheckResponse.Builder,HealthCheckResponse> - Returns:
- instance of the built type
-
status
Status of health check, defaults toHealthCheckResponse.Status.UP.- Parameters:
status- status- Returns:
- updated builder
-
status
Status of health check, defaults toHealthCheckResponse.Status.UP.- Parameters:
status- status as a boolean (trueforHealthCheckResponse.Status.UP)- Returns:
- updated builder
-
detail
Add a detail of this health check, used when details are enabled.- Parameters:
name- name of the detailvalue- value of the detail- Returns:
- updated builder
-