Class BatchTaskContainerExecutionInfo

java.lang.Object
com.azure.compute.batch.models.BatchTaskContainerExecutionInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskContainerExecutionInfo>

public final class BatchTaskContainerExecutionInfo extends Object implements com.azure.json.JsonSerializable<BatchTaskContainerExecutionInfo>
Contains information about the container which a Task is executing.
  • Method Details

    • getContainerId

      public String getContainerId()
      Get the containerId property: The ID of the container.
      Returns:
      the containerId value.
    • getState

      public String getState()
      Get the state property: The state of the container. This is the state of the container according to the Docker service. It is equivalent to the status field returned by "docker inspect".
      Returns:
      the state value.
    • getError

      public String getError()
      Get the error property: Detailed error information about the container. This is the detailed error string from the Docker service, if available. It is equivalent to the error field returned by "docker inspect".
      Returns:
      the error value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchTaskContainerExecutionInfo>
      Throws:
      IOException
    • fromJson

      public static BatchTaskContainerExecutionInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchTaskContainerExecutionInfo from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchTaskContainerExecutionInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the BatchTaskContainerExecutionInfo.