Share via


TestProxyRecordingOptions.ProxyTransport Class

  • java.lang.Object
    • com.azure.core.test.models.TestProxyRecordingOptions.ProxyTransport

Implements

public static class TestProxyRecordingOptions.ProxyTransport
implements JsonSerializable<ProxyTransport>

Model for proxy transport options

Constructor Summary

Constructor Description
ProxyTransport()

Method Summary

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

Deserializes an instance of ProxyTransport from the input JSON.

List<Certificate> getCertificates()

Get allowed certificates for the recording.

String gettLSValidationCert()

Get the TLS/SSL Certificate

ProxyTransport setCertificates(List<TestProxyRecordingOptions.Certificate> certificates)

Set allowed certificates for the recording.

ProxyTransport settLSValidationCert(String tLSValidationCert)

Set the TLS/SSL Certificate

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ProxyTransport

public ProxyTransport()

Method Details

fromJson

public static TestProxyRecordingOptions.ProxyTransport fromJson(JsonReader jsonReader)

Deserializes an instance of ProxyTransport from the input JSON.

Parameters:

jsonReader - The JSON reader to deserialize the data from.

Returns:

An instance of ProxyTransport deserialized from the JSON.

Throws:

IOException

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

getCertificates

public List<TestProxyRecordingOptions.Certificate> getCertificates()

Get allowed certificates for the recording.

Returns:

the list of allowed certificates for the recording.

gettLSValidationCert

public String gettLSValidationCert()

Get the TLS/SSL Certificate

Returns:

the TLS/SSL Certificate

setCertificates

public TestProxyRecordingOptions.ProxyTransport setCertificates(List<TestProxyRecordingOptions.Certificate> certificates)

Set allowed certificates for the recording.

Parameters:

certificates - the list of allowed certificates for the recording.

Returns:

the updated ProxyTransport object.

settLSValidationCert

public TestProxyRecordingOptions.ProxyTransport settLSValidationCert(String tLSValidationCert)

Set the TLS/SSL Certificate

Parameters:

tLSValidationCert - the TLS/SSL Certificate to set

Returns:

the updated ProxyTransport object.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to