Class TemplateRefByID
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.TemplateRefByID
- All Implemented Interfaces:
TemplateRefTemplateRef
TemplateRefByID
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static enumDefines the scope that is searched for the referenced template. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for TemplateRefByID. -
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateRefByID.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTemplateRefByIDinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTemplateRefByID.getId()ID of the template in prompt registrygetScope()Defines the scope that is searched for the referenced template.inthashCode()Set the id of thisTemplateRefByIDinstance and return the same instance.scope(TemplateRefByID.ScopeEnum scope) Set the scope of thisTemplateRefByIDinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTemplateRefByIDinstance.voidSet the id of thisTemplateRefByIDinstance.voidSet the scope of thisTemplateRefByIDinstance.toMap()Get the value of all properties of thisTemplateRefByIDinstance including unrecognized properties.toString()
-
Constructor Details
-
TemplateRefByID
protected TemplateRefByID()Default constructor for TemplateRefByID.
-
-
Method Details
-
id
Set the id of thisTemplateRefByIDinstance and return the same instance.- Parameters:
id- ID of the template in prompt registry- Returns:
- The same instance of this
TemplateRefByIDclass
-
getId
ID of the template in prompt registry- Returns:
- id The id of this
TemplateRefByIDinstance.
-
setId
Set the id of thisTemplateRefByIDinstance.- Parameters:
id- ID of the template in prompt registry
-
scope
Set the scope of thisTemplateRefByIDinstance and return the same instance.- Parameters:
scope- Defines the scope that is searched for the referenced template. 'tenant' indicates the template is shared across all resource groups within the tenant, while 'resource_group' indicates the template is only accessible within the specific resource group.- Returns:
- The same instance of this
TemplateRefByIDclass
-
getScope
Defines the scope that is searched for the referenced template. 'tenant' indicates the template is shared across all resource groups within the tenant, while 'resource_group' indicates the template is only accessible within the specific resource group.- Returns:
- scope The scope of this
TemplateRefByIDinstance.
-
setScope
Set the scope of thisTemplateRefByIDinstance.- Parameters:
scope- Defines the scope that is searched for the referenced template. 'tenant' indicates the template is shared across all resource groups within the tenant, while 'resource_group' indicates the template is only accessible within the specific resource group.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTemplateRefByID.- 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 thisTemplateRefByIDinstance.- 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 thisTemplateRefByIDinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTemplateRefByIDinstance. 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 newTemplateRefByIDinstance with all required arguments.
-
toMap()instead.