Class InitContainerPropertiesDefinitionInstanceView

java.lang.Object
com.azure.resourcemanager.containerinstance.models.InitContainerPropertiesDefinitionInstanceView
All Implemented Interfaces:
com.azure.json.JsonSerializable<InitContainerPropertiesDefinitionInstanceView>

public final class InitContainerPropertiesDefinitionInstanceView extends Object implements com.azure.json.JsonSerializable<InitContainerPropertiesDefinitionInstanceView>
The instance view of the init container. Only valid in response.
  • Constructor Details

    • InitContainerPropertiesDefinitionInstanceView

      public InitContainerPropertiesDefinitionInstanceView()
      Creates an instance of InitContainerPropertiesDefinitionInstanceView class.
  • Method Details

    • restartCount

      public Integer restartCount()
      Get the restartCount property: The number of times that the init container has been restarted.
      Returns:
      the restartCount value.
    • currentState

      public ContainerState currentState()
      Get the currentState property: The current state of the init container.
      Returns:
      the currentState value.
    • previousState

      public ContainerState previousState()
      Get the previousState property: The previous state of the init container.
      Returns:
      the previousState value.
    • events

      public List<Event> events()
      Get the events property: The events of the init container.
      Returns:
      the events value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<InitContainerPropertiesDefinitionInstanceView>
      Throws:
      IOException
    • fromJson

      public static InitContainerPropertiesDefinitionInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.