Package com.sap.ai.sdk.core.model
Class TrckLabel
java.lang.Object
com.sap.ai.sdk.core.model.TrckLabel
a classifying phrase/name applied to a metric
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrckLabel.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTrckLabelinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTrckLabel.getName()Label name to label one or more metrics.getValue()Metric Label ValueinthashCode()Set the name of thisTrckLabelinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTrckLabelinstance.voidSet the name of thisTrckLabelinstance.voidSet the value of thisTrckLabelinstance.toMap()Get the value of all properties of thisTrckLabelinstance including unrecognized properties.toString()Set the value of thisTrckLabelinstance and return the same instance.
-
Constructor Details
-
TrckLabel
protected TrckLabel()Default constructor for TrckLabel.
-
-
Method Details
-
name
Set the name of thisTrckLabelinstance and return the same instance.- Parameters:
name- Label name to label one or more metrics. \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact with the metrics- Returns:
- The same instance of this
TrckLabelclass
-
getName
Label name to label one or more metrics. \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact with the metrics- Returns:
- name The name of this
TrckLabelinstance.
-
setName
Set the name of thisTrckLabelinstance.- Parameters:
name- Label name to label one or more metrics. \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact with the metrics
-
value
Set the value of thisTrckLabelinstance and return the same instance.- Parameters:
value- Metric Label Value- Returns:
- The same instance of this
TrckLabelclass
-
getValue
Metric Label Value- Returns:
- value The value of this
TrckLabelinstance.
-
setValue
Set the value of thisTrckLabelinstance.- Parameters:
value- Metric Label Value
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTrckLabel.- 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 thisTrckLabelinstance.- 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 thisTrckLabelinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTrckLabelinstance. 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 newTrckLabelinstance with all required arguments.
-
toMap()instead.