Class V1Lifecycle
java.lang.Object
io.kubernetes.client.openapi.models.V1Lifecycle
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1Lifecycle
extends Object
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1Lifecycle
Create an instance of V1Lifecycle given an JSON stringGet postStartGet preStopint
hashCode()
postStart
(V1LifecycleHandler postStart) preStop
(V1LifecycleHandler preStop) void
setPostStart
(V1LifecycleHandler postStart) void
setPreStop
(V1LifecycleHandler preStop) toJson()
Convert an instance of V1Lifecycle 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_POST_START
- See Also:
-
SERIALIZED_NAME_PRE_STOP
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1Lifecycle
public V1Lifecycle()
-
-
Method Details
-
postStart
-
getPostStart
Get postStart- Returns:
- postStart
-
setPostStart
-
preStop
-
getPreStop
Get preStop- Returns:
- preStop
-
setPreStop
-
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 V1Lifecycle
-
fromJson
Create an instance of V1Lifecycle given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1Lifecycle
- Throws:
IOException
- if the JSON string is invalid with respect to V1Lifecycle
-
toJson
Convert an instance of V1Lifecycle to an JSON string- Returns:
- JSON string
-