Package com.sap.ai.sdk.grounding.model
Class ListMetadataConfigurations
java.lang.Object
com.sap.ai.sdk.grounding.model.ListMetadataConfigurations
ListMetadataConfigurations
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for ListMetadataConfigurations. -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem(MetadataConfigurationResponse resourcesItem) Add one resources instance to thisListMetadataConfigurations.Set the count of thisListMetadataConfigurationsinstance and return the same instance.static ListMetadataConfigurationscreate()Create a newListMetadataConfigurationsinstance.booleangetCount()Total number of metadata configurations returned.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theListMetadataConfigurations.List of metadata configuration objects.inthashCode()resources(List<MetadataConfigurationResponse> resources) Set the resources of thisListMetadataConfigurationsinstance and return the same instance.voidSet the count of thisListMetadataConfigurationsinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisListMetadataConfigurationsinstance.voidsetResources(List<MetadataConfigurationResponse> resources) Set the resources of thisListMetadataConfigurationsinstance.toMap()Get the value of all properties of thisListMetadataConfigurationsinstance including unrecognized properties.toString()
-
Constructor Details
-
ListMetadataConfigurations
protected ListMetadataConfigurations()Default constructor for ListMetadataConfigurations.
-
-
Method Details
-
count
Set the count of thisListMetadataConfigurationsinstance and return the same instance.- Parameters:
count- Total number of metadata configurations returned.- Returns:
- The same instance of this
ListMetadataConfigurationsclass
-
getCount
Total number of metadata configurations returned.- Returns:
- count The count of this
ListMetadataConfigurationsinstance.
-
setCount
Set the count of thisListMetadataConfigurationsinstance.- Parameters:
count- Total number of metadata configurations returned.
-
resources
@Nonnull public ListMetadataConfigurations resources(@Nullable List<MetadataConfigurationResponse> resources) Set the resources of thisListMetadataConfigurationsinstance and return the same instance.- Parameters:
resources- List of metadata configuration objects. It will be empty array if no records found.- Returns:
- The same instance of this
ListMetadataConfigurationsclass
-
addResourcesItem
@Nonnull public ListMetadataConfigurations addResourcesItem(@Nonnull MetadataConfigurationResponse resourcesItem) Add one resources instance to thisListMetadataConfigurations.- Parameters:
resourcesItem- The resources that should be added- Returns:
- The same instance of type
ListMetadataConfigurations
-
getResources
List of metadata configuration objects. It will be empty array if no records found.- Returns:
- resources The resources of this
ListMetadataConfigurationsinstance.
-
setResources
Set the resources of thisListMetadataConfigurationsinstance.- Parameters:
resources- List of metadata configuration objects. It will be empty array if no records found.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theListMetadataConfigurations.- 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 thisListMetadataConfigurationsinstance.- 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 thisListMetadataConfigurationsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisListMetadataConfigurationsinstance. 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 newListMetadataConfigurationsinstance. No arguments are required.
-
toMap()instead.