Package com.sap.ai.sdk.core.model
Class TrckCustomInfoObject
java.lang.Object
com.sap.ai.sdk.core.model.TrckCustomInfoObject
large object which provides rendering/semantic information regarding certain metric for consuming
application or can be complex metrics in JSON format
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for TrckCustomInfoObject. -
Method Summary
Modifier and TypeMethodDescriptionstatic TrckCustomInfoObject.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTrckCustomInfoObjectinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTrckCustomInfoObject.getName()Generic name which can belong to a tag,label,metric or customInfo ObjectgetValue()MessageinthashCode()Set the name of thisTrckCustomInfoObjectinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTrckCustomInfoObjectinstance.voidSet the name of thisTrckCustomInfoObjectinstance.voidSet the value of thisTrckCustomInfoObjectinstance.toMap()Get the value of all properties of thisTrckCustomInfoObjectinstance including unrecognized properties.toString()Set the value of thisTrckCustomInfoObjectinstance and return the same instance.
-
Constructor Details
-
TrckCustomInfoObject
protected TrckCustomInfoObject()Default constructor for TrckCustomInfoObject.
-
-
Method Details
-
name
Set the name of thisTrckCustomInfoObjectinstance and return the same instance.- Parameters:
name- Generic name which can belong to a tag,label,metric or customInfo Object- Returns:
- The same instance of this
TrckCustomInfoObjectclass
-
getName
Generic name which can belong to a tag,label,metric or customInfo Object- Returns:
- name The name of this
TrckCustomInfoObjectinstance.
-
setName
Set the name of thisTrckCustomInfoObjectinstance.- Parameters:
name- Generic name which can belong to a tag,label,metric or customInfo Object
-
value
Set the value of thisTrckCustomInfoObjectinstance and return the same instance.- Parameters:
value- Message- Returns:
- The same instance of this
TrckCustomInfoObjectclass
-
getValue
Message- Returns:
- value The value of this
TrckCustomInfoObjectinstance.
-
setValue
Set the value of thisTrckCustomInfoObjectinstance.- Parameters:
value- Message
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTrckCustomInfoObject.- 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 thisTrckCustomInfoObjectinstance.- 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 thisTrckCustomInfoObjectinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTrckCustomInfoObjectinstance. 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 newTrckCustomInfoObjectinstance with all required arguments.
-
toMap()instead.