java.lang.Object
com.azure.resourcemanager.containerinstance.models.ContainerState

public final class ContainerState extends Object
The container instance state.
  • Constructor Details

    • ContainerState

      public ContainerState()
  • Method Details

    • state

      public String state()
      Get the state property: The state of the container instance.
      Returns:
      the state value.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The date-time when the container instance state started.
      Returns:
      the startTime value.
    • exitCode

      public Integer exitCode()
      Get the exitCode property: The container instance exit codes correspond to those from the `docker run` command.
      Returns:
      the exitCode value.
    • finishTime

      public OffsetDateTime finishTime()
      Get the finishTime property: The date-time when the container instance state finished.
      Returns:
      the finishTime value.
    • detailStatus

      public String detailStatus()
      Get the detailStatus property: The human-readable status of the container instance state.
      Returns:
      the detailStatus value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.