Class SAPDocumentTranslationOutputConfig
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.SAPDocumentTranslationOutputConfig
SAPDocumentTranslationOutputConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for SAPDocumentTranslationOutputConfig. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a type-safe, fluent-api builder object to construct a newSAPDocumentTranslationOutputConfiginstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSAPDocumentTranslationOutputConfig.Language of the text to be translated.Get targetLanguageinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSAPDocumentTranslationOutputConfiginstance.voidsetSourceLanguage(String sourceLanguage) Set the sourceLanguage of thisSAPDocumentTranslationOutputConfiginstance.voidsetTargetLanguage(SAPDocumentTranslationOutputTargetLanguage targetLanguage) Set the targetLanguage of thisSAPDocumentTranslationOutputConfiginstance.sourceLanguage(String sourceLanguage) Set the sourceLanguage of thisSAPDocumentTranslationOutputConfiginstance and return the same instance.targetLanguage(SAPDocumentTranslationOutputTargetLanguage targetLanguage) Set the targetLanguage of thisSAPDocumentTranslationOutputConfiginstance and return the same instance.toMap()Get the value of all properties of thisSAPDocumentTranslationOutputConfiginstance including unrecognized properties.toString()
-
Constructor Details
-
SAPDocumentTranslationOutputConfig
protected SAPDocumentTranslationOutputConfig()Default constructor for SAPDocumentTranslationOutputConfig.
-
-
Method Details
-
sourceLanguage
Set the sourceLanguage of thisSAPDocumentTranslationOutputConfiginstance and return the same instance.- Parameters:
sourceLanguage- Language of the text to be translated.- Returns:
- The same instance of this
SAPDocumentTranslationOutputConfigclass
-
getSourceLanguage
Language of the text to be translated.- Returns:
- sourceLanguage The sourceLanguage of this
SAPDocumentTranslationOutputConfiginstance.
-
setSourceLanguage
Set the sourceLanguage of thisSAPDocumentTranslationOutputConfiginstance.- Parameters:
sourceLanguage- Language of the text to be translated.
-
targetLanguage
@Nonnull public SAPDocumentTranslationOutputConfig targetLanguage(@Nonnull SAPDocumentTranslationOutputTargetLanguage targetLanguage) Set the targetLanguage of thisSAPDocumentTranslationOutputConfiginstance and return the same instance.- Parameters:
targetLanguage- The targetLanguage of thisSAPDocumentTranslationOutputConfig- Returns:
- The same instance of this
SAPDocumentTranslationOutputConfigclass
-
getTargetLanguage
Get targetLanguage- Returns:
- targetLanguage The targetLanguage of this
SAPDocumentTranslationOutputConfiginstance.
-
setTargetLanguage
Set the targetLanguage of thisSAPDocumentTranslationOutputConfiginstance.- Parameters:
targetLanguage- The targetLanguage of thisSAPDocumentTranslationOutputConfig
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSAPDocumentTranslationOutputConfig.- 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 thisSAPDocumentTranslationOutputConfiginstance.- 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 thisSAPDocumentTranslationOutputConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSAPDocumentTranslationOutputConfiginstance. 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 newSAPDocumentTranslationOutputConfiginstance with all required arguments.
-
toMap()instead.