Class BodyDiagnosticSettings

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

public final class BodyDiagnosticSettings extends Object implements com.azure.json.JsonSerializable<BodyDiagnosticSettings>
Body logging settings.
  • Constructor Details

    • BodyDiagnosticSettings

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

    • bytes

      public Integer bytes()
      Get the bytes property: Number of request body bytes to log.
      Returns:
      the bytes value.
    • withBytes

      public BodyDiagnosticSettings withBytes(Integer bytes)
      Set the bytes property: Number of request body bytes to log.
      Parameters:
      bytes - the bytes value to set.
      Returns:
      the BodyDiagnosticSettings 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<BodyDiagnosticSettings>
      Throws:
      IOException
    • fromJson

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