Class RuntimePromptTemplateFile
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.RuntimePromptTemplateFile
RuntimePromptTemplateFile
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for RuntimePromptTemplateFile. -
Method Summary
Modifier and TypeMethodDescriptionapiVersion(String apiVersion) Set the apiVersion of thisRuntimePromptTemplateFileinstance and return the same instance.static RuntimePromptTemplateFilecreate()Create a newRuntimePromptTemplateFileinstance.booleanGet apiVersiongetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theRuntimePromptTemplateFile.getKind()Get kindGet metadatagetSpec()Get specinthashCode()Set the kind of thisRuntimePromptTemplateFileinstance and return the same instance.metadata(RuntimePromptTemplateFileMetadata metadata) Set the metadata of thisRuntimePromptTemplateFileinstance and return the same instance.voidsetApiVersion(String apiVersion) Set the apiVersion of thisRuntimePromptTemplateFileinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisRuntimePromptTemplateFileinstance.voidSet the kind of thisRuntimePromptTemplateFileinstance.voidsetMetadata(RuntimePromptTemplateFileMetadata metadata) Set the metadata of thisRuntimePromptTemplateFileinstance.voidsetSpec(PromptTemplateSpec spec) Set the spec of thisRuntimePromptTemplateFileinstance.spec(PromptTemplateSpec spec) Set the spec of thisRuntimePromptTemplateFileinstance and return the same instance.toMap()Get the value of all properties of thisRuntimePromptTemplateFileinstance including unrecognized properties.toString()
-
Constructor Details
-
RuntimePromptTemplateFile
protected RuntimePromptTemplateFile()Default constructor for RuntimePromptTemplateFile.
-
-
Method Details
-
apiVersion
Set the apiVersion of thisRuntimePromptTemplateFileinstance and return the same instance.- Parameters:
apiVersion- The apiVersion of thisRuntimePromptTemplateFile- Returns:
- The same instance of this
RuntimePromptTemplateFileclass
-
getApiVersion
Get apiVersion- Returns:
- apiVersion The apiVersion of this
RuntimePromptTemplateFileinstance.
-
setApiVersion
Set the apiVersion of thisRuntimePromptTemplateFileinstance.- Parameters:
apiVersion- The apiVersion of thisRuntimePromptTemplateFile
-
kind
Set the kind of thisRuntimePromptTemplateFileinstance and return the same instance.- Parameters:
kind- The kind of thisRuntimePromptTemplateFile- Returns:
- The same instance of this
RuntimePromptTemplateFileclass
-
getKind
Get kind- Returns:
- kind The kind of this
RuntimePromptTemplateFileinstance.
-
setKind
Set the kind of thisRuntimePromptTemplateFileinstance.- Parameters:
kind- The kind of thisRuntimePromptTemplateFile
-
metadata
@Nonnull public RuntimePromptTemplateFile metadata(@Nullable RuntimePromptTemplateFileMetadata metadata) Set the metadata of thisRuntimePromptTemplateFileinstance and return the same instance.- Parameters:
metadata- The metadata of thisRuntimePromptTemplateFile- Returns:
- The same instance of this
RuntimePromptTemplateFileclass
-
getMetadata
Get metadata- Returns:
- metadata The metadata of this
RuntimePromptTemplateFileinstance.
-
setMetadata
Set the metadata of thisRuntimePromptTemplateFileinstance.- Parameters:
metadata- The metadata of thisRuntimePromptTemplateFile
-
spec
Set the spec of thisRuntimePromptTemplateFileinstance and return the same instance.- Parameters:
spec- The spec of thisRuntimePromptTemplateFile- Returns:
- The same instance of this
RuntimePromptTemplateFileclass
-
getSpec
Get spec- Returns:
- spec The spec of this
RuntimePromptTemplateFileinstance.
-
setSpec
Set the spec of thisRuntimePromptTemplateFileinstance.- Parameters:
spec- The spec of thisRuntimePromptTemplateFile
-
getCustomFieldNames
Get the names of the unrecognizable properties of theRuntimePromptTemplateFile.- 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 thisRuntimePromptTemplateFileinstance.- 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 thisRuntimePromptTemplateFileinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisRuntimePromptTemplateFileinstance. 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 newRuntimePromptTemplateFileinstance. No arguments are required.
-
toMap()instead.