Enum Class TemplateRefByScenarioNameVersion.ScopeEnum
java.lang.Object
java.lang.Enum<TemplateRefByScenarioNameVersion.ScopeEnum>
com.sap.ai.sdk.prompt.registry.model.TemplateRefByScenarioNameVersion.ScopeEnum
- All Implemented Interfaces:
Serializable,Comparable<TemplateRefByScenarioNameVersion.ScopeEnum>,Constable
- Enclosing class:
TemplateRefByScenarioNameVersion
public static enum TemplateRefByScenarioNameVersion.ScopeEnum
extends Enum<TemplateRefByScenarioNameVersion.ScopeEnum>
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe RESOURCE_GROUP option of this TemplateRefByScenarioNameVersionThe TENANT option of this TemplateRefByScenarioNameVersionThe UNKNOWN_DEFAULT_OPEN_API option of this TemplateRefByScenarioNameVersion -
Method Summary
Modifier and TypeMethodDescriptionGet the enum value from a String valuegetValue()Get the value of the enumtoString()Get the String value of the enum value.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESOURCE_GROUP
The RESOURCE_GROUP option of this TemplateRefByScenarioNameVersion -
TENANT
The TENANT option of this TemplateRefByScenarioNameVersion -
UNKNOWN_DEFAULT_OPEN_API
The UNKNOWN_DEFAULT_OPEN_API option of this TemplateRefByScenarioNameVersion
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Get the value of the enum- Returns:
- The enum value
-
toString
Get the String value of the enum value.- Overrides:
toStringin classEnum<TemplateRefByScenarioNameVersion.ScopeEnum>- Returns:
- The enum value as String
-
fromValue
Get the enum value from a String value- Parameters:
value- The String value- Returns:
- The enum value of type TemplateRefByScenarioNameVersion
-