Class V1ContainerRestartRule

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1ContainerRestartRule extends Object
ContainerRestartRule describes how a container exit is handled.
  • Field Details

  • Constructor Details

    • V1ContainerRestartRule

      public V1ContainerRestartRule(String action)
  • Method Details

    • getAction

      public String getAction()
      Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.
      Returns:
      the action property value
    • setAction

      public void setAction(String action)
      Set the action property value
      Parameters:
      action - property value to set
    • action

      public V1ContainerRestartRule action(String action)
      Set action in a chainable fashion.
      Returns:
      The same instance of V1ContainerRestartRule for chaining.
    • getExitCodes

      public V1ContainerRestartRuleOnExitCodes getExitCodes()
      Returns:
      the exitCodes property value
    • setExitCodes

      public void setExitCodes(V1ContainerRestartRuleOnExitCodes exitCodes)
      Set the exitCodes property value
      Parameters:
      exitCodes - property value to set
    • exitCodes

      Set exitCodes in a chainable fashion.
      Returns:
      The same instance of V1ContainerRestartRule 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