Class ContainerState
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerState
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ContainerState
extends Object
implements Serializable
ContainerState stores container's running state it's part of ContainerJSONBase and will return by \"inspect\" command
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinishedAt(String finishedAt) static ContainerStateCreate an instance of ContainerState given an JSON stringgetDead()Get deadgetError()Get errorGet exitCodeGet finishedAt@Valid HealthGet healthGet ooMKilledGet pausedgetPid()Get pidGet restartingGet runningGet startedAtGet statusinthashCode()restarting(Boolean restarting) voidvoidvoidsetExitCode(Long exitCode) voidsetFinishedAt(String finishedAt) voidvoidsetOoMKilled(Boolean ooMKilled) voidvoidvoidsetRestarting(Boolean restarting) voidsetRunning(Boolean running) voidsetStartedAt(String startedAt) voidtoJson()Convert an instance of ContainerState to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DEAD
- See Also:
-
SERIALIZED_NAME_ERROR
- See Also:
-
SERIALIZED_NAME_EXIT_CODE
- See Also:
-
SERIALIZED_NAME_FINISHED_AT
- See Also:
-
SERIALIZED_NAME_HEALTH
- See Also:
-
SERIALIZED_NAME_OO_M_KILLED
- See Also:
-
SERIALIZED_NAME_PAUSED
- See Also:
-
SERIALIZED_NAME_PID
- See Also:
-
SERIALIZED_NAME_RESTARTING
- See Also:
-
SERIALIZED_NAME_RUNNING
- See Also:
-
SERIALIZED_NAME_STARTED_AT
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ContainerState
public ContainerState()
-
-
Method Details
-
dead
-
getDead
Get dead- Returns:
- dead
-
setDead
-
error
-
getError
Get error- Returns:
- error
-
setError
-
exitCode
-
getExitCode
Get exitCode- Returns:
- exitCode
-
setExitCode
-
finishedAt
-
getFinishedAt
Get finishedAt- Returns:
- finishedAt
-
setFinishedAt
-
health
-
getHealth
Get health- Returns:
- health
-
setHealth
-
ooMKilled
-
getOoMKilled
Get ooMKilled- Returns:
- ooMKilled
-
setOoMKilled
-
paused
-
getPaused
Get paused- Returns:
- paused
-
setPaused
-
pid
-
getPid
Get pid- Returns:
- pid
-
setPid
-
restarting
-
getRestarting
Get restarting- Returns:
- restarting
-
setRestarting
-
running
-
getRunning
Get running- Returns:
- running
-
setRunning
-
startedAt
-
getStartedAt
Get startedAt- Returns:
- startedAt
-
setStartedAt
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
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 ContainerState
-
fromJson
Create an instance of ContainerState given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContainerState
- Throws:
IOException- if the JSON string is invalid with respect to ContainerState
-
toJson
Convert an instance of ContainerState to an JSON string- Returns:
- JSON string
-