Class V1LifecycleHandler
java.lang.Object
io.kubernetes.client.openapi.models.V1LifecycleHandler
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[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 TypeMethodDescriptionbooleanexec(V1ExecAction exec) static V1LifecycleHandlerCreate an instance of V1LifecycleHandler given an JSON stringgetExec()Get execGet httpGetgetSleep()Get sleepGet tcpSocketinthashCode()httpGet(V1HTTPGetAction httpGet) voidsetExec(V1ExecAction exec) voidsetHttpGet(V1HTTPGetAction httpGet) voidsetSleep(V1SleepAction sleep) voidsetTcpSocket(V1TCPSocketAction tcpSocket) sleep(V1SleepAction sleep) tcpSocket(V1TCPSocketAction tcpSocket) toJson()Convert an instance of V1LifecycleHandler to an JSON stringtoString()static voidvalidateJsonElement(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
-