ExplicitProxy Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ExplicitProxy
- com.
Implements
public final class ExplicitProxy
implements JsonSerializable<ExplicitProxy>
Explicit Proxy Settings in Firewall Policy.
Constructor Summary
Constructor | Description |
---|---|
ExplicitProxy() |
Creates an instance of Explicit |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enableExplicitProxy()
Get the enable |
Boolean |
enablePacFile()
Get the enable |
static
Explicit |
fromJson(JsonReader jsonReader)
Reads an instance of Explicit |
Integer |
httpPort()
Get the http |
Integer |
httpsPort()
Get the https |
String |
pacFile()
Get the pac |
Integer |
pacFilePort()
Get the pac |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Explicit |
withEnableExplicitProxy(Boolean enableExplicitProxy)
Set the enable |
Explicit |
withEnablePacFile(Boolean enablePacFile)
Set the enable |
Explicit |
withHttpPort(Integer httpPort)
Set the http |
Explicit |
withHttpsPort(Integer httpsPort)
Set the https |
Explicit |
withPacFile(String pacFile)
Set the pac |
Explicit |
withPacFilePort(Integer pacFilePort)
Set the pac |
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:
enablePacFile
public Boolean enablePacFile()
Get the enablePacFile property: When set to true, pac file port and url needs to be provided.
Returns:
fromJson
public static ExplicitProxy fromJson(JsonReader jsonReader)
Reads an instance of ExplicitProxy from the JsonReader.
Parameters:
Returns:
Throws:
httpPort
public Integer httpPort()
Get the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.
Returns:
httpsPort
public Integer httpsPort()
Get the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.
Returns:
pacFile
public String pacFile()
Get the pacFile property: SAS URL for PAC file.
Returns:
pacFilePort
public Integer pacFilePort()
Get the pacFilePort property: Port number for firewall to serve PAC file.
Returns:
toJson
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:
Returns:
withEnablePacFile
public ExplicitProxy withEnablePacFile(Boolean enablePacFile)
Set the enablePacFile property: When set to true, pac file port and url needs to be provided.
Parameters:
Returns:
withHttpPort
public ExplicitProxy withHttpPort(Integer httpPort)
Set the httpPort property: Port number for explicit proxy http protocol, cannot be greater than 64000.
Parameters:
Returns:
withHttpsPort
public ExplicitProxy withHttpsPort(Integer httpsPort)
Set the httpsPort property: Port number for explicit proxy https protocol, cannot be greater than 64000.
Parameters:
Returns:
withPacFile
public ExplicitProxy withPacFile(String pacFile)
Set the pacFile property: SAS URL for PAC file.
Parameters:
Returns:
withPacFilePort
public ExplicitProxy withPacFilePort(Integer pacFilePort)
Set the pacFilePort property: Port number for firewall to serve PAC file.
Parameters:
Returns:
Applies to
Azure SDK for Java