ContainerState Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. ContainerState
- com.
Implements
public final class ContainerState
implements JsonSerializable<ContainerState>
The container instance state.
Constructor Summary
Constructor | Description |
---|---|
ContainerState() |
Creates an instance of Container |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
detailStatus()
Get the detail |
Integer |
exitCode()
Get the exit |
Offset |
finishTime()
Get the finish |
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
Offset |
startTime()
Get the start |
String |
state()
Get the state property: The state of the container instance. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
ContainerState
public ContainerState()
Creates an instance of ContainerState class.
Method Details
detailStatus
public String detailStatus()
Get the detailStatus property: The human-readable status of the container instance state.
Returns:
exitCode
public Integer exitCode()
Get the exitCode property: The container instance exit codes correspond to those from the `docker run` command.
Returns:
finishTime
public OffsetDateTime finishTime()
Get the finishTime property: The date-time when the container instance state finished.
Returns:
fromJson
public static ContainerState fromJson(JsonReader jsonReader)
Reads an instance of ContainerState from the JsonReader.
Parameters:
Returns:
Throws:
startTime
public OffsetDateTime startTime()
Get the startTime property: The date-time when the container instance state started.
Returns:
state
public String state()
Get the state property: The state of the container instance.
Returns:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java