Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network; import com.fasterxml.jackson.annotation.JsonProperty;
Properties of the application rule protocol.
/** * Properties of the application rule protocol. */
public class AzureFirewallApplicationRuleProtocol {
Protocol type. Possible values include: 'Http', 'Https', 'Mssql'.
/** * Protocol type. Possible values include: 'Http', 'Https', 'Mssql'. */
@JsonProperty(value = "protocolType") private AzureFirewallApplicationRuleProtocolType protocolType;
Port number for the protocol, cannot be greater than 64000. This field is optional.
/** * Port number for the protocol, cannot be greater than 64000. This field * is optional. */
@JsonProperty(value = "port") private Integer port;
Get protocol type. Possible values include: 'Http', 'Https', 'Mssql'.
Returns:the protocolType value
/** * Get protocol type. Possible values include: 'Http', 'Https', 'Mssql'. * * @return the protocolType value */
public AzureFirewallApplicationRuleProtocolType protocolType() { return this.protocolType; }
Set protocol type. Possible values include: 'Http', 'Https', 'Mssql'.
Params:
  • protocolType – the protocolType value to set
Returns:the AzureFirewallApplicationRuleProtocol object itself.
/** * Set protocol type. Possible values include: 'Http', 'Https', 'Mssql'. * * @param protocolType the protocolType value to set * @return the AzureFirewallApplicationRuleProtocol object itself. */
public AzureFirewallApplicationRuleProtocol withProtocolType(AzureFirewallApplicationRuleProtocolType protocolType) { this.protocolType = protocolType; return this; }
Get port number for the protocol, cannot be greater than 64000. This field is optional.
Returns:the port value
/** * Get port number for the protocol, cannot be greater than 64000. This field is optional. * * @return the port value */
public Integer port() { return this.port; }
Set port number for the protocol, cannot be greater than 64000. This field is optional.
Params:
  • port – the port value to set
Returns:the AzureFirewallApplicationRuleProtocol object itself.
/** * Set port number for the protocol, cannot be greater than 64000. This field is optional. * * @param port the port value to set * @return the AzureFirewallApplicationRuleProtocol object itself. */
public AzureFirewallApplicationRuleProtocol withPort(Integer port) { this.port = port; return this; } }