LanguageInput.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;

/** The LanguageInput model. */
@Fluent
public final class LanguageInput {
    /*
     * Unique, non-empty document identifier.
     */
    @JsonProperty(value = "id", required = true)
    private String id;

    /*
     * The text property.
     */
    @JsonProperty(value = "text", required = true)
    private String text;

    /*
     * The countryHint property.
     */
    @JsonProperty(value = "countryHint")
    private String countryHint;

    /**
     * Get the id property: Unique, non-empty document identifier.
     *
     * @return the id value.
     */
    public String getId() {
        return this.id;
    }

    /**
     * Set the id property: Unique, non-empty document identifier.
     *
     * @param id the id value to set.
     * @return the LanguageInput object itself.
     */
    public LanguageInput setId(String id) {
        this.id = id;
        return this;
    }

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

    /**
     * Set the text property: The text property.
     *
     * @param text the text value to set.
     * @return the LanguageInput object itself.
     */
    public LanguageInput setText(String text) {
        this.text = text;
        return this;
    }

    /**
     * Get the countryHint property: The countryHint property.
     *
     * @return the countryHint value.
     */
    public String getCountryHint() {
        return this.countryHint;
    }

    /**
     * Set the countryHint property: The countryHint property.
     *
     * @param countryHint the countryHint value to set.
     * @return the LanguageInput object itself.
     */
    public LanguageInput setCountryHint(String countryHint) {
        this.countryHint = countryHint;
        return this;
    }
}