SentimentSkill.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Text analytics positive-negative sentiment analysis, scored as a floating
* point value in a range of zero to 1.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type")
@JsonTypeName("#Microsoft.Skills.Text.SentimentSkill")
@Fluent
public final class SentimentSkill extends Skill {
/*
* A value indicating which language code to use. Default is en. Possible
* values include: 'da', 'nl', 'en', 'fi', 'fr', 'de', 'el', 'it', 'no',
* 'pl', 'pt-PT', 'ru', 'es', 'sv', 'tr'
*/
@JsonProperty(value = "defaultLanguageCode")
private SentimentSkillLanguage defaultLanguageCode;
/**
* Get the defaultLanguageCode property: A value indicating which language
* code to use. Default is en. Possible values include: 'da', 'nl', 'en',
* 'fi', 'fr', 'de', 'el', 'it', 'no', 'pl', 'pt-PT', 'ru', 'es', 'sv',
* 'tr'.
*
* @return the defaultLanguageCode value.
*/
public SentimentSkillLanguage getDefaultLanguageCode() {
return this.defaultLanguageCode;
}
/**
* Set the defaultLanguageCode property: A value indicating which language
* code to use. Default is en. Possible values include: 'da', 'nl', 'en',
* 'fi', 'fr', 'de', 'el', 'it', 'no', 'pl', 'pt-PT', 'ru', 'es', 'sv',
* 'tr'.
*
* @param defaultLanguageCode the defaultLanguageCode value to set.
* @return the SentimentSkill object itself.
*/
public SentimentSkill setDefaultLanguageCode(SentimentSkillLanguage defaultLanguageCode) {
this.defaultLanguageCode = defaultLanguageCode;
return this;
}
}