Class HealthCheckResponse.Builder
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
ConstructorsConstructorDescriptionBuilder()Deprecated, for removal: This API element is subject to removal in a future version. -
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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault HealthCheckResponseget()default HealthCheckResponse.Builderidentity()Instance of this builder as the correct type.default HealthCheckResponse.Builderupdate(Consumer<HealthCheckResponse.Builder> consumer) Update the builder in a fluent API way.
-
Constructor Details
-
Builder
Deprecated, for removal: This API element is subject to removal in a future version.useHealthCheckResponse.builder()insteadCreate a new 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), (falseforHealthCheckResponse.Status.DOWN)- 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
-
HealthCheckResponse.builder()instead