AnalyzeJobErrorsAndStatistics.java

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

package com.azure.ai.textanalytics.implementation.models;

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

/** The AnalyzeJobErrorsAndStatistics model. */
@Fluent
public class AnalyzeJobErrorsAndStatistics {
    /*
     * The errors property.
     */
    @JsonProperty(value = "errors")
    private List<TextAnalyticsError> errors;

    /*
     * if showStats=true was specified in the request this field will contain
     * information about the request payload.
     */
    @JsonProperty(value = "statistics")
    private RequestStatistics statistics;

    /**
     * Get the errors property: The errors property.
     *
     * @return the errors value.
     */
    public List<TextAnalyticsError> getErrors() {
        return this.errors;
    }

    /**
     * Set the errors property: The errors property.
     *
     * @param errors the errors value to set.
     * @return the AnalyzeJobErrorsAndStatistics object itself.
     */
    public AnalyzeJobErrorsAndStatistics setErrors(List<TextAnalyticsError> errors) {
        this.errors = errors;
        return this;
    }

    /**
     * Get the statistics property: if showStats=true was specified in the request this field will contain information
     * about the request payload.
     *
     * @return the statistics value.
     */
    public RequestStatistics getStatistics() {
        return this.statistics;
    }

    /**
     * Set the statistics property: if showStats=true was specified in the request this field will contain information
     * about the request payload.
     *
     * @param statistics the statistics value to set.
     * @return the AnalyzeJobErrorsAndStatistics object itself.
     */
    public AnalyzeJobErrorsAndStatistics setStatistics(RequestStatistics statistics) {
        this.statistics = statistics;
        return this;
    }
}