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

/** Script definition with list of script into which given script can be translitered. */
@Immutable
public final class TransliterableScript extends CommonScriptModel {
    /*
     * List of scripts available to convert text to.
     */
    @JsonProperty(value = "toScripts", required = true)
    private List<CommonScriptModel> toScripts;

    /**
     * Creates an instance of TransliterableScript class.
     *
     * @param code the code value to set.
     * @param name the name value to set.
     * @param nativeName the nativeName value to set.
     * @param dir the dir value to set.
     * @param toScripts the toScripts value to set.
     */
    @JsonCreator
    private TransliterableScript(
            @JsonProperty(value = "code", required = true) String code,
            @JsonProperty(value = "name", required = true) String name,
            @JsonProperty(value = "nativeName", required = true) String nativeName,
            @JsonProperty(value = "dir", required = true) String dir,
            @JsonProperty(value = "toScripts", required = true) List<CommonScriptModel> toScripts) {
        super(code, name, nativeName, dir);
        this.toScripts = toScripts;
    }

    /**
     * Get the toScripts property: List of scripts available to convert text to.
     *
     * @return the toScripts value.
     */
    public List<CommonScriptModel> getToScripts() {
        return this.toScripts;
    }
}
