Class V1LifecycleHandler

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1LifecycleHandler extends Object
LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
  • Field Details

  • Constructor Details

    • V1LifecycleHandler

      public V1LifecycleHandler()
  • Method Details

    • exec

      public V1LifecycleHandler exec(@Nullable V1ExecAction exec)
    • getExec

      @Nullable public V1ExecAction getExec()
      Get exec
      Returns:
      exec
    • setExec

      public void setExec(@Nullable V1ExecAction exec)
    • httpGet

      public V1LifecycleHandler httpGet(@Nullable V1HTTPGetAction httpGet)
    • getHttpGet

      @Nullable public V1HTTPGetAction getHttpGet()
      Get httpGet
      Returns:
      httpGet
    • setHttpGet

      public void setHttpGet(@Nullable V1HTTPGetAction httpGet)
    • sleep

      public V1LifecycleHandler sleep(@Nullable V1SleepAction sleep)
    • getSleep

      @Nullable public V1SleepAction getSleep()
      Get sleep
      Returns:
      sleep
    • setSleep

      public void setSleep(@Nullable V1SleepAction sleep)
    • tcpSocket

      public V1LifecycleHandler tcpSocket(@Nullable V1TCPSocketAction tcpSocket)
    • getTcpSocket

      @Nullable public V1TCPSocketAction getTcpSocket()
      Get tcpSocket
      Returns:
      tcpSocket
    • setTcpSocket

      public void setTcpSocket(@Nullable V1TCPSocketAction tcpSocket)
    • 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 V1LifecycleHandler
    • fromJson

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

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