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