Class ContainerState
java.lang.Object
com.azure.resourcemanager.containerinstance.models.ContainerState
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerState>
public final class ContainerState
extends Object
implements com.azure.json.JsonSerializable<ContainerState>
The container instance state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the detailStatus property: The human-readable status of the container instance state.exitCode()Get the exitCode property: The container instance exit codes correspond to those from the `docker run` command.Get the finishTime property: The date-time when the container instance state finished.static ContainerStatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerState from the JsonReader.Get the startTime property: The date-time when the container instance state started.state()Get the state property: The state of the container instance.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerState
public ContainerState()Creates an instance of ContainerState class.
-
-
Method Details
-
state
Get the state property: The state of the container instance.- Returns:
- the state value.
-
startTime
Get the startTime property: The date-time when the container instance state started.- Returns:
- the startTime value.
-
exitCode
Get the exitCode property: The container instance exit codes correspond to those from the `docker run` command.- Returns:
- the exitCode value.
-
finishTime
Get the finishTime property: The date-time when the container instance state finished.- Returns:
- the finishTime value.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerState>- Throws:
IOException
-
fromJson
Reads an instance of ContainerState from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerState 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 ContainerState.
-