Package com.sap.ai.sdk.core.model
Class AiLogCommonData
java.lang.Object
com.sap.ai.sdk.core.model.AiLogCommonData
AiLogCommonData
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for AiLogCommonData. -
Method Summary
Modifier and TypeMethodDescriptionaddResultItem(AiLogCommonResultItem resultItem) Add one result instance to thisAiLogCommonData.static AiLogCommonDatacreate()Create a newAiLogCommonDatainstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiLogCommonData.Get resultinthashCode()result(List<AiLogCommonResultItem> result) Set the result of thisAiLogCommonDatainstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiLogCommonDatainstance.voidsetResult(List<AiLogCommonResultItem> result) Set the result of thisAiLogCommonDatainstance.toMap()Get the value of all properties of thisAiLogCommonDatainstance including unrecognized properties.toString()
-
Constructor Details
-
AiLogCommonData
protected AiLogCommonData()Default constructor for AiLogCommonData.
-
-
Method Details
-
result
Set the result of thisAiLogCommonDatainstance and return the same instance.- Parameters:
result- The result of thisAiLogCommonData- Returns:
- The same instance of this
AiLogCommonDataclass
-
addResultItem
Add one result instance to thisAiLogCommonData.- Parameters:
resultItem- The result that should be added- Returns:
- The same instance of type
AiLogCommonData
-
getResult
Get result- Returns:
- result The result of this
AiLogCommonDatainstance.
-
setResult
Set the result of thisAiLogCommonDatainstance.- Parameters:
result- The result of thisAiLogCommonData
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiLogCommonData.- 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 thisAiLogCommonDatainstance.- 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 thisAiLogCommonDatainstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiLogCommonDatainstance. 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 newAiLogCommonDatainstance. No arguments are required.
-
toMap()instead.