Class DetectLanguageInput

java.lang.Object
com.azure.ai.textanalytics.models.DetectLanguageInput

public final class DetectLanguageInput extends Object
  • Constructor Details

    • DetectLanguageInput

      public DetectLanguageInput(String id, String text)
      Creates an input for detect language that will takes id and document as required inputs.
      Parameters:
      id - Unique, non-empty document identifier.
      text - The text property.
    • DetectLanguageInput

      public DetectLanguageInput(String id, String text, String countryHint)
      Creates an input for detect language that will takes id, document and countryHint.
      Parameters:
      id - Unique, non-empty document identifier.
      text - The text property.
      countryHint - Accepts two letter country codes specified by ISO 3166-1 alpha-2. Defaults to "US" if not specified. To remove this behavior you can reset this parameter by setting this value to empty string countryHint = "" or "none".
  • Method Details

    • getId

      public String getId()
      Gets the id property: Unique, non-empty document identifier.
      Returns:
      The id value.
    • getText

      public String getText()
      Gets the text property: The text property.
      Returns:
      The text value.
    • getCountryHint

      public String getCountryHint()
      Gets the countryHint property: The countryHint property.
      Returns:
      The countryHint value.
    • toString

      public String toString()
      Overrides:
      toString in class Object