Class PromptTemplateListResponse
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.PromptTemplateListResponse
PromptTemplateListResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PromptTemplateListResponse. -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem(PromptTemplateGetResponse resourcesItem) Add one resources instance to thisPromptTemplateListResponse.Set the count of thisPromptTemplateListResponseinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newPromptTemplateListResponseinstance with all required arguments.booleangetCount()Get countgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePromptTemplateListResponse.Get resourcesinthashCode()resources(List<PromptTemplateGetResponse> resources) Set the resources of thisPromptTemplateListResponseinstance and return the same instance.voidSet the count of thisPromptTemplateListResponseinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPromptTemplateListResponseinstance.voidsetResources(List<PromptTemplateGetResponse> resources) Set the resources of thisPromptTemplateListResponseinstance.toMap()Get the value of all properties of thisPromptTemplateListResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
PromptTemplateListResponse
protected PromptTemplateListResponse()Default constructor for PromptTemplateListResponse.
-
-
Method Details
-
count
Set the count of thisPromptTemplateListResponseinstance and return the same instance.- Parameters:
count- The count of thisPromptTemplateListResponse- Returns:
- The same instance of this
PromptTemplateListResponseclass
-
getCount
Get count- Returns:
- count The count of this
PromptTemplateListResponseinstance.
-
setCount
Set the count of thisPromptTemplateListResponseinstance.- Parameters:
count- The count of thisPromptTemplateListResponse
-
resources
@Nonnull public PromptTemplateListResponse resources(@Nonnull List<PromptTemplateGetResponse> resources) Set the resources of thisPromptTemplateListResponseinstance and return the same instance.- Parameters:
resources- The resources of thisPromptTemplateListResponse- Returns:
- The same instance of this
PromptTemplateListResponseclass
-
addResourcesItem
@Nonnull public PromptTemplateListResponse addResourcesItem(@Nonnull PromptTemplateGetResponse resourcesItem) Add one resources instance to thisPromptTemplateListResponse.- Parameters:
resourcesItem- The resources that should be added- Returns:
- The same instance of type
PromptTemplateListResponse
-
getResources
Get resources- Returns:
- resources The resources of this
PromptTemplateListResponseinstance.
-
setResources
Set the resources of thisPromptTemplateListResponseinstance.- Parameters:
resources- The resources of thisPromptTemplateListResponse
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePromptTemplateListResponse.- 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 thisPromptTemplateListResponseinstance.- 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 thisPromptTemplateListResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPromptTemplateListResponseinstance. 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 newPromptTemplateListResponseinstance with all required arguments.
-
toMap()instead.