Class PromptTemplatePostResponse
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.PromptTemplatePostResponse
PromptTemplatePostResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PromptTemplatePostResponse. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a type-safe, fluent-api builder object to construct a newPromptTemplatePostResponseinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePromptTemplatePostResponse.getId()Get idGet messagegetName()Get nameGet scenarioGet versioninthashCode()Set the id of thisPromptTemplatePostResponseinstance and return the same instance.Set the message of thisPromptTemplatePostResponseinstance and return the same instance.Set the name of thisPromptTemplatePostResponseinstance and return the same instance.Set the scenario of thisPromptTemplatePostResponseinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPromptTemplatePostResponseinstance.voidSet the id of thisPromptTemplatePostResponseinstance.voidsetMessage(String message) Set the message of thisPromptTemplatePostResponseinstance.voidSet the name of thisPromptTemplatePostResponseinstance.voidsetScenario(String scenario) Set the scenario of thisPromptTemplatePostResponseinstance.voidsetVersion(String version) Set the version of thisPromptTemplatePostResponseinstance.toMap()Get the value of all properties of thisPromptTemplatePostResponseinstance including unrecognized properties.toString()Set the version of thisPromptTemplatePostResponseinstance and return the same instance.
-
Constructor Details
-
PromptTemplatePostResponse
protected PromptTemplatePostResponse()Default constructor for PromptTemplatePostResponse.
-
-
Method Details
-
message
Set the message of thisPromptTemplatePostResponseinstance and return the same instance.- Parameters:
message- The message of thisPromptTemplatePostResponse- Returns:
- The same instance of this
PromptTemplatePostResponseclass
-
getMessage
Get message- Returns:
- message The message of this
PromptTemplatePostResponseinstance.
-
setMessage
Set the message of thisPromptTemplatePostResponseinstance.- Parameters:
message- The message of thisPromptTemplatePostResponse
-
id
Set the id of thisPromptTemplatePostResponseinstance and return the same instance.- Parameters:
id- The id of thisPromptTemplatePostResponse- Returns:
- The same instance of this
PromptTemplatePostResponseclass
-
getId
Get id- Returns:
- id The id of this
PromptTemplatePostResponseinstance.
-
setId
Set the id of thisPromptTemplatePostResponseinstance.- Parameters:
id- The id of thisPromptTemplatePostResponse
-
scenario
Set the scenario of thisPromptTemplatePostResponseinstance and return the same instance.- Parameters:
scenario- The scenario of thisPromptTemplatePostResponse- Returns:
- The same instance of this
PromptTemplatePostResponseclass
-
getScenario
Get scenario- Returns:
- scenario The scenario of this
PromptTemplatePostResponseinstance.
-
setScenario
Set the scenario of thisPromptTemplatePostResponseinstance.- Parameters:
scenario- The scenario of thisPromptTemplatePostResponse
-
name
Set the name of thisPromptTemplatePostResponseinstance and return the same instance.- Parameters:
name- The name of thisPromptTemplatePostResponse- Returns:
- The same instance of this
PromptTemplatePostResponseclass
-
getName
Get name- Returns:
- name The name of this
PromptTemplatePostResponseinstance.
-
setName
Set the name of thisPromptTemplatePostResponseinstance.- Parameters:
name- The name of thisPromptTemplatePostResponse
-
version
Set the version of thisPromptTemplatePostResponseinstance and return the same instance.- Parameters:
version- The version of thisPromptTemplatePostResponse- Returns:
- The same instance of this
PromptTemplatePostResponseclass
-
getVersion
Get version- Returns:
- version The version of this
PromptTemplatePostResponseinstance.
-
setVersion
Set the version of thisPromptTemplatePostResponseinstance.- Parameters:
version- The version of thisPromptTemplatePostResponse
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePromptTemplatePostResponse.- 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 thisPromptTemplatePostResponseinstance.- 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 thisPromptTemplatePostResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPromptTemplatePostResponseinstance. 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 newPromptTemplatePostResponseinstance with all required arguments.
-
toMap()instead.