HttpMessageDiagnostic Class

  • java.lang.Object
    • com.azure.resourcemanager.apimanagement.models.HttpMessageDiagnostic

public final class HttpMessageDiagnostic

Http message diagnostic settings.

Constructor Summary

Constructor Description
HttpMessageDiagnostic()

Creates an instance of HttpMessageDiagnostic class.

Method Summary

Modifier and Type Method and 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.

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:

the body value.

dataMasking

public DataMasking dataMasking()

Get the dataMasking property: Data masking settings.

Returns:

the dataMasking value.

headers

public List headers()

Get the headers property: Array of HTTP Headers to log.

Returns:

the headers value.

validate

public void validate()

Validates the instance.

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.

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.

withHeaders

public HttpMessageDiagnostic withHeaders(List headers)

Set the headers property: Array of HTTP Headers to log.

Parameters:

headers - the headers value to set.

Returns:

the HttpMessageDiagnostic object itself.

Applies to