Class Schema2HealthConfig

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class Schema2HealthConfig extends Object
Schema2HealthConfig is a HealthConfig, which holds configuration settings for the HEALTHCHECK feature, from docker/docker/api/types/container.
  • Field Details

  • Constructor Details

    • Schema2HealthConfig

      public Schema2HealthConfig()
  • Method Details

    • 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 Schema2HealthConfig
    • fromJson

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

      public Schema2HealthConfig interval(Long interval)
    • getInterval

      @Nullable public Long getInterval()
      A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
      Returns:
      interval
    • setInterval

      public void setInterval(Long interval)
    • retries

      public Schema2HealthConfig retries(Long retries)
    • getRetries

      @Nullable public Long getRetries()
      Retries is the number of consecutive failures needed to consider a container as unhealthy. Zero means inherit.
      Returns:
      retries
    • setRetries

      public void setRetries(Long retries)
    • startInterval

      public Schema2HealthConfig startInterval(Long startInterval)
    • getStartInterval

      @Nullable public Long getStartInterval()
      A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
      Returns:
      startInterval
    • setStartInterval

      public void setStartInterval(Long startInterval)
    • startPeriod

      public Schema2HealthConfig startPeriod(Long startPeriod)
    • getStartPeriod

      @Nullable public Long getStartPeriod()
      A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
      Returns:
      startPeriod
    • setStartPeriod

      public void setStartPeriod(Long startPeriod)
    • test

      public Schema2HealthConfig test(List<String> test)
    • addTestItem

      public Schema2HealthConfig addTestItem(String testItem)
    • getTest

      @Nullable public List<String> getTest()
      Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck {\"NONE\"} : disable healthcheck {\"CMD\", args...} : exec arguments directly {\"CMD-SHELL\", command} : run command with system's default shell
      Returns:
      test
    • setTest

      public void setTest(List<String> test)
    • timeout

      public Schema2HealthConfig timeout(Long timeout)
    • getTimeout

      @Nullable public Long getTimeout()
      A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
      Returns:
      timeout
    • setTimeout

      public void setTimeout(Long timeout)
    • 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
    • toJson

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