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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1Lifecycle extends Object
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
  • Field Details

  • Constructor Details

    • V1Lifecycle

      public V1Lifecycle()
  • Method Details

    • getPostStart

      public V1LifecycleHandler getPostStart()
      Returns:
      the postStart property value
    • setPostStart

      public void setPostStart(V1LifecycleHandler postStart)
      Set the postStart property value
      Parameters:
      postStart - property value to set
    • postStart

      public V1Lifecycle postStart(V1LifecycleHandler postStart)
      Set postStart in a chainable fashion.
      Returns:
      The same instance of V1Lifecycle for chaining.
    • getPreStop

      public V1LifecycleHandler getPreStop()
      Returns:
      the preStop property value
    • setPreStop

      public void setPreStop(V1LifecycleHandler preStop)
      Set the preStop property value
      Parameters:
      preStop - property value to set
    • preStop

      public V1Lifecycle preStop(V1LifecycleHandler preStop)
      Set preStop in a chainable fashion.
      Returns:
      The same instance of V1Lifecycle for chaining.
    • getStopSignal

      public String getStopSignal()
      StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name
      Returns:
      the stopSignal property value
    • setStopSignal

      public void setStopSignal(String stopSignal)
      Set the stopSignal property value
      Parameters:
      stopSignal - property value to set
    • stopSignal

      public V1Lifecycle stopSignal(String stopSignal)
      Set stopSignal in a chainable fashion.
      Returns:
      The same instance of V1Lifecycle 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