ExplicitProxy Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ExplicitProxy

Implements

public final class ExplicitProxy
implements JsonSerializable<ExplicitProxy>

Explicit Proxy Settings in Firewall Policy.

Constructor Summary

Constructor Description
ExplicitProxy()

Creates an instance of ExplicitProxy class.

Method Summary

Modifier and Type Method and Description
Boolean enableExplicitProxy()

Get the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.

Boolean enablePacFile()

Get the enablePacFile property: When set to true, pac file port and url needs to be provided.

static ExplicitProxy fromJson(JsonReader jsonReader)

Reads an instance of ExplicitProxy from the JsonReader.

Integer httpPort()

Get the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.

Integer httpsPort()

Get the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.

String pacFile()

Get the pacFile property: SAS URL for PAC file.

Integer pacFilePort()

Get the pacFilePort property: Port number for firewall to serve PAC file.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExplicitProxy withEnableExplicitProxy(Boolean enableExplicitProxy)

Set the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.

ExplicitProxy withEnablePacFile(Boolean enablePacFile)

Set the enablePacFile property: When set to true, pac file port and url needs to be provided.

ExplicitProxy withHttpPort(Integer httpPort)

Set the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.

ExplicitProxy withHttpsPort(Integer httpsPort)

Set the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.

ExplicitProxy withPacFile(String pacFile)

Set the pacFile property: SAS URL for PAC file.

ExplicitProxy withPacFilePort(Integer pacFilePort)

Set the pacFilePort property: Port number for firewall to serve PAC file.

Methods inherited from java.lang.Object

Constructor Details

ExplicitProxy

public ExplicitProxy()

Creates an instance of ExplicitProxy class.

Method Details

enableExplicitProxy

public Boolean enableExplicitProxy()

Get the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.

Returns:

the enableExplicitProxy value.

enablePacFile

public Boolean enablePacFile()

Get the enablePacFile property: When set to true, pac file port and url needs to be provided.

Returns:

the enablePacFile value.

fromJson

public static ExplicitProxy fromJson(JsonReader jsonReader)

Reads an instance of ExplicitProxy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

httpPort

public Integer httpPort()

Get the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.

Returns:

the httpPort value.

httpsPort

public Integer httpsPort()

Get the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.

Returns:

the httpsPort value.

pacFile

public String pacFile()

Get the pacFile property: SAS URL for PAC file.

Returns:

the pacFile value.

pacFilePort

public Integer pacFilePort()

Get the pacFilePort property: Port number for firewall to serve PAC file.

Returns:

the pacFilePort value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnableExplicitProxy

public ExplicitProxy withEnableExplicitProxy(Boolean enableExplicitProxy)

Set the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.

Parameters:

enableExplicitProxy - the enableExplicitProxy value to set.

Returns:

the ExplicitProxy object itself.

withEnablePacFile

public ExplicitProxy withEnablePacFile(Boolean enablePacFile)

Set the enablePacFile property: When set to true, pac file port and url needs to be provided.

Parameters:

enablePacFile - the enablePacFile value to set.

Returns:

the ExplicitProxy object itself.

withHttpPort

public ExplicitProxy withHttpPort(Integer httpPort)

Set the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.

Parameters:

httpPort - the httpPort value to set.

Returns:

the ExplicitProxy object itself.

withHttpsPort

public ExplicitProxy withHttpsPort(Integer httpsPort)

Set the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.

Parameters:

httpsPort - the httpsPort value to set.

Returns:

the ExplicitProxy object itself.

withPacFile

public ExplicitProxy withPacFile(String pacFile)

Set the pacFile property: SAS URL for PAC file.

Parameters:

pacFile - the pacFile value to set.

Returns:

the ExplicitProxy object itself.

withPacFilePort

public ExplicitProxy withPacFilePort(Integer pacFilePort)

Set the pacFilePort property: Port number for firewall to serve PAC file.

Parameters:

pacFilePort - the pacFilePort value to set.

Returns:

the ExplicitProxy object itself.

Applies to