// 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;

/** Element containing the text for translation. */
@Immutable
public class InputTextItem {
    /*
     * Text to translate.
     */
    @JsonProperty(value = "text", required = true)
    private String text;

    /**
     * Creates an instance of InputTextItem class.
     *
     * @param text the text value to set.
     */
    @JsonCreator
    public InputTextItem(@JsonProperty(value = "text", required = true) String text) {
        this.text = text;
    }

    /**
     * Get the text property: Text to translate.
     *
     * @return the text value.
     */
    public String getText() {
        return this.text;
    }
}
