Package com.sap.ai.sdk.grounding.model
Class MetadataConfiguration
java.lang.Object
com.sap.ai.sdk.grounding.model.MetadataConfiguration
- All Implemented Interfaces:
CreatePipeline
MetadataConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static enumGets or Sets type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for MetadataConfiguration. -
Method Summary
Modifier and TypeMethodDescription_configuration(MetadataConfigurationStruct _configuration) Set the _configuration of thisMetadataConfigurationinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newMetadataConfigurationinstance with all required arguments.booleanGet _configurationgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theMetadataConfiguration.Get metadatagetType()Get typeinthashCode()metadata(MetadataConfigurationMetadata metadata) Set the metadata of thisMetadataConfigurationinstance and return the same instance.voidsetConfiguration(MetadataConfigurationStruct _configuration) Set the _configuration of thisMetadataConfigurationinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisMetadataConfigurationinstance.voidsetMetadata(MetadataConfigurationMetadata metadata) Set the metadata of thisMetadataConfigurationinstance.voidSet the type of thisMetadataConfigurationinstance.toMap()Get the value of all properties of thisMetadataConfigurationinstance including unrecognized properties.toString()Set the type of thisMetadataConfigurationinstance and return the same instance.
-
Constructor Details
-
MetadataConfiguration
protected MetadataConfiguration()Default constructor for MetadataConfiguration.
-
-
Method Details
-
type
Set the type of thisMetadataConfigurationinstance and return the same instance.- Parameters:
type- The type of thisMetadataConfiguration- Returns:
- The same instance of this
MetadataConfigurationclass
-
getType
Get type- Specified by:
getTypein interfaceCreatePipeline- Returns:
- type The type of this
MetadataConfigurationinstance.
-
setType
Set the type of thisMetadataConfigurationinstance.- Parameters:
type- The type of thisMetadataConfiguration
-
_configuration
@Nonnull public MetadataConfiguration _configuration(@Nonnull MetadataConfigurationStruct _configuration) Set the _configuration of thisMetadataConfigurationinstance and return the same instance.- Parameters:
_configuration- The _configuration of thisMetadataConfiguration- Returns:
- The same instance of this
MetadataConfigurationclass
-
getConfiguration
Get _configuration- Returns:
- _configuration The _configuration of this
MetadataConfigurationinstance.
-
setConfiguration
Set the _configuration of thisMetadataConfigurationinstance.- Parameters:
_configuration- The _configuration of thisMetadataConfiguration
-
metadata
Set the metadata of thisMetadataConfigurationinstance and return the same instance.- Parameters:
metadata- The metadata of thisMetadataConfiguration- Returns:
- The same instance of this
MetadataConfigurationclass
-
getMetadata
Get metadata- Returns:
- metadata The metadata of this
MetadataConfigurationinstance.
-
setMetadata
Set the metadata of thisMetadataConfigurationinstance.- Parameters:
metadata- The metadata of thisMetadataConfiguration
-
getCustomFieldNames
Get the names of the unrecognizable properties of theMetadataConfiguration.- 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 thisMetadataConfigurationinstance.- 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 thisMetadataConfigurationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisMetadataConfigurationinstance. 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 newMetadataConfigurationinstance with all required arguments.
-
toMap()instead.