Package com.sap.ai.sdk.grounding.model
Class CollectionsListResponse
java.lang.Object
com.sap.ai.sdk.grounding.model.CollectionsListResponse
A response containing collections retrieved from the server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for CollectionsListResponse. -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem(Collection resourcesItem) Add one resources instance to thisCollectionsListResponse.Set the count of thisCollectionsListResponseinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newCollectionsListResponseinstance with all required arguments.booleangetCount()Get countgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theCollectionsListResponse.Get resourcesinthashCode()resources(List<Collection> resources) Set the resources of thisCollectionsListResponseinstance and return the same instance.voidSet the count of thisCollectionsListResponseinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisCollectionsListResponseinstance.voidsetResources(List<Collection> resources) Set the resources of thisCollectionsListResponseinstance.toMap()Get the value of all properties of thisCollectionsListResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
CollectionsListResponse
protected CollectionsListResponse()Default constructor for CollectionsListResponse.
-
-
Method Details
-
count
Set the count of thisCollectionsListResponseinstance and return the same instance.- Parameters:
count- The count of thisCollectionsListResponse- Returns:
- The same instance of this
CollectionsListResponseclass
-
getCount
Get count- Returns:
- count The count of this
CollectionsListResponseinstance.
-
setCount
Set the count of thisCollectionsListResponseinstance.- Parameters:
count- The count of thisCollectionsListResponse
-
resources
Set the resources of thisCollectionsListResponseinstance and return the same instance.- Parameters:
resources- The resources of thisCollectionsListResponse- Returns:
- The same instance of this
CollectionsListResponseclass
-
addResourcesItem
Add one resources instance to thisCollectionsListResponse.- Parameters:
resourcesItem- The resources that should be added- Returns:
- The same instance of type
CollectionsListResponse
-
getResources
Get resources- Returns:
- resources The resources of this
CollectionsListResponseinstance.
-
setResources
Set the resources of thisCollectionsListResponseinstance.- Parameters:
resources- The resources of thisCollectionsListResponse
-
getCustomFieldNames
Get the names of the unrecognizable properties of theCollectionsListResponse.- 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 thisCollectionsListResponseinstance.- 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 thisCollectionsListResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisCollectionsListResponseinstance. 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 newCollectionsListResponseinstance with all required arguments.
-
toMap()instead.