Class HealthCheckResponseBuilder.BuildPart

java.lang.Object
org.gcube.common.health.api.response.HealthCheckResponseBuilder.BuildPart
Direct Known Subclasses:
HealthCheckResponseBuilder.SuccessPart
Enclosing class:
HealthCheckResponseBuilder

public class HealthCheckResponseBuilder.BuildPart extends Object
  • Method Details

    • withData

      public HealthCheckResponseBuilder.BuildPart withData(String key, Object value)
      Adds an entry to the structured data of the check.
      Parameters:
      key - the name of the entry
      value - its value: a string, a number, a boolean or a list of them
      Returns:
      this part, to add more data or to build the response
    • build

      public HealthCheckResponse build()