Class TranslationModuleConfig
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.TranslationModuleConfig
Configuration for translation module
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for TranslationModuleConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic TranslationModuleConfigcreate()Create a newTranslationModuleConfiginstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTranslationModuleConfig.getInput()Configuration for input translationConfiguration for output translationinthashCode()input(SAPDocumentTranslationInput input) Set the input of thisTranslationModuleConfiginstance and return the same instance.output(SAPDocumentTranslationOutput output) Set the output of thisTranslationModuleConfiginstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTranslationModuleConfiginstance.voidSet the input of thisTranslationModuleConfiginstance.voidSet the output of thisTranslationModuleConfiginstance.toMap()Get the value of all properties of thisTranslationModuleConfiginstance including unrecognized properties.toString()
-
Constructor Details
-
TranslationModuleConfig
protected TranslationModuleConfig()Default constructor for TranslationModuleConfig.
-
-
Method Details
-
input
Set the input of thisTranslationModuleConfiginstance and return the same instance.- Parameters:
input- Configuration for input translation- Returns:
- The same instance of this
TranslationModuleConfigclass
-
getInput
Configuration for input translation- Returns:
- input The input of this
TranslationModuleConfiginstance.
-
setInput
Set the input of thisTranslationModuleConfiginstance.- Parameters:
input- Configuration for input translation
-
output
Set the output of thisTranslationModuleConfiginstance and return the same instance.- Parameters:
output- Configuration for output translation- Returns:
- The same instance of this
TranslationModuleConfigclass
-
getOutput
Configuration for output translation- Returns:
- output The output of this
TranslationModuleConfiginstance.
-
setOutput
Set the output of thisTranslationModuleConfiginstance.- Parameters:
output- Configuration for output translation
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTranslationModuleConfig.- 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 thisTranslationModuleConfiginstance.- 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 thisTranslationModuleConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTranslationModuleConfiginstance. 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 newTranslationModuleConfiginstance. No arguments are required.
-
toMap()instead.