Class V1ContainerState
java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerState
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1ContainerState
extends Object
ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1ContainerStateCreate an instance of V1ContainerState given an JSON stringGet runningGet terminatedGet waitinginthashCode()running(V1ContainerStateRunning running) voidsetRunning(V1ContainerStateRunning running) voidsetTerminated(V1ContainerStateTerminated terminated) voidsetWaiting(V1ContainerStateWaiting waiting) terminated(V1ContainerStateTerminated terminated) toJson()Convert an instance of V1ContainerState to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwaiting(V1ContainerStateWaiting waiting)
-
Field Details
-
SERIALIZED_NAME_RUNNING
- See Also:
-
SERIALIZED_NAME_TERMINATED
- See Also:
-
SERIALIZED_NAME_WAITING
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ContainerState
public V1ContainerState()
-
-
Method Details
-
running
-
getRunning
Get running- Returns:
- running
-
setRunning
-
terminated
-
getTerminated
Get terminated- Returns:
- terminated
-
setTerminated
-
waiting
-
getWaiting
Get waiting- Returns:
- waiting
-
setWaiting
-
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 V1ContainerState
-
fromJson
Create an instance of V1ContainerState given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1ContainerState
- Throws:
IOException- if the JSON string is invalid with respect to V1ContainerState
-
toJson
Convert an instance of V1ContainerState to an JSON string- Returns:
- JSON string
-