AzureFirewallApplicationRuleProtocol Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. AzureFirewallApplicationRuleProtocol
- com.
Implements
public final class AzureFirewallApplicationRuleProtocol
implements JsonSerializable<AzureFirewallApplicationRuleProtocol>
Properties of the application rule protocol.
Constructor Summary
Constructor | Description |
---|---|
AzureFirewallApplicationRuleProtocol() |
Creates an instance of Azure |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
Integer |
port()
Get the port property: Port number for the protocol, cannot be greater than 64000. |
Azure |
protocolType()
Get the protocol |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Azure |
withPort(Integer port)
Set the port property: Port number for the protocol, cannot be greater than 64000. |
Azure |
withProtocolType(AzureFirewallApplicationRuleProtocolType protocolType)
Set the protocol |
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:
Returns:
Throws:
port
public Integer port()
Get the port property: Port number for the protocol, cannot be greater than 64000. This field is optional.
Returns:
protocolType
public AzureFirewallApplicationRuleProtocolType protocolType()
Get the protocolType property: Protocol type.
Returns:
toJson
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:
Returns:
withProtocolType
public AzureFirewallApplicationRuleProtocol withProtocolType(AzureFirewallApplicationRuleProtocolType protocolType)
Set the protocolType property: Protocol type.
Parameters:
Returns:
Applies to
Azure SDK for Java