ContainerPropertiesInstanceView Class

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

Implements

public final class ContainerPropertiesInstanceView
implements JsonSerializable<ContainerPropertiesInstanceView>

The instance view of the container instance. Only valid in response.

Constructor Summary

Constructor Description
ContainerPropertiesInstanceView()

Creates an instance of ContainerPropertiesInstanceView class.

Method Summary

Modifier and Type Method and Description
ContainerState currentState()

Get the currentState property: Current container instance state.

List<Event> events()

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

static ContainerPropertiesInstanceView fromJson(JsonReader jsonReader)

Reads an instance of ContainerPropertiesInstanceView from the JsonReader.

ContainerState previousState()

Get the previousState property: Previous container instance state.

Integer restartCount()

Get the restartCount property: The number of times that the container instance has been restarted.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ContainerPropertiesInstanceView

public ContainerPropertiesInstanceView()

Creates an instance of ContainerPropertiesInstanceView class.

Method Details

currentState

public ContainerState currentState()

Get the currentState property: Current container instance state.

Returns:

the currentState value.

events

public List events()

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

Returns:

the events value.

fromJson

public static ContainerPropertiesInstanceView fromJson(JsonReader jsonReader)

Reads an instance of ContainerPropertiesInstanceView from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerPropertiesInstanceView 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 ContainerPropertiesInstanceView.

previousState

public ContainerState previousState()

Get the previousState property: Previous container instance state.

Returns:

the previousState value.

restartCount

public Integer restartCount()

Get the restartCount property: The number of times that the container instance has been restarted.

Returns:

the restartCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to