Class HttpMessageDiagnostic
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.HttpMessageDiagnostic
-
public final class HttpMessageDiagnostic extends Object
Http message diagnostic settings.
-
-
Constructor Summary
Constructors Constructor Description HttpMessageDiagnostic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BodyDiagnosticSettings
body()
Get the body property: Body logging settings.DataMasking
dataMasking()
Get the dataMasking property: Data masking settings.List<String>
headers()
Get the headers property: Array of HTTP Headers to log.void
validate()
Validates the instance.HttpMessageDiagnostic
withBody(BodyDiagnosticSettings body)
Set the body property: Body logging settings.HttpMessageDiagnostic
withDataMasking(DataMasking dataMasking)
Set the dataMasking property: Data masking settings.HttpMessageDiagnostic
withHeaders(List<String> headers)
Set the headers property: Array of HTTP Headers to log.
-
-
-
Method Detail
-
headers
public List<String> headers()
Get the headers property: Array of HTTP Headers to log.- Returns:
- the headers value.
-
withHeaders
public HttpMessageDiagnostic withHeaders(List<String> headers)
Set the headers property: Array of HTTP Headers to log.- Parameters:
headers
- the headers value to set.- Returns:
- the HttpMessageDiagnostic object itself.
-
body
public BodyDiagnosticSettings body()
Get the body property: Body logging settings.- Returns:
- the body value.
-
withBody
public HttpMessageDiagnostic withBody(BodyDiagnosticSettings body)
Set the body property: Body logging settings.- Parameters:
body
- the body value to set.- Returns:
- the HttpMessageDiagnostic object itself.
-
dataMasking
public DataMasking dataMasking()
Get the dataMasking property: Data masking settings.- Returns:
- the dataMasking value.
-
withDataMasking
public HttpMessageDiagnostic withDataMasking(DataMasking dataMasking)
Set the dataMasking property: Data masking settings.- Parameters:
dataMasking
- the dataMasking value to set.- Returns:
- the HttpMessageDiagnostic object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-