Class ContainerGroupPropertiesInstanceView

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

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

    • ContainerGroupPropertiesInstanceView

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

    • events

      public List<Event> events()
      Get the events property: The events of this container group.
      Returns:
      the events value.
    • state

      public String state()
      Get the state property: The state of the container group. Only valid in response.
      Returns:
      the state 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<ContainerGroupPropertiesInstanceView>
      Throws:
      IOException
    • fromJson

      public static ContainerGroupPropertiesInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ContainerGroupPropertiesInstanceView from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ContainerGroupPropertiesInstanceView 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 ContainerGroupPropertiesInstanceView.