ProxyUrlConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.connectedcache.models.ProxyUrlConfiguration

Implements

public final class ProxyUrlConfiguration
implements JsonSerializable<ProxyUrlConfiguration>

ProxyUrl configuration of cache node.

Constructor Summary

Constructor Description
ProxyUrlConfiguration()

Creates an instance of ProxyUrlConfiguration class.

Method Summary

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

Reads an instance of ProxyUrlConfiguration from the JsonReader.

String proxyUrl()

Get the proxyUrl property: Host Proxy Address configuration along with port number.

JsonWriter toJson(JsonWriter jsonWriter)
ProxyUrlConfiguration withProxyUrl(String proxyUrl)

Set the proxyUrl property: Host Proxy Address configuration along with port number.

Methods inherited from java.lang.Object

Constructor Details

ProxyUrlConfiguration

public ProxyUrlConfiguration()

Creates an instance of ProxyUrlConfiguration class.

Method Details

fromJson

public static ProxyUrlConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ProxyUrlConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

proxyUrl

public String proxyUrl()

Get the proxyUrl property: Host Proxy Address configuration along with port number. This can be a proxy or ip address. ex: xx.xx.xx.xxxx:80 or host name http://exampleproxy.com:80.

Returns:

the proxyUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withProxyUrl

public ProxyUrlConfiguration withProxyUrl(String proxyUrl)

Set the proxyUrl property: Host Proxy Address configuration along with port number. This can be a proxy or ip address. ex: xx.xx.xx.xxxx:80 or host name http://exampleproxy.com:80.

Parameters:

proxyUrl - the proxyUrl value to set.

Returns:

the ProxyUrlConfiguration object itself.

Applies to