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.
  • Field Details

  • Constructor Details

    • V1ContainerStateTerminated

      public V1ContainerStateTerminated()
  • Method Details

    • containerID

      public V1ContainerStateTerminated containerID(String containerID)
    • getContainerID

      @Nullable public String getContainerID()
      Container's ID in the format '<type>://<container_id>'
      Returns:
      containerID
    • setContainerID

      public void setContainerID(String containerID)
    • exitCode

      public V1ContainerStateTerminated exitCode(Integer exitCode)
    • getExitCode

      @Nonnull public Integer getExitCode()
      Exit status from the last termination of the container
      Returns:
      exitCode
    • setExitCode

      public void setExitCode(Integer exitCode)
    • finishedAt

      public V1ContainerStateTerminated finishedAt(OffsetDateTime finishedAt)
    • getFinishedAt

      @Nullable public OffsetDateTime getFinishedAt()
      Time at which the container last terminated
      Returns:
      finishedAt
    • setFinishedAt

      public void setFinishedAt(OffsetDateTime finishedAt)
    • message

      public V1ContainerStateTerminated message(String message)
    • getMessage

      @Nullable public String getMessage()
      Message regarding the last termination of the container
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • reason

      public V1ContainerStateTerminated reason(String reason)
    • getReason

      @Nullable public String getReason()
      (brief) reason from the last termination of the container
      Returns:
      reason
    • setReason

      public void setReason(String reason)
    • signal

      public V1ContainerStateTerminated signal(Integer signal)
    • getSignal

      @Nullable public Integer getSignal()
      Signal from the last termination of the container
      Returns:
      signal
    • setSignal

      public void setSignal(Integer signal)
    • startedAt

      public V1ContainerStateTerminated startedAt(OffsetDateTime startedAt)
    • getStartedAt

      @Nullable public OffsetDateTime getStartedAt()
      Time at which previous execution of the container started
      Returns:
      startedAt
    • setStartedAt

      public void setStartedAt(OffsetDateTime startedAt)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static V1ContainerStateTerminated fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1ContainerStateTerminated to an JSON string
      Returns:
      JSON string