Class ExplicitProxySettings
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ExplicitProxySettings
-
public final class ExplicitProxySettings extends Object
Explicit Proxy Settings in Firewall Policy.
-
-
Constructor Summary
Constructors Constructor Description ExplicitProxySettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanenableExplicitProxy()Get the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.IntegerhttpPort()Get the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.IntegerhttpsPort()Get the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.StringpacFile()Get the pacFile property: SAS URL for PAC file.IntegerpacFilePort()Get the pacFilePort property: Port number for firewall to serve PAC file.voidvalidate()Validates the instance.ExplicitProxySettingswithEnableExplicitProxy(Boolean enableExplicitProxy)Set the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.ExplicitProxySettingswithHttpPort(Integer httpPort)Set the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.ExplicitProxySettingswithHttpsPort(Integer httpsPort)Set the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.ExplicitProxySettingswithPacFile(String pacFile)Set the pacFile property: SAS URL for PAC file.ExplicitProxySettingswithPacFilePort(Integer pacFilePort)Set the pacFilePort property: Port number for firewall to serve PAC file.
-
-
-
Method Detail
-
enableExplicitProxy
public Boolean enableExplicitProxy()
Get the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.- Returns:
- the enableExplicitProxy value.
-
withEnableExplicitProxy
public ExplicitProxySettings 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 ExplicitProxySettings object itself.
-
httpPort
public Integer httpPort()
Get the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.- Returns:
- the httpPort value.
-
withHttpPort
public ExplicitProxySettings 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 ExplicitProxySettings object itself.
-
httpsPort
public Integer httpsPort()
Get the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.- Returns:
- the httpsPort value.
-
withHttpsPort
public ExplicitProxySettings 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 ExplicitProxySettings object itself.
-
pacFilePort
public Integer pacFilePort()
Get the pacFilePort property: Port number for firewall to serve PAC file.- Returns:
- the pacFilePort value.
-
withPacFilePort
public ExplicitProxySettings withPacFilePort(Integer pacFilePort)
Set the pacFilePort property: Port number for firewall to serve PAC file.- Parameters:
pacFilePort- the pacFilePort value to set.- Returns:
- the ExplicitProxySettings object itself.
-
pacFile
public String pacFile()
Get the pacFile property: SAS URL for PAC file.- Returns:
- the pacFile value.
-
withPacFile
public ExplicitProxySettings withPacFile(String pacFile)
Set the pacFile property: SAS URL for PAC file.- Parameters:
pacFile- the pacFile value to set.- Returns:
- the ExplicitProxySettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-