public static class HealthResult.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
HealthResult |
build()
Builds the result.
|
HealthResult.Builder |
details(java.lang.Object details)
Sets the details of the result.
|
HealthResult.Builder |
exception(@NotNull java.lang.Throwable ex)
Builds the details based off an exception.
|
HealthResult.Builder |
status(HealthStatus status)
Assigns the status to the builder.
|
public HealthResult.Builder status(HealthStatus status)
status
- The status, null allowedpublic HealthResult.Builder exception(@NotNull @NotNull java.lang.Throwable ex)
ex
- The exception that occurredpublic HealthResult.Builder details(java.lang.Object details)
details
- The details, null allowedpublic HealthResult build()
HealthResult