RecordFilePayload Class

  • java.lang.Object
    • com.azure.core.test.models.RecordFilePayload

Implements

public class RecordFilePayload
implements JsonSerializable<RecordFilePayload>

Model type for serializing the record file path passed to the test proxy.

Constructor Summary

Constructor Description
RecordFilePayload(String recordingFile, String assetFile)

Creates an instance of RecordFilePayload.

Method Summary

Modifier and Type Method and Description
static RecordFilePayload fromJson(JsonReader jsonReader)

Deserializes an instance of RecordFilePayload from the input JSON.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

RecordFilePayload

public RecordFilePayload(String recordingFile, String assetFile)

Creates an instance of RecordFilePayload.

Parameters:

recordingFile - The partial path to the recording file.
assetFile - The path to asset file.

Method Details

fromJson

public static RecordFilePayload fromJson(JsonReader jsonReader)

Deserializes an instance of RecordFilePayload from the input JSON.

Parameters:

jsonReader - The JSON reader to deserialize the data from.

Returns:

An instance of RecordFilePayload deserialized from the JSON.

Throws:

IOException

- If the JSON reader encounters an error while reading the JSON.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to