Class PromptTemplateSubstitutionResponse
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.PromptTemplateSubstitutionResponse
PromptTemplateSubstitutionResponse
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PromptTemplateSubstitutionResponse. -
Method Summary
Modifier and TypeMethodDescriptionaddParsedPromptItem(PromptTemplate parsedPromptItem) Add one parsedPrompt instance to thisPromptTemplateSubstitutionResponse.create()Create a newPromptTemplateSubstitutionResponseinstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePromptTemplateSubstitutionResponse.Get parsedPromptGet resourceinthashCode()parsedPrompt(List<PromptTemplate> parsedPrompt) Set the parsedPrompt of thisPromptTemplateSubstitutionResponseinstance and return the same instance.resource(PromptTemplateGetResponse resource) Set the resource of thisPromptTemplateSubstitutionResponseinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPromptTemplateSubstitutionResponseinstance.voidsetParsedPrompt(List<PromptTemplate> parsedPrompt) Set the parsedPrompt of thisPromptTemplateSubstitutionResponseinstance.voidsetResource(PromptTemplateGetResponse resource) Set the resource of thisPromptTemplateSubstitutionResponseinstance.toMap()Get the value of all properties of thisPromptTemplateSubstitutionResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
PromptTemplateSubstitutionResponse
protected PromptTemplateSubstitutionResponse()Default constructor for PromptTemplateSubstitutionResponse.
-
-
Method Details
-
parsedPrompt
@Nonnull public PromptTemplateSubstitutionResponse parsedPrompt(@Nullable List<PromptTemplate> parsedPrompt) Set the parsedPrompt of thisPromptTemplateSubstitutionResponseinstance and return the same instance.- Parameters:
parsedPrompt- The parsedPrompt of thisPromptTemplateSubstitutionResponse- Returns:
- The same instance of this
PromptTemplateSubstitutionResponseclass
-
addParsedPromptItem
@Nonnull public PromptTemplateSubstitutionResponse addParsedPromptItem(@Nonnull PromptTemplate parsedPromptItem) Add one parsedPrompt instance to thisPromptTemplateSubstitutionResponse.- Parameters:
parsedPromptItem- The parsedPrompt that should be added- Returns:
- The same instance of type
PromptTemplateSubstitutionResponse
-
getParsedPrompt
Get parsedPrompt- Returns:
- parsedPrompt The parsedPrompt of this
PromptTemplateSubstitutionResponseinstance.
-
setParsedPrompt
Set the parsedPrompt of thisPromptTemplateSubstitutionResponseinstance.- Parameters:
parsedPrompt- The parsedPrompt of thisPromptTemplateSubstitutionResponse
-
resource
@Nonnull public PromptTemplateSubstitutionResponse resource(@Nullable PromptTemplateGetResponse resource) Set the resource of thisPromptTemplateSubstitutionResponseinstance and return the same instance.- Parameters:
resource- The resource of thisPromptTemplateSubstitutionResponse- Returns:
- The same instance of this
PromptTemplateSubstitutionResponseclass
-
getResource
Get resource- Returns:
- resource The resource of this
PromptTemplateSubstitutionResponseinstance.
-
setResource
Set the resource of thisPromptTemplateSubstitutionResponseinstance.- Parameters:
resource- The resource of thisPromptTemplateSubstitutionResponse
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePromptTemplateSubstitutionResponse.- 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 thisPromptTemplateSubstitutionResponseinstance.- 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 thisPromptTemplateSubstitutionResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPromptTemplateSubstitutionResponseinstance. 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 newPromptTemplateSubstitutionResponseinstance. No arguments are required.
-
toMap()instead.