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; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonSubTypes;
Properties of a rule.
/** * Properties of a rule. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "ruleConditionType", defaultImpl = FirewallPolicyRuleCondition.class) @JsonTypeName("FirewallPolicyRuleCondition") @JsonSubTypes({ @JsonSubTypes.Type(name = "ApplicationRuleCondition", value = ApplicationRuleCondition.class), @JsonSubTypes.Type(name = "NetworkRuleCondition", value = NetworkRuleCondition.class) }) public class FirewallPolicyRuleCondition {
Name of the rule condition.
/** * Name of the rule condition. */
@JsonProperty(value = "name") private String name;
Description of the rule condition.
/** * Description of the rule condition. */
@JsonProperty(value = "description") private String description;
Get name of the rule condition.
Returns:the name value
/** * Get name of the rule condition. * * @return the name value */
public String name() { return this.name; }
Set name of the rule condition.
Params:
  • name – the name value to set
Returns:the FirewallPolicyRuleCondition object itself.
/** * Set name of the rule condition. * * @param name the name value to set * @return the FirewallPolicyRuleCondition object itself. */
public FirewallPolicyRuleCondition withName(String name) { this.name = name; return this; }
Get description of the rule condition.
Returns:the description value
/** * Get description of the rule condition. * * @return the description value */
public String description() { return this.description; }
Set description of the rule condition.
Params:
  • description – the description value to set
Returns:the FirewallPolicyRuleCondition object itself.
/** * Set description of the rule condition. * * @param description the description value to set * @return the FirewallPolicyRuleCondition object itself. */
public FirewallPolicyRuleCondition withDescription(String description) { this.description = description; return this; } }