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 Summary
ConstructorsConstructorDescriptionCreates an instance of PipelineDiagnosticSettings class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PipelineDiagnosticSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PipelineDiagnosticSettings from the JsonReader.request()Get the request property: Diagnostic settings for request.response()Get the response property: Diagnostic settings for response.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRequest(HttpMessageDiagnostic request) Set the request property: Diagnostic settings for request.withResponse(HttpMessageDiagnostic response) Set the response property: Diagnostic settings for response.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PipelineDiagnosticSettings
public PipelineDiagnosticSettings()Creates an instance of PipelineDiagnosticSettings class.
-
-
Method Details
-
request
Get the request property: Diagnostic settings for request.- Returns:
- the request value.
-
withRequest
Set the request property: Diagnostic settings for request.- Parameters:
request- the request value to set.- Returns:
- the PipelineDiagnosticSettings object itself.
-
response
Get the response property: Diagnostic settings for response.- Returns:
- the response value.
-
withResponse
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
- Specified by:
toJsonin interfacecom.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.
-