Class AzureFirewallApplicationRuleProtocol
java.lang.Object
com.azure.resourcemanager.network.models.AzureFirewallApplicationRuleProtocol
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFirewallApplicationRuleProtocol>
public final class AzureFirewallApplicationRuleProtocol
extends Object
implements com.azure.json.JsonSerializable<AzureFirewallApplicationRuleProtocol>
Properties of the application rule protocol.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureFirewallApplicationRuleProtocol class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFirewallApplicationRuleProtocol from the JsonReader.port()Get the port property: Port number for the protocol, cannot be greater than 64000.Get the protocolType property: Protocol type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the port property: Port number for the protocol, cannot be greater than 64000.withProtocolType(AzureFirewallApplicationRuleProtocolType protocolType) Set the protocolType property: Protocol type.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
-
AzureFirewallApplicationRuleProtocol
public AzureFirewallApplicationRuleProtocol()Creates an instance of AzureFirewallApplicationRuleProtocol class.
-
-
Method Details
-
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
Get the port property: Port number for the protocol, cannot be greater than 64000. This field is optional.- Returns:
- the port value.
-
withPort
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureFirewallApplicationRuleProtocol>- Throws:
IOException
-
fromJson
public static AzureFirewallApplicationRuleProtocol fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureFirewallApplicationRuleProtocol from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureFirewallApplicationRuleProtocol 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 AzureFirewallApplicationRuleProtocol.
-