/**
 * 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.spellcheck.models;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * The SpellCheck model.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = SpellCheck.class)
@JsonTypeName("SpellCheck")
public class SpellCheck extends Answer {
    /**
     * The flaggedTokens property.
     */
    @JsonProperty(value = "flaggedTokens", required = true)
    private List<SpellingFlaggedToken> flaggedTokens;

    /**
     * Get the flaggedTokens value.
     *
     * @return the flaggedTokens value
     */
    public List<SpellingFlaggedToken> flaggedTokens() {
        return this.flaggedTokens;
    }

    /**
     * Set the flaggedTokens value.
     *
     * @param flaggedTokens the flaggedTokens value to set
     * @return the SpellCheck object itself.
     */
    public SpellCheck withFlaggedTokens(List<SpellingFlaggedToken> flaggedTokens) {
        this.flaggedTokens = flaggedTokens;
        return this;
    }

}
