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

com.microsoft.azure.management.network.MatchCondition 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 java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Define match conditions.
 */
public class MatchCondition {
    /**
     * List of match variables.
     */
    @JsonProperty(value = "matchVariables", required = true)
    private List matchVariables;

    /**
     * The operator to be matched. Possible values include: 'IPMatch', 'Equal',
     * 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual',
     * 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'Regex', 'GeoMatch'.
     */
    @JsonProperty(value = "operator", required = true)
    private WebApplicationFirewallOperator operator;

    /**
     * Whether this is negate condition or not.
     */
    @JsonProperty(value = "negationConditon")
    private Boolean negationConditon;

    /**
     * Match value.
     */
    @JsonProperty(value = "matchValues", required = true)
    private List matchValues;

    /**
     * List of transforms.
     */
    @JsonProperty(value = "transforms")
    private List transforms;

    /**
     * Get list of match variables.
     *
     * @return the matchVariables value
     */
    public List matchVariables() {
        return this.matchVariables;
    }

    /**
     * Set list of match variables.
     *
     * @param matchVariables the matchVariables value to set
     * @return the MatchCondition object itself.
     */
    public MatchCondition withMatchVariables(List matchVariables) {
        this.matchVariables = matchVariables;
        return this;
    }

    /**
     * Get the operator to be matched. Possible values include: 'IPMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'Regex', 'GeoMatch'.
     *
     * @return the operator value
     */
    public WebApplicationFirewallOperator operator() {
        return this.operator;
    }

    /**
     * Set the operator to be matched. Possible values include: 'IPMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'Regex', 'GeoMatch'.
     *
     * @param operator the operator value to set
     * @return the MatchCondition object itself.
     */
    public MatchCondition withOperator(WebApplicationFirewallOperator operator) {
        this.operator = operator;
        return this;
    }

    /**
     * Get whether this is negate condition or not.
     *
     * @return the negationConditon value
     */
    public Boolean negationConditon() {
        return this.negationConditon;
    }

    /**
     * Set whether this is negate condition or not.
     *
     * @param negationConditon the negationConditon value to set
     * @return the MatchCondition object itself.
     */
    public MatchCondition withNegationConditon(Boolean negationConditon) {
        this.negationConditon = negationConditon;
        return this;
    }

    /**
     * Get match value.
     *
     * @return the matchValues value
     */
    public List matchValues() {
        return this.matchValues;
    }

    /**
     * Set match value.
     *
     * @param matchValues the matchValues value to set
     * @return the MatchCondition object itself.
     */
    public MatchCondition withMatchValues(List matchValues) {
        this.matchValues = matchValues;
        return this;
    }

    /**
     * Get list of transforms.
     *
     * @return the transforms value
     */
    public List transforms() {
        return this.transforms;
    }

    /**
     * Set list of transforms.
     *
     * @param transforms the transforms value to set
     * @return the MatchCondition object itself.
     */
    public MatchCondition withTransforms(List transforms) {
        this.transforms = transforms;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy