Package com.sap.ai.sdk.grounding.model
Class MetadataUpdates
java.lang.Object
com.sap.ai.sdk.grounding.model.MetadataUpdates
MetadataUpdates
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for MetadataUpdates. -
Method Summary
Modifier and TypeMethodDescriptionaddUpdatesItem(MetadataUpdateItem updatesItem) Add one updates instance to thisMetadataUpdates.static MetadataUpdates.Buildercreate()Create a type-safe, fluent-api builder object to construct a newMetadataUpdatesinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theMetadataUpdates.List of metadata updates.inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisMetadataUpdatesinstance.voidsetUpdates(List<MetadataUpdateItem> updates) Set the updates of thisMetadataUpdatesinstance.toMap()Get the value of all properties of thisMetadataUpdatesinstance including unrecognized properties.toString()updates(List<MetadataUpdateItem> updates) Set the updates of thisMetadataUpdatesinstance and return the same instance.
-
Constructor Details
-
MetadataUpdates
protected MetadataUpdates()Default constructor for MetadataUpdates.
-
-
Method Details
-
updates
Set the updates of thisMetadataUpdatesinstance and return the same instance.- Parameters:
updates- List of metadata updates.- Returns:
- The same instance of this
MetadataUpdatesclass
-
addUpdatesItem
Add one updates instance to thisMetadataUpdates.- Parameters:
updatesItem- The updates that should be added- Returns:
- The same instance of type
MetadataUpdates
-
getUpdates
List of metadata updates.- Returns:
- updates The updates of this
MetadataUpdatesinstance.
-
setUpdates
Set the updates of thisMetadataUpdatesinstance.- Parameters:
updates- List of metadata updates.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theMetadataUpdates.- 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 thisMetadataUpdatesinstance.- 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 thisMetadataUpdatesinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisMetadataUpdatesinstance. 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 newMetadataUpdatesinstance with all required arguments.
-
toMap()instead.