Package com.sap.ai.sdk.grounding.model
Class MetadataKeyUpdate
java.lang.Object
com.sap.ai.sdk.grounding.model.MetadataKeyUpdate
MetadataKeyUpdate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for MetadataKeyUpdate. -
Method Summary
Modifier and TypeMethodDescriptionaddOperationsItem(MetadataOperation operationsItem) Add one operations instance to thisMetadataKeyUpdate.static MetadataKeyUpdate.Buildercreate()Create a type-safe, fluent-api builder object to construct a newMetadataKeyUpdateinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theMetadataKeyUpdate.getKey()Key to updateUpdate operation executed for the keyinthashCode()Set the key of thisMetadataKeyUpdateinstance and return the same instance.operations(List<MetadataOperation> operations) Set the operations of thisMetadataKeyUpdateinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisMetadataKeyUpdateinstance.voidSet the key of thisMetadataKeyUpdateinstance.voidsetOperations(List<MetadataOperation> operations) Set the operations of thisMetadataKeyUpdateinstance.toMap()Get the value of all properties of thisMetadataKeyUpdateinstance including unrecognized properties.toString()
-
Constructor Details
-
MetadataKeyUpdate
protected MetadataKeyUpdate()Default constructor for MetadataKeyUpdate.
-
-
Method Details
-
key
Set the key of thisMetadataKeyUpdateinstance and return the same instance.- Parameters:
key- Key to update- Returns:
- The same instance of this
MetadataKeyUpdateclass
-
getKey
Key to update- Returns:
- key The key of this
MetadataKeyUpdateinstance.
-
setKey
Set the key of thisMetadataKeyUpdateinstance.- Parameters:
key- Key to update
-
operations
Set the operations of thisMetadataKeyUpdateinstance and return the same instance.- Parameters:
operations- Update operation executed for the key- Returns:
- The same instance of this
MetadataKeyUpdateclass
-
addOperationsItem
Add one operations instance to thisMetadataKeyUpdate.- Parameters:
operationsItem- The operations that should be added- Returns:
- The same instance of type
MetadataKeyUpdate
-
getOperations
Update operation executed for the key- Returns:
- operations The operations of this
MetadataKeyUpdateinstance.
-
setOperations
Set the operations of thisMetadataKeyUpdateinstance.- Parameters:
operations- Update operation executed for the key
-
getCustomFieldNames
Get the names of the unrecognizable properties of theMetadataKeyUpdate.- 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 thisMetadataKeyUpdateinstance.- 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 thisMetadataKeyUpdateinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisMetadataKeyUpdateinstance. 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 newMetadataKeyUpdateinstance with all required arguments.
-
toMap()instead.