Class V1ContainerState
java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerState
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.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 TypeMethodDescriptionboolean
static V1ContainerState
Create an instance of V1ContainerState given an JSON stringGet runningGet terminatedGet waitingint
hashCode()
running
(V1ContainerStateRunning running) void
setRunning
(V1ContainerStateRunning running) void
setTerminated
(V1ContainerStateTerminated terminated) void
setWaiting
(V1ContainerStateWaiting waiting) terminated
(V1ContainerStateTerminated terminated) toJson()
Convert an instance of V1ContainerState to an JSON stringtoString()
static void
validateJsonElement
(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
-