RequestLogging Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.RequestLogging

Implements

public final class RequestLogging
implements JsonSerializable<RequestLogging>

The RequestLogging model.

Constructor Summary

Constructor Description
RequestLogging()

Creates an instance of RequestLogging class.

Method Summary

Modifier and Type Method and Description
List<String> captureHeaders()

Get the captureHeaders property: For payload logging, we only collect payload by default.

static RequestLogging fromJson(JsonReader jsonReader)

Reads an instance of RequestLogging from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RequestLogging withCaptureHeaders(List<String> captureHeaders)

Set the captureHeaders property: For payload logging, we only collect payload by default.

Methods inherited from java.lang.Object

Constructor Details

RequestLogging

public RequestLogging()

Creates an instance of RequestLogging class.

Method Details

captureHeaders

public List<String> captureHeaders()

Get the captureHeaders property: For payload logging, we only collect payload by default. If customers also want to collect the specified headers, they can set them in captureHeaders so that backend will collect those headers along with payload.

Returns:

the captureHeaders value.

fromJson

public static RequestLogging fromJson(JsonReader jsonReader)

Reads an instance of RequestLogging from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RequestLogging 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 RequestLogging.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCaptureHeaders

public RequestLogging withCaptureHeaders(List<String> captureHeaders)

Set the captureHeaders property: For payload logging, we only collect payload by default. If customers also want to collect the specified headers, they can set them in captureHeaders so that backend will collect those headers along with payload.

Parameters:

captureHeaders - the captureHeaders value to set.

Returns:

the RequestLogging object itself.

Applies to