Class GenericModuleResult
java.lang.Object
com.sap.ai.sdk.orchestration.model.GenericModuleResult
Generic module result
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for GenericModuleResult. -
Method Summary
Modifier and TypeMethodDescriptionstatic GenericModuleResult.Buildercreate()Create a type-safe, fluent-api builder object to construct a newGenericModuleResultinstance with all required arguments.Set the data of thisGenericModuleResultinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theGenericModuleResult.getData()Additional data object from the moduleSome message created from the moduleinthashCode()Set the message of thisGenericModuleResultinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisGenericModuleResultinstance.voidSet the data of thisGenericModuleResultinstance.voidsetMessage(String message) Set the message of thisGenericModuleResultinstance.toMap()Get the value of all properties of thisGenericModuleResultinstance including unrecognized properties.toString()
-
Constructor Details
-
GenericModuleResult
protected GenericModuleResult()Default constructor for GenericModuleResult.
-
-
Method Details
-
message
Set the message of thisGenericModuleResultinstance and return the same instance.- Parameters:
message- Some message created from the module- Returns:
- The same instance of this
GenericModuleResultclass
-
getMessage
Some message created from the module- Returns:
- message The message of this
GenericModuleResultinstance.
-
setMessage
Set the message of thisGenericModuleResultinstance.- Parameters:
message- Some message created from the module
-
data
Set the data of thisGenericModuleResultinstance and return the same instance.- Parameters:
data- Additional data object from the module- Returns:
- The same instance of this
GenericModuleResultclass
-
getData
Additional data object from the module- Returns:
- data The data of this
GenericModuleResultinstance.
-
setData
Set the data of thisGenericModuleResultinstance.- Parameters:
data- Additional data object from the module
-
getCustomFieldNames
Get the names of the unrecognizable properties of theGenericModuleResult.- 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 thisGenericModuleResultinstance.- 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 thisGenericModuleResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisGenericModuleResultinstance. 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 newGenericModuleResultinstance with all required arguments.
-
toMap()instead.