// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.deploymentmanager.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The regular expressions to match the response content with. */
@Fluent
public final class RestResponseRegex {
    /*
     * The list of regular expressions.
     */
    @JsonProperty(value = "matches")
    private List<String> matches;

    /*
     * Indicates whether any or all of the expressions should match with the response content.
     */
    @JsonProperty(value = "matchQuantifier")
    private RestMatchQuantifier matchQuantifier;

    /** Creates an instance of RestResponseRegex class. */
    public RestResponseRegex() {
    }

    /**
     * Get the matches property: The list of regular expressions.
     *
     * @return the matches value.
     */
    public List<String> matches() {
        return this.matches;
    }

    /**
     * Set the matches property: The list of regular expressions.
     *
     * @param matches the matches value to set.
     * @return the RestResponseRegex object itself.
     */
    public RestResponseRegex withMatches(List<String> matches) {
        this.matches = matches;
        return this;
    }

    /**
     * Get the matchQuantifier property: Indicates whether any or all of the expressions should match with the response
     * content.
     *
     * @return the matchQuantifier value.
     */
    public RestMatchQuantifier matchQuantifier() {
        return this.matchQuantifier;
    }

    /**
     * Set the matchQuantifier property: Indicates whether any or all of the expressions should match with the response
     * content.
     *
     * @param matchQuantifier the matchQuantifier value to set.
     * @return the RestResponseRegex object itself.
     */
    public RestResponseRegex withMatchQuantifier(RestMatchQuantifier matchQuantifier) {
        this.matchQuantifier = matchQuantifier;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
