Class InputTranslationModuleResultData
java.lang.Object
com.sap.ai.sdk.orchestration.model.InputTranslationModuleResultData
InputTranslationModuleResultData
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for InputTranslationModuleResultData. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a newInputTranslationModuleResultDatainstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theInputTranslationModuleResultData.Get translatedPlaceholdersDeprecated.Get translatedTemplateRolesinthashCode()puttranslatedPlaceholdersItem(String key, String translatedPlaceholdersItem) Put one translatedPlaceholders instance to thisInputTranslationModuleResultDatainstance.puttranslatedTemplateRolesItem(String key, List<String> translatedTemplateRolesItem) Put one translatedTemplateRoles instance to thisInputTranslationModuleResultDatainstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisInputTranslationModuleResultDatainstance.voidsetTranslatedPlaceholders(Map<String, String> translatedPlaceholders) Set the translatedPlaceholders of thisInputTranslationModuleResultDatainstance.voidsetTranslatedTemplate(String translatedTemplate) Set the translatedTemplate of thisInputTranslationModuleResultDatainstance.voidsetTranslatedTemplateRoles(Map<String, List<String>> translatedTemplateRoles) Set the translatedTemplateRoles of thisInputTranslationModuleResultDatainstance.toMap()Get the value of all properties of thisInputTranslationModuleResultDatainstance including unrecognized properties.toString()translatedPlaceholders(Map<String, String> translatedPlaceholders) Set the translatedPlaceholders of thisInputTranslationModuleResultDatainstance and return the same instance.translatedTemplate(String translatedTemplate) Set the translatedTemplate of thisInputTranslationModuleResultDatainstance and return the same instance.translatedTemplateRoles(Map<String, List<String>> translatedTemplateRoles) Set the translatedTemplateRoles of thisInputTranslationModuleResultDatainstance and return the same instance.
-
Constructor Details
-
InputTranslationModuleResultData
protected InputTranslationModuleResultData()Default constructor for InputTranslationModuleResultData.
-
-
Method Details
-
translatedTemplate
@Nonnull public InputTranslationModuleResultData translatedTemplate(@Nullable String translatedTemplate) Set the translatedTemplate of thisInputTranslationModuleResultDatainstance and return the same instance.- Parameters:
translatedTemplate- The translatedTemplate of thisInputTranslationModuleResultData- Returns:
- The same instance of this
InputTranslationModuleResultDataclass
-
getTranslatedTemplate
Deprecated.Get translatedTemplate- Returns:
- translatedTemplate The translatedTemplate of this
InputTranslationModuleResultDatainstance.
-
setTranslatedTemplate
Set the translatedTemplate of thisInputTranslationModuleResultDatainstance.- Parameters:
translatedTemplate- The translatedTemplate of thisInputTranslationModuleResultData
-
translatedTemplateRoles
@Nonnull public InputTranslationModuleResultData translatedTemplateRoles(@Nullable Map<String, List<String>> translatedTemplateRoles) Set the translatedTemplateRoles of thisInputTranslationModuleResultDatainstance and return the same instance.- Parameters:
translatedTemplateRoles- The translatedTemplateRoles of thisInputTranslationModuleResultData- Returns:
- The same instance of this
InputTranslationModuleResultDataclass
-
puttranslatedTemplateRolesItem
@Nonnull public InputTranslationModuleResultData puttranslatedTemplateRolesItem(@Nonnull String key, @Nonnull List<String> translatedTemplateRolesItem) Put one translatedTemplateRoles instance to thisInputTranslationModuleResultDatainstance.- Parameters:
key- The String key of this translatedTemplateRoles instancetranslatedTemplateRolesItem- The translatedTemplateRoles that should be added under the given key- Returns:
- The same instance of type
InputTranslationModuleResultData
-
getTranslatedTemplateRoles
Get translatedTemplateRoles- Returns:
- translatedTemplateRoles The translatedTemplateRoles of this
InputTranslationModuleResultDatainstance.
-
setTranslatedTemplateRoles
Set the translatedTemplateRoles of thisInputTranslationModuleResultDatainstance.- Parameters:
translatedTemplateRoles- The translatedTemplateRoles of thisInputTranslationModuleResultData
-
translatedPlaceholders
@Nonnull public InputTranslationModuleResultData translatedPlaceholders(@Nullable Map<String, String> translatedPlaceholders) Set the translatedPlaceholders of thisInputTranslationModuleResultDatainstance and return the same instance.- Parameters:
translatedPlaceholders- The translatedPlaceholders of thisInputTranslationModuleResultData- Returns:
- The same instance of this
InputTranslationModuleResultDataclass
-
puttranslatedPlaceholdersItem
@Nonnull public InputTranslationModuleResultData puttranslatedPlaceholdersItem(@Nonnull String key, @Nonnull String translatedPlaceholdersItem) Put one translatedPlaceholders instance to thisInputTranslationModuleResultDatainstance.- Parameters:
key- The String key of this translatedPlaceholders instancetranslatedPlaceholdersItem- The translatedPlaceholders that should be added under the given key- Returns:
- The same instance of type
InputTranslationModuleResultData
-
getTranslatedPlaceholders
Get translatedPlaceholders- Returns:
- translatedPlaceholders The translatedPlaceholders of this
InputTranslationModuleResultDatainstance.
-
setTranslatedPlaceholders
Set the translatedPlaceholders of thisInputTranslationModuleResultDatainstance.- Parameters:
translatedPlaceholders- The translatedPlaceholders of thisInputTranslationModuleResultData
-
getCustomFieldNames
Get the names of the unrecognizable properties of theInputTranslationModuleResultData.- 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 thisInputTranslationModuleResultDatainstance.- 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 thisInputTranslationModuleResultDatainstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisInputTranslationModuleResultDatainstance. 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 newInputTranslationModuleResultDatainstance. No arguments are required.
-
toMap()instead.