public static class HealthResult.Builder extends Object
| Modifier and Type | Method and Description | 
|---|---|
HealthResult | 
build()
Builds the result. 
 | 
HealthResult.Builder | 
details(Object details)
Sets the details of the result. 
 | 
HealthResult.Builder | 
exception(@NotNull 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 Throwable ex)
ex - The exception that occurredpublic HealthResult.Builder details(Object details)
details - The details, null allowedpublic HealthResult build()
HealthResult