InitContainerPropertiesDefinitionInstanceView Class

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

Implements

public final class InitContainerPropertiesDefinitionInstanceView
implements JsonSerializable<InitContainerPropertiesDefinitionInstanceView>

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

Constructor Summary

Constructor Description
InitContainerPropertiesDefinitionInstanceView()

Creates an instance of InitContainerPropertiesDefinitionInstanceView class.

Method Summary

Modifier and Type Method and Description
ContainerState currentState()

Get the currentState property: The current state of the init container.

List<Event> events()

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

static InitContainerPropertiesDefinitionInstanceView fromJson(JsonReader jsonReader)

Reads an instance of InitContainerPropertiesDefinitionInstanceView from the JsonReader.

ContainerState previousState()

Get the previousState property: The previous state of the init container.

Integer restartCount()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

InitContainerPropertiesDefinitionInstanceView

public InitContainerPropertiesDefinitionInstanceView()

Creates an instance of InitContainerPropertiesDefinitionInstanceView class.

Method Details

currentState

public ContainerState currentState()

Get the currentState property: The current state of the init container.

Returns:

the currentState value.

events

public List events()

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

Returns:

the events value.

fromJson

public static InitContainerPropertiesDefinitionInstanceView fromJson(JsonReader jsonReader)

Reads an instance of InitContainerPropertiesDefinitionInstanceView from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

previousState

public ContainerState previousState()

Get the previousState property: The previous state of the init container.

Returns:

the previousState value.

restartCount

public Integer restartCount()

Get the restartCount property: The number of times that the init container 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