Class V1LifecycleHandler

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") 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(V1ExecAction exec)
    • getExec

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

      public void setExec(V1ExecAction exec)
    • httpGet

      public V1LifecycleHandler httpGet(V1HTTPGetAction httpGet)
    • getHttpGet

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

      public void setHttpGet(V1HTTPGetAction httpGet)
    • tcpSocket

      public V1LifecycleHandler tcpSocket(V1TCPSocketAction tcpSocket)
    • getTcpSocket

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

      public void setTcpSocket(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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object 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