Class PipelineDiagnosticSettings

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

public final class PipelineDiagnosticSettings extends Object implements com.azure.json.JsonSerializable<PipelineDiagnosticSettings>
Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
  • Constructor Details

    • PipelineDiagnosticSettings

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

    • request

      public HttpMessageDiagnostic request()
      Get the request property: Diagnostic settings for request.
      Returns:
      the request value.
    • withRequest

      public PipelineDiagnosticSettings withRequest(HttpMessageDiagnostic request)
      Set the request property: Diagnostic settings for request.
      Parameters:
      request - the request value to set.
      Returns:
      the PipelineDiagnosticSettings object itself.
    • response

      public HttpMessageDiagnostic response()
      Get the response property: Diagnostic settings for response.
      Returns:
      the response value.
    • withResponse

      public PipelineDiagnosticSettings withResponse(HttpMessageDiagnostic response)
      Set the response property: Diagnostic settings for response.
      Parameters:
      response - the response value to set.
      Returns:
      the PipelineDiagnosticSettings 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<PipelineDiagnosticSettings>
      Throws:
      IOException
    • fromJson

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