Class SAPDocumentTranslationInput
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.SAPDocumentTranslationInput
SAPDocumentTranslationInput
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static enumType of document translation provider -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for SAPDocumentTranslationInput. -
Method Summary
Modifier and TypeMethodDescriptionSet the config of thisSAPDocumentTranslationInputinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newSAPDocumentTranslationInputinstance with all required arguments.booleanGet configgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSAPDocumentTranslationInput.getType()Type of document translation providerinthashCode()If true, the messages history will be translated as well.voidSet the config of thisSAPDocumentTranslationInputinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSAPDocumentTranslationInputinstance.voidsetTranslateMessagesHistory(Boolean translateMessagesHistory) Set the translateMessagesHistory of thisSAPDocumentTranslationInputinstance.voidSet the type of thisSAPDocumentTranslationInputinstance.toMap()Get the value of all properties of thisSAPDocumentTranslationInputinstance including unrecognized properties.toString()translateMessagesHistory(Boolean translateMessagesHistory) Set the translateMessagesHistory of thisSAPDocumentTranslationInputinstance and return the same instance.Set the type of thisSAPDocumentTranslationInputinstance and return the same instance.
-
Constructor Details
-
SAPDocumentTranslationInput
protected SAPDocumentTranslationInput()Default constructor for SAPDocumentTranslationInput.
-
-
Method Details
-
type
@Nonnull public SAPDocumentTranslationInput type(@Nonnull SAPDocumentTranslationInput.TypeEnum type) Set the type of thisSAPDocumentTranslationInputinstance and return the same instance.- Parameters:
type- Type of document translation provider- Returns:
- The same instance of this
SAPDocumentTranslationInputclass
-
getType
Type of document translation provider- Returns:
- type The type of this
SAPDocumentTranslationInputinstance.
-
setType
Set the type of thisSAPDocumentTranslationInputinstance.- Parameters:
type- Type of document translation provider
-
translateMessagesHistory
@Nonnull public SAPDocumentTranslationInput translateMessagesHistory(@Nullable Boolean translateMessagesHistory) Set the translateMessagesHistory of thisSAPDocumentTranslationInputinstance and return the same instance.- Parameters:
translateMessagesHistory- If true, the messages history will be translated as well.- Returns:
- The same instance of this
SAPDocumentTranslationInputclass
-
isTranslateMessagesHistory
If true, the messages history will be translated as well.- Returns:
- translateMessagesHistory The translateMessagesHistory of this
SAPDocumentTranslationInputinstance.
-
setTranslateMessagesHistory
Set the translateMessagesHistory of thisSAPDocumentTranslationInputinstance.- Parameters:
translateMessagesHistory- If true, the messages history will be translated as well.
-
config
@Nonnull public SAPDocumentTranslationInput config(@Nonnull SAPDocumentTranslationInputConfig config) Set the config of thisSAPDocumentTranslationInputinstance and return the same instance.- Parameters:
config- The config of thisSAPDocumentTranslationInput- Returns:
- The same instance of this
SAPDocumentTranslationInputclass
-
getConfig
Get config- Returns:
- config The config of this
SAPDocumentTranslationInputinstance.
-
setConfig
Set the config of thisSAPDocumentTranslationInputinstance.- Parameters:
config- The config of thisSAPDocumentTranslationInput
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSAPDocumentTranslationInput.- 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 thisSAPDocumentTranslationInputinstance.- 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 thisSAPDocumentTranslationInputinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSAPDocumentTranslationInputinstance. 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 newSAPDocumentTranslationInputinstance with all required arguments.
-
toMap()instead.