HttpMessageDiagnostic Class
- java.
lang. Object - com.
azure. resourcemanager. apimanagement. models. HttpMessageDiagnostic
- com.
public final class HttpMessageDiagnostic
Http message diagnostic settings.
Constructor Summary
Constructor | Description |
---|---|
HttpMessageDiagnostic() |
Creates an instance of Http |
Method Summary
Modifier and Type | Method and Description |
---|---|
Body |
body()
Get the body property: Body logging settings. |
Data |
dataMasking()
Get the data |
List<String> |
headers()
Get the headers property: Array of HTTP Headers to log. |
void |
validate()
Validates the instance. |
Http |
withBody(BodyDiagnosticSettings body)
Set the body property: Body logging settings. |
Http |
withDataMasking(DataMasking dataMasking)
Set the data |
Http |
withHeaders(List<String> headers)
Set the headers property: Array of HTTP Headers to log. |
Methods inherited from java.lang.Object
Constructor Details
HttpMessageDiagnostic
public HttpMessageDiagnostic()
Creates an instance of HttpMessageDiagnostic class.
Method Details
body
public BodyDiagnosticSettings body()
Get the body property: Body logging settings.
Returns:
dataMasking
public DataMasking dataMasking()
Get the dataMasking property: Data masking settings.
Returns:
headers
public List
Get the headers property: Array of HTTP Headers to log.
Returns:
validate
public void validate()
Validates the instance.
withBody
public HttpMessageDiagnostic withBody(BodyDiagnosticSettings body)
Set the body property: Body logging settings.
Parameters:
Returns:
withDataMasking
public HttpMessageDiagnostic withDataMasking(DataMasking dataMasking)
Set the dataMasking property: Data masking settings.
Parameters:
Returns:
withHeaders
public HttpMessageDiagnostic withHeaders(List
Set the headers property: Array of HTTP Headers to log.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for