Class HealthcheckResult

java.lang.Object
io.github.alersrt.pod4j.openapi.model.HealthcheckResult
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class HealthcheckResult extends Object implements Serializable
HealthcheckResult stores information about a single run of a healthcheck probe
See Also:
  • Field Details

  • Constructor Details

    • HealthcheckResult

      public HealthcheckResult()
  • Method Details

    • end

    • getEnd

      @Nullable @Valid public @Valid OffsetDateTime getEnd()
      Get end
      Returns:
      end
    • setEnd

      public void setEnd(OffsetDateTime end)
    • exitCode

      public HealthcheckResult exitCode(Long exitCode)
    • getExitCode

      @Nullable public Long getExitCode()
      Get exitCode
      Returns:
      exitCode
    • setExitCode

      public void setExitCode(Long exitCode)
    • output

      public HealthcheckResult output(String output)
    • getOutput

      @Nullable public String getOutput()
      Get output
      Returns:
      output
    • setOutput

      public void setOutput(String output)
    • start

      public HealthcheckResult start(OffsetDateTime start)
    • getStart

      @Nullable @Valid public @Valid OffsetDateTime getStart()
      Get start
      Returns:
      start
    • setStart

      public void setStart(OffsetDateTime start)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to HealthcheckResult
    • fromJson

      public static HealthcheckResult fromJson(String jsonString) throws IOException
      Create an instance of HealthcheckResult given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of HealthcheckResult
      Throws:
      IOException - if the JSON string is invalid with respect to HealthcheckResult
    • toJson

      public String toJson()
      Convert an instance of HealthcheckResult to an JSON string
      Returns:
      JSON string