/**
 * 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.cognitiveservices.language.luis.authoring.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Pattern feature.
 */
public class PatternFeatureInfo extends FeatureInfoObject {
    /**
     * The Regular Expression to match.
     */
    @JsonProperty(value = "pattern")
    private String pattern;

    /**
     * Get the pattern value.
     *
     * @return the pattern value
     */
    public String pattern() {
        return this.pattern;
    }

    /**
     * Set the pattern value.
     *
     * @param pattern the pattern value to set
     * @return the PatternFeatureInfo object itself.
     */
    public PatternFeatureInfo withPattern(String pattern) {
        this.pattern = pattern;
        return this;
    }

}
