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 FirewallPolicyRuleConditionApplicationProtocol {
Protocol type. Possible values include: 'Http', 'Https'.
/** * Protocol type. Possible values include: 'Http', 'Https'. */
@JsonProperty(value = "protocolType") private FirewallPolicyRuleConditionApplicationProtocolType protocolType;
Port number for the protocol, cannot be greater than 64000.
/** * Port number for the protocol, cannot be greater than 64000. */
@JsonProperty(value = "port") private Integer port;
Get protocol type. Possible values include: 'Http', 'Https'.
Returns:the protocolType value
/** * Get protocol type. Possible values include: 'Http', 'Https'. * * @return the protocolType value */
public FirewallPolicyRuleConditionApplicationProtocolType protocolType() { return this.protocolType; }
Set protocol type. Possible values include: 'Http', 'Https'.
Params:
  • protocolType – the protocolType value to set
Returns:the FirewallPolicyRuleConditionApplicationProtocol object itself.
/** * Set protocol type. Possible values include: 'Http', 'Https'. * * @param protocolType the protocolType value to set * @return the FirewallPolicyRuleConditionApplicationProtocol object itself. */
public FirewallPolicyRuleConditionApplicationProtocol withProtocolType(FirewallPolicyRuleConditionApplicationProtocolType protocolType) { this.protocolType = protocolType; return this; }
Get port number for the protocol, cannot be greater than 64000.
Returns:the port value
/** * Get port number for the protocol, cannot be greater than 64000. * * @return the port value */
public Integer port() { return this.port; }
Set port number for the protocol, cannot be greater than 64000.
Params:
  • port – the port value to set
Returns:the FirewallPolicyRuleConditionApplicationProtocol object itself.
/** * Set port number for the protocol, cannot be greater than 64000. * * @param port the port value to set * @return the FirewallPolicyRuleConditionApplicationProtocol object itself. */
public FirewallPolicyRuleConditionApplicationProtocol withPort(Integer port) { this.port = port; return this; } }