Class PartialModuleConfigs
java.lang.Object
com.sap.ai.sdk.orchestration.model.PartialModuleConfigs
Partial module configuration for use with config_ref overrides. All fields are optional so that
only the modules that should be overridden need to be specified. The remaining configuration is
taken from the referenced orchestration config.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PartialModuleConfigs. -
Method Summary
Modifier and TypeMethodDescriptionstatic PartialModuleConfigscreate()Create a newPartialModuleConfigsinstance.booleanfiltering(FilteringModuleConfig filtering) Set the filtering of thisPartialModuleConfigsinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePartialModuleConfigs.Get filteringGet groundingGet maskingGet promptTemplatingGet translationgrounding(GroundingModuleConfig grounding) Set the grounding of thisPartialModuleConfigsinstance and return the same instance.inthashCode()masking(MaskingModuleConfig masking) Set the masking of thisPartialModuleConfigsinstance and return the same instance.promptTemplating(PartialPromptTemplatingModuleConfig promptTemplating) Set the promptTemplating of thisPartialModuleConfigsinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPartialModuleConfigsinstance.voidsetFiltering(FilteringModuleConfig filtering) Set the filtering of thisPartialModuleConfigsinstance.voidsetGrounding(GroundingModuleConfig grounding) Set the grounding of thisPartialModuleConfigsinstance.voidsetMasking(MaskingModuleConfig masking) Set the masking of thisPartialModuleConfigsinstance.voidsetPromptTemplating(PartialPromptTemplatingModuleConfig promptTemplating) Set the promptTemplating of thisPartialModuleConfigsinstance.voidsetTranslation(TranslationModuleConfig translation) Set the translation of thisPartialModuleConfigsinstance.toMap()Get the value of all properties of thisPartialModuleConfigsinstance including unrecognized properties.toString()translation(TranslationModuleConfig translation) Set the translation of thisPartialModuleConfigsinstance and return the same instance.
-
Constructor Details
-
PartialModuleConfigs
protected PartialModuleConfigs()Default constructor for PartialModuleConfigs.
-
-
Method Details
-
promptTemplating
@Nonnull public PartialModuleConfigs promptTemplating(@Nullable PartialPromptTemplatingModuleConfig promptTemplating) Set the promptTemplating of thisPartialModuleConfigsinstance and return the same instance.- Parameters:
promptTemplating- The promptTemplating of thisPartialModuleConfigs- Returns:
- The same instance of this
PartialModuleConfigsclass
-
getPromptTemplating
Get promptTemplating- Returns:
- promptTemplating The promptTemplating of this
PartialModuleConfigsinstance.
-
setPromptTemplating
Set the promptTemplating of thisPartialModuleConfigsinstance.- Parameters:
promptTemplating- The promptTemplating of thisPartialModuleConfigs
-
filtering
Set the filtering of thisPartialModuleConfigsinstance and return the same instance.- Parameters:
filtering- The filtering of thisPartialModuleConfigs- Returns:
- The same instance of this
PartialModuleConfigsclass
-
getFiltering
Get filtering- Returns:
- filtering The filtering of this
PartialModuleConfigsinstance.
-
setFiltering
Set the filtering of thisPartialModuleConfigsinstance.- Parameters:
filtering- The filtering of thisPartialModuleConfigs
-
masking
Set the masking of thisPartialModuleConfigsinstance and return the same instance.- Parameters:
masking- The masking of thisPartialModuleConfigs- Returns:
- The same instance of this
PartialModuleConfigsclass
-
getMasking
Get masking- Returns:
- masking The masking of this
PartialModuleConfigsinstance.
-
setMasking
Set the masking of thisPartialModuleConfigsinstance.- Parameters:
masking- The masking of thisPartialModuleConfigs
-
grounding
Set the grounding of thisPartialModuleConfigsinstance and return the same instance.- Parameters:
grounding- The grounding of thisPartialModuleConfigs- Returns:
- The same instance of this
PartialModuleConfigsclass
-
getGrounding
Get grounding- Returns:
- grounding The grounding of this
PartialModuleConfigsinstance.
-
setGrounding
Set the grounding of thisPartialModuleConfigsinstance.- Parameters:
grounding- The grounding of thisPartialModuleConfigs
-
translation
Set the translation of thisPartialModuleConfigsinstance and return the same instance.- Parameters:
translation- The translation of thisPartialModuleConfigs- Returns:
- The same instance of this
PartialModuleConfigsclass
-
getTranslation
Get translation- Returns:
- translation The translation of this
PartialModuleConfigsinstance.
-
setTranslation
Set the translation of thisPartialModuleConfigsinstance.- Parameters:
translation- The translation of thisPartialModuleConfigs
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePartialModuleConfigs.- 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 thisPartialModuleConfigsinstance.- 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 thisPartialModuleConfigsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPartialModuleConfigsinstance. 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 newPartialModuleConfigsinstance. No arguments are required.
-
toMap()instead.