Package com.sap.ai.sdk.core.model
Class TrckTag
java.lang.Object
com.sap.ai.sdk.core.model.TrckTag
A dictionary of name-value pairs to support segregation at execution level.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrckTag.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTrckTaginstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTrckTag.getName()Generic name which can belong to a tag,label,metric or customInfo ObjectgetValue()tag valueinthashCode()Set the name of thisTrckTaginstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTrckTaginstance.voidSet the name of thisTrckTaginstance.voidSet the value of thisTrckTaginstance.toMap()Get the value of all properties of thisTrckTaginstance including unrecognized properties.toString()Set the value of thisTrckTaginstance and return the same instance.
-
Constructor Details
-
TrckTag
protected TrckTag()Default constructor for TrckTag.
-
-
Method Details
-
name
Set the name of thisTrckTaginstance 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
TrckTagclass
-
getName
Generic name which can belong to a tag,label,metric or customInfo Object- Returns:
- name The name of this
TrckTaginstance.
-
setName
Set the name of thisTrckTaginstance.- Parameters:
name- Generic name which can belong to a tag,label,metric or customInfo Object
-
value
Set the value of thisTrckTaginstance and return the same instance.- Parameters:
value- tag value- Returns:
- The same instance of this
TrckTagclass
-
getValue
tag value- Returns:
- value The value of this
TrckTaginstance.
-
setValue
Set the value of thisTrckTaginstance.- Parameters:
value- tag value
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTrckTag.- 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 thisTrckTaginstance.- 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 thisTrckTaginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTrckTaginstance. 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 newTrckTaginstance with all required arguments.
-
toMap()instead.