Class HealthcheckResult

java.lang.Object
io.github.alersrt.pod4j.openapi.model.HealthcheckResult

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class HealthcheckResult extends Object
HealthcheckResult stores information about a single run of a healthcheck probe
  • Field Details

  • Constructor Details

    • HealthcheckResult

      public HealthcheckResult()
  • Method Details

    • end

    • getEnd

      @Nullable public 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 public 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element 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