Class DiagnosticsProperties

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

public final class DiagnosticsProperties extends Object implements com.azure.json.JsonSerializable<DiagnosticsProperties>
Diagnostics resource specific properties.
  • Constructor Details

    • DiagnosticsProperties

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

    • metadata

      public DiagnosticsDefinition metadata()
      Get the metadata property: Metadata of the diagnostics response.
      Returns:
      the metadata value.
    • withMetadata

      public DiagnosticsProperties withMetadata(DiagnosticsDefinition metadata)
      Set the metadata property: Metadata of the diagnostics response.
      Parameters:
      metadata - the metadata value to set.
      Returns:
      the DiagnosticsProperties object itself.
    • dataset

      public List<DiagnosticsDataApiResponse> dataset()
      Get the dataset property: Set of data collections associated with the response.
      Returns:
      the dataset value.
    • withDataset

      public DiagnosticsProperties withDataset(List<DiagnosticsDataApiResponse> dataset)
      Set the dataset property: Set of data collections associated with the response.
      Parameters:
      dataset - the dataset value to set.
      Returns:
      the DiagnosticsProperties object itself.
    • status

      public DiagnosticsStatus status()
      Get the status property: Status of the diagnostics response.
      Returns:
      the status value.
    • withStatus

      public DiagnosticsProperties withStatus(DiagnosticsStatus status)
      Set the status property: Status of the diagnostics response.
      Parameters:
      status - the status value to set.
      Returns:
      the DiagnosticsProperties object itself.
    • dataProviderMetadata

      public DiagnosticDataProviderMetadata dataProviderMetadata()
      Get the dataProviderMetadata property: List of data providers' metadata.
      Returns:
      the dataProviderMetadata value.
    • withDataProviderMetadata

      public DiagnosticsProperties withDataProviderMetadata(DiagnosticDataProviderMetadata dataProviderMetadata)
      Set the dataProviderMetadata property: List of data providers' metadata.
      Parameters:
      dataProviderMetadata - the dataProviderMetadata value to set.
      Returns:
      the DiagnosticsProperties 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<DiagnosticsProperties>
      Throws:
      IOException
    • fromJson

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