AnalyzeResult.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.implementation.models;
import com.azure.core.annotation.Fluent;
import com.azure.search.documents.models.TokenInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* The result of testing an analyzer on text.
*/
@Fluent
public final class AnalyzeResult {
/*
* The list of tokens returned by the analyzer specified in the request.
*/
@JsonProperty(value = "tokens", required = true)
private List<TokenInfo> tokens;
/**
* Get the tokens property: The list of tokens returned by the analyzer
* specified in the request.
*
* @return the tokens value.
*/
public List<TokenInfo> getTokens() {
return this.tokens;
}
/**
* Set the tokens property: The list of tokens returned by the analyzer
* specified in the request.
*
* @param tokens the tokens value to set.
* @return the AnalyzeResult object itself.
*/
public AnalyzeResult setTokens(List<TokenInfo> tokens) {
this.tokens = tokens;
return this;
}
}