Class PromptTemplatePostRequest
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.PromptTemplatePostRequest
PromptTemplatePostRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PromptTemplatePostRequest. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a type-safe, fluent-api builder object to construct a newPromptTemplatePostRequestinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePromptTemplatePostRequest.getName()Get nameGet scenariogetSpec()Get specGet versioninthashCode()Set the name of thisPromptTemplatePostRequestinstance and return the same instance.Set the scenario of thisPromptTemplatePostRequestinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPromptTemplatePostRequestinstance.voidSet the name of thisPromptTemplatePostRequestinstance.voidsetScenario(String scenario) Set the scenario of thisPromptTemplatePostRequestinstance.voidsetSpec(PromptTemplateSpec spec) Set the spec of thisPromptTemplatePostRequestinstance.voidsetVersion(String version) Set the version of thisPromptTemplatePostRequestinstance.spec(PromptTemplateSpec spec) Set the spec of thisPromptTemplatePostRequestinstance and return the same instance.toMap()Get the value of all properties of thisPromptTemplatePostRequestinstance including unrecognized properties.toString()Set the version of thisPromptTemplatePostRequestinstance and return the same instance.
-
Constructor Details
-
PromptTemplatePostRequest
protected PromptTemplatePostRequest()Default constructor for PromptTemplatePostRequest.
-
-
Method Details
-
name
Set the name of thisPromptTemplatePostRequestinstance and return the same instance.- Parameters:
name- The name of thisPromptTemplatePostRequest- Returns:
- The same instance of this
PromptTemplatePostRequestclass
-
getName
Get name- Returns:
- name The name of this
PromptTemplatePostRequestinstance.
-
setName
Set the name of thisPromptTemplatePostRequestinstance.- Parameters:
name- The name of thisPromptTemplatePostRequest
-
version
Set the version of thisPromptTemplatePostRequestinstance and return the same instance.- Parameters:
version- The version of thisPromptTemplatePostRequest- Returns:
- The same instance of this
PromptTemplatePostRequestclass
-
getVersion
Get version- Returns:
- version The version of this
PromptTemplatePostRequestinstance.
-
setVersion
Set the version of thisPromptTemplatePostRequestinstance.- Parameters:
version- The version of thisPromptTemplatePostRequest
-
scenario
Set the scenario of thisPromptTemplatePostRequestinstance and return the same instance.- Parameters:
scenario- The scenario of thisPromptTemplatePostRequest- Returns:
- The same instance of this
PromptTemplatePostRequestclass
-
getScenario
Get scenario- Returns:
- scenario The scenario of this
PromptTemplatePostRequestinstance.
-
setScenario
Set the scenario of thisPromptTemplatePostRequestinstance.- Parameters:
scenario- The scenario of thisPromptTemplatePostRequest
-
spec
Set the spec of thisPromptTemplatePostRequestinstance and return the same instance.- Parameters:
spec- The spec of thisPromptTemplatePostRequest- Returns:
- The same instance of this
PromptTemplatePostRequestclass
-
getSpec
Get spec- Returns:
- spec The spec of this
PromptTemplatePostRequestinstance.
-
setSpec
Set the spec of thisPromptTemplatePostRequestinstance.- Parameters:
spec- The spec of thisPromptTemplatePostRequest
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePromptTemplatePostRequest.- 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 thisPromptTemplatePostRequestinstance.- 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 thisPromptTemplatePostRequestinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPromptTemplatePostRequestinstance. 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 newPromptTemplatePostRequestinstance with all required arguments.
-
toMap()instead.