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

package com.azure.ai.translation.text.models;

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

/** Item containing break sentence result. */
@Immutable
public final class BreakSentenceItem {
    /*
     * The detectedLanguage property is only present in the result object when language auto-detection is requested.
     */
    @JsonProperty(value = "detectedLanguage")
    private DetectedLanguage detectedLanguage;

    /*
     * An integer array representing the lengths of the sentences in the input text.
     * The length of the array is the number of sentences, and the values are the length of each sentence.
     */
    @JsonProperty(value = "sentLen", required = true)
    private List<Integer> sentLen;

    /**
     * Creates an instance of BreakSentenceItem class.
     *
     * @param sentLen the sentLen value to set.
     */
    @JsonCreator
    private BreakSentenceItem(@JsonProperty(value = "sentLen", required = true) List<Integer> sentLen) {
        this.sentLen = sentLen;
    }

    /**
     * Get the detectedLanguage property: The detectedLanguage property is only present in the result object when
     * language auto-detection is requested.
     *
     * @return the detectedLanguage value.
     */
    public DetectedLanguage getDetectedLanguage() {
        return this.detectedLanguage;
    }

    /**
     * Get the sentLen property: An integer array representing the lengths of the sentences in the input text. The
     * length of the array is the number of sentences, and the values are the length of each sentence.
     *
     * @return the sentLen value.
     */
    public List<Integer> getSentLen() {
        return this.sentLen;
    }
}
