Class DiagnosticParameters

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

public final class DiagnosticParameters extends Object implements com.azure.json.JsonSerializable<DiagnosticParameters>
Diagnostic parameters of diagnostic operations.
  • Constructor Details

    • DiagnosticParameters

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

    • appInstance

      public String appInstance()
      Get the appInstance property: App instance name.
      Returns:
      the appInstance value.
    • withAppInstance

      public DiagnosticParameters withAppInstance(String appInstance)
      Set the appInstance property: App instance name.
      Parameters:
      appInstance - the appInstance value to set.
      Returns:
      the DiagnosticParameters object itself.
    • filePath

      public String filePath()
      Get the filePath property: Your target file path in your own BYOS.
      Returns:
      the filePath value.
    • withFilePath

      public DiagnosticParameters withFilePath(String filePath)
      Set the filePath property: Your target file path in your own BYOS.
      Parameters:
      filePath - the filePath value to set.
      Returns:
      the DiagnosticParameters object itself.
    • duration

      public String duration()
      Get the duration property: Duration of your JFR. 1 min can be represented by 1m or 60s.
      Returns:
      the duration value.
    • withDuration

      public DiagnosticParameters withDuration(String duration)
      Set the duration property: Duration of your JFR. 1 min can be represented by 1m or 60s.
      Parameters:
      duration - the duration value to set.
      Returns:
      the DiagnosticParameters 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<DiagnosticParameters>
      Throws:
      IOException
    • fromJson

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