Class V1LifecycleHandler
java.lang.Object
io.kubernetes.client.openapi.models.V1LifecycleHandler
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
exec
(V1ExecAction exec) static V1LifecycleHandler
Create an instance of V1LifecycleHandler given an JSON stringgetExec()
Get execGet httpGetgetSleep()
Get sleepGet tcpSocketint
hashCode()
httpGet
(V1HTTPGetAction httpGet) void
setExec
(V1ExecAction exec) void
setHttpGet
(V1HTTPGetAction httpGet) void
setSleep
(V1SleepAction sleep) void
setTcpSocket
(V1TCPSocketAction tcpSocket) sleep
(V1SleepAction sleep) tcpSocket
(V1TCPSocketAction tcpSocket) toJson()
Convert an instance of V1LifecycleHandler to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_EXEC
- See Also:
-
SERIALIZED_NAME_HTTP_GET
- See Also:
-
SERIALIZED_NAME_SLEEP
- See Also:
-
SERIALIZED_NAME_TCP_SOCKET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1LifecycleHandler
public V1LifecycleHandler()
-
-
Method Details
-
exec
-
getExec
Get exec- Returns:
- exec
-
setExec
-
httpGet
-
getHttpGet
Get httpGet- Returns:
- httpGet
-
setHttpGet
-
sleep
-
getSleep
Get sleep- Returns:
- sleep
-
setSleep
-
tcpSocket
-
getTcpSocket
Get tcpSocket- Returns:
- tcpSocket
-
setTcpSocket
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of V1LifecycleHandler to an JSON string- Returns:
- JSON string
-