Class ContainerState
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.ContainerState
-
public final class ContainerState extends Object
The container instance state.
-
-
Constructor Summary
Constructors Constructor Description ContainerState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdetailStatus()Get the detailStatus property: The human-readable status of the container instance state.IntegerexitCode()Get the exitCode property: The container instance exit codes correspond to those from the `docker run` command.OffsetDateTimefinishTime()Get the finishTime property: The date-time when the container instance state finished.OffsetDateTimestartTime()Get the startTime property: The date-time when the container instance state started.Stringstate()Get the state property: The state of the container instance.voidvalidate()Validates the instance.
-
-
-
Method Detail
-
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.
-
-