Class SAPDocumentTranslationInputConfig
java.lang.Object
com.sap.ai.sdk.orchestration.model.SAPDocumentTranslationInputConfig
Configuration for `sap_document_translation` translation provider.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for SAPDocumentTranslationInputConfig. -
Method Summary
Modifier and TypeMethodDescriptionaddApplyToItem(SAPDocumentTranslationApplyToSelector applyToItem) Add one applyTo instance to thisSAPDocumentTranslationInputConfig.applyTo(List<SAPDocumentTranslationApplyToSelector> applyTo) Set the applyTo of thisSAPDocumentTranslationInputConfiginstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newSAPDocumentTranslationInputConfiginstance with all required arguments.booleanGet applyTogetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSAPDocumentTranslationInputConfig.Language of the text to be translated.Language to which the text should be translated.inthashCode()voidSet the applyTo of thisSAPDocumentTranslationInputConfiginstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSAPDocumentTranslationInputConfiginstance.voidsetSourceLanguage(String sourceLanguage) Set the sourceLanguage of thisSAPDocumentTranslationInputConfiginstance.voidsetTargetLanguage(String targetLanguage) Set the targetLanguage of thisSAPDocumentTranslationInputConfiginstance.sourceLanguage(String sourceLanguage) Set the sourceLanguage of thisSAPDocumentTranslationInputConfiginstance and return the same instance.targetLanguage(String targetLanguage) Set the targetLanguage of thisSAPDocumentTranslationInputConfiginstance and return the same instance.toMap()Get the value of all properties of thisSAPDocumentTranslationInputConfiginstance including unrecognized properties.toString()
-
Constructor Details
-
SAPDocumentTranslationInputConfig
protected SAPDocumentTranslationInputConfig()Default constructor for SAPDocumentTranslationInputConfig.
-
-
Method Details
-
sourceLanguage
Set the sourceLanguage of thisSAPDocumentTranslationInputConfiginstance and return the same instance.- Parameters:
sourceLanguage- Language of the text to be translated.- Returns:
- The same instance of this
SAPDocumentTranslationInputConfigclass
-
getSourceLanguage
Language of the text to be translated.- Returns:
- sourceLanguage The sourceLanguage of this
SAPDocumentTranslationInputConfiginstance.
-
setSourceLanguage
Set the sourceLanguage of thisSAPDocumentTranslationInputConfiginstance.- Parameters:
sourceLanguage- Language of the text to be translated.
-
applyTo
@Nonnull public SAPDocumentTranslationInputConfig applyTo(@Nullable List<SAPDocumentTranslationApplyToSelector> applyTo) Set the applyTo of thisSAPDocumentTranslationInputConfiginstance and return the same instance.- Parameters:
applyTo- The applyTo of thisSAPDocumentTranslationInputConfig- Returns:
- The same instance of this
SAPDocumentTranslationInputConfigclass
-
addApplyToItem
@Nonnull public SAPDocumentTranslationInputConfig addApplyToItem(@Nonnull SAPDocumentTranslationApplyToSelector applyToItem) Add one applyTo instance to thisSAPDocumentTranslationInputConfig.- Parameters:
applyToItem- The applyTo that should be added- Returns:
- The same instance of type
SAPDocumentTranslationInputConfig
-
getApplyTo
Get applyTo- Returns:
- applyTo The applyTo of this
SAPDocumentTranslationInputConfiginstance.
-
setApplyTo
Set the applyTo of thisSAPDocumentTranslationInputConfiginstance.- Parameters:
applyTo- The applyTo of thisSAPDocumentTranslationInputConfig
-
targetLanguage
Set the targetLanguage of thisSAPDocumentTranslationInputConfiginstance and return the same instance.- Parameters:
targetLanguage- Language to which the text should be translated.- Returns:
- The same instance of this
SAPDocumentTranslationInputConfigclass
-
getTargetLanguage
Language to which the text should be translated.- Returns:
- targetLanguage The targetLanguage of this
SAPDocumentTranslationInputConfiginstance.
-
setTargetLanguage
Set the targetLanguage of thisSAPDocumentTranslationInputConfiginstance.- Parameters:
targetLanguage- Language to which the text should be translated.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSAPDocumentTranslationInputConfig.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisSAPDocumentTranslationInputConfiginstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisSAPDocumentTranslationInputConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSAPDocumentTranslationInputConfiginstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newSAPDocumentTranslationInputConfiginstance with all required arguments.
-
toMap()instead.