Class V1ContainerRestartRuleOnExitCodes

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ContainerRestartRuleOnExitCodes

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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(String operator)
  • Method Details

    • getOperator

      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:
      the operator property value
    • setOperator

      public void setOperator(String operator)
      Set the operator property value
      Parameters:
      operator - property value to set
    • operator

      public V1ContainerRestartRuleOnExitCodes operator(String operator)
      Set operator in a chainable fashion.
      Returns:
      The same instance of V1ContainerRestartRuleOnExitCodes for chaining.
    • getValues

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

      public void setValues(List<@NotNull Integer> values)
      Set the values property value
      Parameters:
      values - property value to set
    • values

      public V1ContainerRestartRuleOnExitCodes values(List<@NotNull Integer> values)
      Set values in a chainable fashion.
      Returns:
      The same instance of V1ContainerRestartRuleOnExitCodes for chaining.
    • addValuesItem

      public V1ContainerRestartRuleOnExitCodes addValuesItem(Integer valuesItem)
      Add an item to the values property in a chainable fashion.
      Returns:
      The same instance of V1ContainerRestartRuleOnExitCodes for chaining.
    • 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