Class V1ExecAction

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1ExecAction extends Object
ExecAction describes a \"run in container\" action.
  • Field Details

  • Constructor Details

    • V1ExecAction

      public V1ExecAction()
  • Method Details

    • getCommand

      public List<@NotNull String> getCommand()
      Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
      Returns:
      the command property value
    • setCommand

      public void setCommand(List<@NotNull String> command)
      Set the command property value
      Parameters:
      command - property value to set
    • command

      public V1ExecAction command(List<@NotNull String> command)
      Set command in a chainable fashion.
      Returns:
      The same instance of V1ExecAction for chaining.
    • addcommandItem

      public V1ExecAction addcommandItem(String commandItem)
      Add an item to the command property in a chainable fashion.
      Returns:
      The same instance of V1ExecAction 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