Package com.sap.ai.sdk.core.model
Class AiLogCommonResultItem
java.lang.Object
com.sap.ai.sdk.core.model.AiLogCommonResultItem
Common log record.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for AiLogCommonResultItem. -
Method Summary
Modifier and TypeMethodDescriptionstatic AiLogCommonResultItemcreate()Create a newAiLogCommonResultIteminstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiLogCommonResultItem.getMsg()message content.Datetime in RFC 3339.inthashCode()Set the msg of thisAiLogCommonResultIteminstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiLogCommonResultIteminstance.voidSet the msg of thisAiLogCommonResultIteminstance.voidsetTimestamp(OffsetDateTime timestamp) Set the timestamp of thisAiLogCommonResultIteminstance.timestamp(OffsetDateTime timestamp) Set the timestamp of thisAiLogCommonResultIteminstance and return the same instance.toMap()Get the value of all properties of thisAiLogCommonResultIteminstance including unrecognized properties.toString()
-
Constructor Details
-
AiLogCommonResultItem
protected AiLogCommonResultItem()Default constructor for AiLogCommonResultItem.
-
-
Method Details
-
timestamp
Set the timestamp of thisAiLogCommonResultIteminstance and return the same instance.- Parameters:
timestamp- Datetime in RFC 3339.- Returns:
- The same instance of this
AiLogCommonResultItemclass
-
getTimestamp
Datetime in RFC 3339.- Returns:
- timestamp The timestamp of this
AiLogCommonResultIteminstance.
-
setTimestamp
Set the timestamp of thisAiLogCommonResultIteminstance.- Parameters:
timestamp- Datetime in RFC 3339.
-
msg
Set the msg of thisAiLogCommonResultIteminstance and return the same instance.- Parameters:
msg- message content.- Returns:
- The same instance of this
AiLogCommonResultItemclass
-
getMsg
message content.- Returns:
- msg The msg of this
AiLogCommonResultIteminstance.
-
setMsg
Set the msg of thisAiLogCommonResultIteminstance.- Parameters:
msg- message content.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiLogCommonResultItem.- 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 thisAiLogCommonResultIteminstance.- 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 thisAiLogCommonResultIteminstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiLogCommonResultIteminstance. 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 newAiLogCommonResultIteminstance. No arguments are required.
-
toMap()instead.