Class AzureFirewallApplicationRuleProtocol
- java.lang.Object
-
- com.azure.resourcemanager.network.models.AzureFirewallApplicationRuleProtocol
-
public final class AzureFirewallApplicationRuleProtocol extends Object
Properties of the application rule protocol.
-
-
Constructor Summary
Constructors Constructor Description AzureFirewallApplicationRuleProtocol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerport()Get the port property: Port number for the protocol, cannot be greater than 64000.AzureFirewallApplicationRuleProtocolTypeprotocolType()Get the protocolType property: Protocol type.voidvalidate()Validates the instance.AzureFirewallApplicationRuleProtocolwithPort(Integer port)Set the port property: Port number for the protocol, cannot be greater than 64000.AzureFirewallApplicationRuleProtocolwithProtocolType(AzureFirewallApplicationRuleProtocolType protocolType)Set the protocolType property: Protocol type.
-
-
-
Method Detail
-
protocolType
public AzureFirewallApplicationRuleProtocolType protocolType()
Get the protocolType property: Protocol type.- Returns:
- the protocolType value.
-
withProtocolType
public AzureFirewallApplicationRuleProtocol withProtocolType(AzureFirewallApplicationRuleProtocolType protocolType)
Set the protocolType property: Protocol type.- Parameters:
protocolType- the protocolType value to set.- Returns:
- the AzureFirewallApplicationRuleProtocol object itself.
-
port
public Integer port()
Get the port property: Port number for the protocol, cannot be greater than 64000. This field is optional.- Returns:
- the port value.
-
withPort
public AzureFirewallApplicationRuleProtocol withPort(Integer port)
Set the port property: Port number for the protocol, cannot be greater than 64000. This field is optional.- Parameters:
port- the port value to set.- Returns:
- the AzureFirewallApplicationRuleProtocol object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-