All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.network.FirewallPolicyRuleCondition Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * 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.
 */
@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.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * Description of the rule condition.
     */
    @JsonProperty(value = "description")
    private String description;

    /**
     * Get name of the rule condition.
     *
     * @return the name value
     */
    public String name() {
        return this.name;
    }

    /**
     * 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.
     *
     * @return the description value
     */
    public String description() {
        return this.description;
    }

    /**
     * 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy