Class V1ContainerRestartRuleOnExitCodes

java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerRestartRuleOnExitCodes

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-09-11T18:00:16.154662Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1ContainerRestartRuleOnExitCodes extends Object
ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.
  • Field Details

  • Constructor Details

    • V1ContainerRestartRuleOnExitCodes

      public V1ContainerRestartRuleOnExitCodes()
  • Method Details

    • operator

      public V1ContainerRestartRuleOnExitCodes operator(@Nonnull String operator)
    • getOperator

      @Nonnull public String getOperator()
      Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values.
      Returns:
      operator
    • setOperator

      public void setOperator(@Nonnull String operator)
    • values

      public V1ContainerRestartRuleOnExitCodes values(@Nullable List<Integer> values)
    • addValuesItem

      public V1ContainerRestartRuleOnExitCodes addValuesItem(Integer valuesItem)
    • getValues

      @Nullable public List<Integer> getValues()
      Specifies the set of values to check for container exit codes. At most 255 elements are allowed.
      Returns:
      values
    • setValues

      public void setValues(@Nullable List<Integer> values)
    • 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 V1ContainerRestartRuleOnExitCodes
    • fromJson

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

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