AzureFirewallApplicationRuleProtocol Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.AzureFirewallApplicationRuleProtocol

Implements

public final class AzureFirewallApplicationRuleProtocol
implements JsonSerializable<AzureFirewallApplicationRuleProtocol>

Properties of the application rule protocol.

Constructor Summary

Constructor Description
AzureFirewallApplicationRuleProtocol()

Creates an instance of AzureFirewallApplicationRuleProtocol class.

Method Summary

Modifier and Type Method and Description
static AzureFirewallApplicationRuleProtocol fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallApplicationRuleProtocol from the JsonReader.

Integer port()

Get the port property: Port number for the protocol, cannot be greater than 64000.

AzureFirewallApplicationRuleProtocolType protocolType()

Get the protocolType property: Protocol type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureFirewallApplicationRuleProtocol withPort(Integer port)

Set the port property: Port number for the protocol, cannot be greater than 64000.

AzureFirewallApplicationRuleProtocol withProtocolType(AzureFirewallApplicationRuleProtocolType protocolType)

Set the protocolType property: Protocol type.

Methods inherited from java.lang.Object

Constructor Details

AzureFirewallApplicationRuleProtocol

public AzureFirewallApplicationRuleProtocol()

Creates an instance of AzureFirewallApplicationRuleProtocol class.

Method Details

fromJson

public static AzureFirewallApplicationRuleProtocol fromJson(JsonReader jsonReader)

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.

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.

protocolType

public AzureFirewallApplicationRuleProtocolType protocolType()

Get the protocolType property: Protocol type.

Returns:

the protocolType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withProtocolType

public AzureFirewallApplicationRuleProtocol withProtocolType(AzureFirewallApplicationRuleProtocolType protocolType)

Set the protocolType property: Protocol type.

Parameters:

protocolType - the protocolType value to set.

Returns:

the AzureFirewallApplicationRuleProtocol object itself.

Applies to