Package com.sap.ai.sdk.grounding.model
Class RetrievalKeyValueListPair
java.lang.Object
com.sap.ai.sdk.grounding.model.RetrievalKeyValueListPair
RetrievalKeyValueListPair
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for RetrievalKeyValueListPair. -
Method Summary
Modifier and TypeMethodDescriptionaddValueItem(String valueItem) Add one value instance to thisRetrievalKeyValueListPair.create()Create a type-safe, fluent-api builder object to construct a newRetrievalKeyValueListPairinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theRetrievalKeyValueListPair.getKey()Get keygetValue()Get valueinthashCode()Set the key of thisRetrievalKeyValueListPairinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisRetrievalKeyValueListPairinstance.voidSet the key of thisRetrievalKeyValueListPairinstance.voidSet the value of thisRetrievalKeyValueListPairinstance.toMap()Get the value of all properties of thisRetrievalKeyValueListPairinstance including unrecognized properties.toString()Set the value of thisRetrievalKeyValueListPairinstance and return the same instance.
-
Constructor Details
-
RetrievalKeyValueListPair
protected RetrievalKeyValueListPair()Default constructor for RetrievalKeyValueListPair.
-
-
Method Details
-
key
Set the key of thisRetrievalKeyValueListPairinstance and return the same instance.- Parameters:
key- The key of thisRetrievalKeyValueListPair- Returns:
- The same instance of this
RetrievalKeyValueListPairclass
-
getKey
Get key- Returns:
- key The key of this
RetrievalKeyValueListPairinstance.
-
setKey
Set the key of thisRetrievalKeyValueListPairinstance.- Parameters:
key- The key of thisRetrievalKeyValueListPair
-
value
Set the value of thisRetrievalKeyValueListPairinstance and return the same instance.- Parameters:
value- The value of thisRetrievalKeyValueListPair- Returns:
- The same instance of this
RetrievalKeyValueListPairclass
-
addValueItem
Add one value instance to thisRetrievalKeyValueListPair.- Parameters:
valueItem- The value that should be added- Returns:
- The same instance of type
RetrievalKeyValueListPair
-
getValue
Get value- Returns:
- value The value of this
RetrievalKeyValueListPairinstance.
-
setValue
Set the value of thisRetrievalKeyValueListPairinstance.- Parameters:
value- The value of thisRetrievalKeyValueListPair
-
getCustomFieldNames
Get the names of the unrecognizable properties of theRetrievalKeyValueListPair.- 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 thisRetrievalKeyValueListPairinstance.- 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 thisRetrievalKeyValueListPairinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisRetrievalKeyValueListPairinstance. 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 newRetrievalKeyValueListPairinstance with all required arguments.
-
toMap()instead.