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

/** Transliterated text element. */
@Immutable
public final class TransliteratedText {
    /*
     * A string which is the result of converting the input string to the output script.
     */
    @JsonProperty(value = "text", required = true)
    private String text;

    /*
     * A string specifying the script used in the output.
     */
    @JsonProperty(value = "script", required = true)
    private String script;

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

    /**
     * Get the text property: A string which is the result of converting the input string to the output script.
     *
     * @return the text value.
     */
    public String getText() {
        return this.text;
    }

    /**
     * Get the script property: A string specifying the script used in the output.
     *
     * @return the script value.
     */
    public String getScript() {
        return this.script;
    }
}
