Class V1ContainerState
java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerState
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
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
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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 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
-