Class TemplateRefByScenarioNameVersion
java.lang.Object
com.sap.ai.sdk.orchestration.model.TemplateRefByScenarioNameVersion
- All Implemented Interfaces:
TemplateRefTemplateRef
TemplateRefByScenarioNameVersion
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static enumDefines the scope that is searched for the referenced template. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for TemplateRefByScenarioNameVersion. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a type-safe, fluent-api builder object to construct a newTemplateRefByScenarioNameVersioninstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTemplateRefByScenarioNameVersion.getName()Name of the templateScenario namegetScope()Defines the scope that is searched for the referenced template.Version of the templateinthashCode()Set the name of thisTemplateRefByScenarioNameVersioninstance and return the same instance.Set the scenario of thisTemplateRefByScenarioNameVersioninstance and return the same instance.Set the scope of thisTemplateRefByScenarioNameVersioninstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTemplateRefByScenarioNameVersioninstance.voidSet the name of thisTemplateRefByScenarioNameVersioninstance.voidsetScenario(String scenario) Set the scenario of thisTemplateRefByScenarioNameVersioninstance.voidSet the scope of thisTemplateRefByScenarioNameVersioninstance.voidsetVersion(String version) Set the version of thisTemplateRefByScenarioNameVersioninstance.toMap()Get the value of all properties of thisTemplateRefByScenarioNameVersioninstance including unrecognized properties.toString()Set the version of thisTemplateRefByScenarioNameVersioninstance and return the same instance.
-
Constructor Details
-
TemplateRefByScenarioNameVersion
protected TemplateRefByScenarioNameVersion()Default constructor for TemplateRefByScenarioNameVersion.
-
-
Method Details
-
scenario
Set the scenario of thisTemplateRefByScenarioNameVersioninstance and return the same instance.- Parameters:
scenario- Scenario name- Returns:
- The same instance of this
TemplateRefByScenarioNameVersionclass
-
getScenario
Scenario name- Returns:
- scenario The scenario of this
TemplateRefByScenarioNameVersioninstance.
-
setScenario
Set the scenario of thisTemplateRefByScenarioNameVersioninstance.- Parameters:
scenario- Scenario name
-
name
Set the name of thisTemplateRefByScenarioNameVersioninstance and return the same instance.- Parameters:
name- Name of the template- Returns:
- The same instance of this
TemplateRefByScenarioNameVersionclass
-
getName
Name of the template- Returns:
- name The name of this
TemplateRefByScenarioNameVersioninstance.
-
setName
Set the name of thisTemplateRefByScenarioNameVersioninstance.- Parameters:
name- Name of the template
-
version
Set the version of thisTemplateRefByScenarioNameVersioninstance and return the same instance.- Parameters:
version- Version of the template- Returns:
- The same instance of this
TemplateRefByScenarioNameVersionclass
-
getVersion
Version of the template- Returns:
- version The version of this
TemplateRefByScenarioNameVersioninstance.
-
setVersion
Set the version of thisTemplateRefByScenarioNameVersioninstance.- Parameters:
version- Version of the template
-
scope
@Nonnull public TemplateRefByScenarioNameVersion scope(@Nullable TemplateRefByScenarioNameVersion.ScopeEnum scope) Set the scope of thisTemplateRefByScenarioNameVersioninstance 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
TemplateRefByScenarioNameVersionclass
-
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
TemplateRefByScenarioNameVersioninstance.
-
setScope
Set the scope of thisTemplateRefByScenarioNameVersioninstance.- 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 theTemplateRefByScenarioNameVersion.- 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 thisTemplateRefByScenarioNameVersioninstance.- 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 thisTemplateRefByScenarioNameVersioninstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTemplateRefByScenarioNameVersioninstance. 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 newTemplateRefByScenarioNameVersioninstance with all required arguments.
-
toMap()instead.