Class DataContainer

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

public final class DataContainer extends Object implements com.azure.json.JsonSerializable<DataContainer>
Information about a container with data for a given resource.
  • Constructor Details

    • DataContainer

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

    • workspace

      public WorkspaceInfo workspace()
      Get the workspace property: Log Analytics workspace information.
      Returns:
      the workspace value.
    • withWorkspace

      public DataContainer withWorkspace(WorkspaceInfo workspace)
      Set the workspace property: Log Analytics workspace information.
      Parameters:
      workspace - the workspace value to set.
      Returns:
      the DataContainer object itself.
    • 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<DataContainer>
      Throws:
      IOException
    • fromJson

      public static DataContainer fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DataContainer from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DataContainer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the DataContainer.