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.
-
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 httpGetGet tcpSocketint
hashCode()
httpGet
(V1HTTPGetAction httpGet) void
setExec
(V1ExecAction exec) void
setHttpGet
(V1HTTPGetAction httpGet) void
setTcpSocket
(V1TCPSocketAction tcpSocket) tcpSocket
(V1TCPSocketAction tcpSocket) toJson()
Convert an instance of V1LifecycleHandler to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_EXEC
- See Also:
-
SERIALIZED_NAME_HTTP_GET
- 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
-
tcpSocket
-
getTcpSocket
Get tcpSocket- Returns:
- tcpSocket
-
setTcpSocket
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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
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
-