Package com.sap.ai.sdk.core.model
Class AiLabel
java.lang.Object
com.sap.ai.sdk.core.model.AiLabel
AiLabel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AiLabel.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiLabelinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiLabel.getKey()Get keygetValue()Get valueinthashCode()Set the key of thisAiLabelinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiLabelinstance.voidSet the key of thisAiLabelinstance.voidSet the value of thisAiLabelinstance.toMap()Get the value of all properties of thisAiLabelinstance including unrecognized properties.toString()Set the value of thisAiLabelinstance and return the same instance.
-
Constructor Details
-
AiLabel
protected AiLabel()Default constructor for AiLabel.
-
-
Method Details
-
key
Set the key of thisAiLabelinstance and return the same instance. -
getKey
Get key- Returns:
- key The key of this
AiLabelinstance.
-
setKey
Set the key of thisAiLabelinstance.- Parameters:
key- The key of thisAiLabel
-
value
Set the value of thisAiLabelinstance and return the same instance. -
getValue
Get value- Returns:
- value The value of this
AiLabelinstance.
-
setValue
Set the value of thisAiLabelinstance.- Parameters:
value- The value of thisAiLabel
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiLabel.- 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 thisAiLabelinstance.- 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 thisAiLabelinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiLabelinstance. 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 newAiLabelinstance with all required arguments.
-
toMap()instead.