Class ExplicitProxy
java.lang.Object
com.azure.resourcemanager.network.models.ExplicitProxy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExplicitProxy>
public final class ExplicitProxy
extends Object
implements com.azure.json.JsonSerializable<ExplicitProxy>
Explicit Proxy Settings in Firewall Policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.Get the enablePacFile property: When set to true, pac file port and url needs to be provided.static ExplicitProxyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExplicitProxy from the JsonReader.httpPort()Get the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.Get the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.pacFile()Get the pacFile property: SAS URL for PAC file.Get the pacFilePort property: Port number for firewall to serve PAC file.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnableExplicitProxy(Boolean enableExplicitProxy) Set the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.withEnablePacFile(Boolean enablePacFile) Set the enablePacFile property: When set to true, pac file port and url needs to be provided.withHttpPort(Integer httpPort) Set the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.withHttpsPort(Integer httpsPort) Set the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.withPacFile(String pacFile) Set the pacFile property: SAS URL for PAC file.withPacFilePort(Integer pacFilePort) Set the pacFilePort property: Port number for firewall to serve PAC file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExplicitProxy
public ExplicitProxy()Creates an instance of ExplicitProxy class.
-
-
Method Details
-
enableExplicitProxy
Get the enableExplicitProxy property: When set to true, explicit proxy mode is enabled.- Returns:
- the enableExplicitProxy value.
-
withEnableExplicitProxy
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.
-
httpPort
Get the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.- Returns:
- the httpPort value.
-
withHttpPort
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.
-
httpsPort
Get the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.- Returns:
- the httpsPort value.
-
withHttpsPort
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.
-
enablePacFile
Get the enablePacFile property: When set to true, pac file port and url needs to be provided.- Returns:
- the enablePacFile value.
-
withEnablePacFile
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.
-
pacFilePort
Get the pacFilePort property: Port number for firewall to serve PAC file.- Returns:
- the pacFilePort value.
-
withPacFilePort
Set the pacFilePort property: Port number for firewall to serve PAC file.- Parameters:
pacFilePort- the pacFilePort value to set.- Returns:
- the ExplicitProxy object itself.
-
pacFile
Get the pacFile property: SAS URL for PAC file.- Returns:
- the pacFile value.
-
withPacFile
Set the pacFile property: SAS URL for PAC file.- Parameters:
pacFile- the pacFile value to set.- Returns:
- the ExplicitProxy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExplicitProxy>- Throws:
IOException
-
fromJson
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.
-