ContainerState Class

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

Implements

public final class ContainerState
implements JsonSerializable<ContainerState>

The container instance state.

Constructor Summary

Constructor Description
ContainerState()

Creates an instance of ContainerState class.

Method Summary

Modifier and Type Method and Description
String detailStatus()

Get the detailStatus property: The human-readable status of the container instance state.

Integer exitCode()

Get the exitCode property: The container instance exit codes correspond to those from the `docker run` command.

OffsetDateTime finishTime()

Get the finishTime property: The date-time when the container instance state finished.

static ContainerState fromJson(JsonReader jsonReader)

Reads an instance of ContainerState from the JsonReader.

OffsetDateTime startTime()

Get the startTime property: The date-time when the container instance state started.

String state()

Get the state property: The state of the container instance.

JsonWriter 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:

the detailStatus 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.

fromJson

public static ContainerState fromJson(JsonReader jsonReader)

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.

startTime

public OffsetDateTime startTime()

Get the startTime property: The date-time when the container instance state started.

Returns:

the startTime value.

state

public String state()

Get the state property: The state of the container instance.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to