Class DiagnosticDataProviderMetadata

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

public final class DiagnosticDataProviderMetadata extends Object implements com.azure.json.JsonSerializable<DiagnosticDataProviderMetadata>
Details of a diagnostics data provider.
  • Constructor Details

    • DiagnosticDataProviderMetadata

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

    • providerName

      public String providerName()
      Get the providerName property: Name of data provider.
      Returns:
      the providerName value.
    • withProviderName

      public DiagnosticDataProviderMetadata withProviderName(String providerName)
      Set the providerName property: Name of data provider.
      Parameters:
      providerName - the providerName value to set.
      Returns:
      the DiagnosticDataProviderMetadata object itself.
    • propertyBag

      Get the propertyBag property: Collection of properties.
      Returns:
      the propertyBag value.
    • withPropertyBag

      Set the propertyBag property: Collection of properties.
      Parameters:
      propertyBag - the propertyBag value to set.
      Returns:
      the DiagnosticDataProviderMetadata 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<DiagnosticDataProviderMetadata>
      Throws:
      IOException
    • fromJson

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