Class FirewallPolicyRuleApplicationProtocol
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyRuleApplicationProtocol
Properties of the application rule protocol.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPolicyRuleApplicationProtocol class. -
Method Summary
Modifier and TypeMethodDescriptionport()Get the port property: Port number for the protocol, cannot be greater than 64000.Get the protocolType property: Protocol type.voidvalidate()Validates the instance.Set the port property: Port number for the protocol, cannot be greater than 64000.withProtocolType(FirewallPolicyRuleApplicationProtocolType protocolType) Set the protocolType property: Protocol type.
-
Constructor Details
-
FirewallPolicyRuleApplicationProtocol
public FirewallPolicyRuleApplicationProtocol()Creates an instance of FirewallPolicyRuleApplicationProtocol class.
-
-
Method Details
-
protocolType
Get the protocolType property: Protocol type.- Returns:
- the protocolType value.
-
withProtocolType
public FirewallPolicyRuleApplicationProtocol withProtocolType(FirewallPolicyRuleApplicationProtocolType protocolType) Set the protocolType property: Protocol type.- Parameters:
protocolType- the protocolType value to set.- Returns:
- the FirewallPolicyRuleApplicationProtocol object itself.
-
port
Get the port property: Port number for the protocol, cannot be greater than 64000.- Returns:
- the port value.
-
withPort
Set the port property: Port number for the protocol, cannot be greater than 64000.- Parameters:
port- the port value to set.- Returns:
- the FirewallPolicyRuleApplicationProtocol object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-