Share via


ArmContainerInstanceModelFactory.ContainerState Method

Definition

Initializes a new instance of ContainerState.

public static Azure.ResourceManager.ContainerInstance.Models.ContainerState ContainerState (string state = default, DateTimeOffset? startOn = default, int? exitCode = default, DateTimeOffset? finishOn = default, string detailStatus = default);
static member ContainerState : string * Nullable<DateTimeOffset> * Nullable<int> * Nullable<DateTimeOffset> * string -> Azure.ResourceManager.ContainerInstance.Models.ContainerState
Public Shared Function ContainerState (Optional state As String = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional exitCode As Nullable(Of Integer) = Nothing, Optional finishOn As Nullable(Of DateTimeOffset) = Nothing, Optional detailStatus As String = Nothing) As ContainerState

Parameters

state
String

The state of the container instance.

startOn
Nullable<DateTimeOffset>

The date-time when the container instance state started.

exitCode
Nullable<Int32>

The container instance exit codes correspond to those from the docker run command.

finishOn
Nullable<DateTimeOffset>

The date-time when the container instance state finished.

detailStatus
String

The human-readable status of the container instance state.

Returns

A new ContainerState instance for mocking.

Applies to