Class HealthResult.Builder
- java.lang.Object
-
- io.micronaut.management.health.indicator.HealthResult.Builder
-
- Enclosing interface:
- HealthResult
public static class HealthResult.Builder extends java.lang.ObjectHelper class to build instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthResultbuild()Builds the result.HealthResult.Builderdetails(java.lang.Object details)Sets the details of the result.HealthResult.Builderexception(@NotNull java.lang.Throwable ex)Builds the details based off an exception.HealthResult.Builderstatus(io.micronaut.health.HealthStatus status)Assigns the status to the builder.
-
-
-
Method Detail
-
status
public HealthResult.Builder status(io.micronaut.health.HealthStatus status)
Assigns the status to the builder.- Parameters:
status- The status, null allowed- Returns:
- The builder
-
exception
public HealthResult.Builder exception(@NotNull @NotNull java.lang.Throwable ex)
Builds the details based off an exception.- Parameters:
ex- The exception that occurred- Returns:
- The builder
-
details
public HealthResult.Builder details(java.lang.Object details)
Sets the details of the result.- Parameters:
details- The details, null allowed- Returns:
- The builder
-
build
public HealthResult build()
Builds the result.- Returns:
- The
HealthResult
-
-