Class V1ContainerStateTerminated
java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerStateTerminated
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1ContainerStateTerminated
extends Object
ContainerStateTerminated is a terminated state of a container.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontainerID
(String containerID) boolean
finishedAt
(OffsetDateTime finishedAt) static V1ContainerStateTerminated
Create an instance of V1ContainerStateTerminated given an JSON stringContainer's ID in the format '<type>://<container_id>'Exit status from the last termination of the containerTime at which the container last terminatedMessage regarding the last termination of the container(brief) reason from the last termination of the containerSignal from the last termination of the containerTime at which previous execution of the container startedint
hashCode()
void
setContainerID
(String containerID) void
setExitCode
(Integer exitCode) void
setFinishedAt
(OffsetDateTime finishedAt) void
setMessage
(String message) void
void
void
setStartedAt
(OffsetDateTime startedAt) startedAt
(OffsetDateTime startedAt) toJson()
Convert an instance of V1ContainerStateTerminated 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_CONTAINER_I_D
- See Also:
-
SERIALIZED_NAME_EXIT_CODE
- See Also:
-
SERIALIZED_NAME_FINISHED_AT
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_SIGNAL
- See Also:
-
SERIALIZED_NAME_STARTED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ContainerStateTerminated
public V1ContainerStateTerminated()
-
-
Method Details
-
containerID
-
getContainerID
Container's ID in the format '<type>://<container_id>'- Returns:
- containerID
-
setContainerID
-
exitCode
-
getExitCode
Exit status from the last termination of the container- Returns:
- exitCode
-
setExitCode
-
finishedAt
-
getFinishedAt
Time at which the container last terminated- Returns:
- finishedAt
-
setFinishedAt
-
message
-
getMessage
Message regarding the last termination of the container- Returns:
- message
-
setMessage
-
reason
-
getReason
(brief) reason from the last termination of the container- Returns:
- reason
-
setReason
-
signal
-
getSignal
Signal from the last termination of the container- Returns:
- signal
-
setSignal
-
startedAt
-
getStartedAt
Time at which previous execution of the container started- Returns:
- startedAt
-
setStartedAt
-
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 V1ContainerStateTerminated
-
fromJson
Create an instance of V1ContainerStateTerminated given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ContainerStateTerminated
- Throws:
IOException
- if the JSON string is invalid with respect to V1ContainerStateTerminated
-
toJson
Convert an instance of V1ContainerStateTerminated to an JSON string- Returns:
- JSON string
-