Package com.sap.ai.sdk.core.model
Class AiModelBaseData
java.lang.Object
com.sap.ai.sdk.core.model.AiModelBaseData
AiModelBaseData
-
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 AiModelBaseData. -
Method Summary
Modifier and TypeMethodDescriptionaccessType(String accessType) Set the accessType of thisAiModelBaseDatainstance and return the same instance.addAllowedScenariosItem(AiModelBaseDataAllowedScenariosInner allowedScenariosItem) Add one allowedScenarios instance to thisAiModelBaseData.addVersionsItem(AiModelVersion versionsItem) Add one versions instance to thisAiModelBaseData.allowedScenarios(List<AiModelBaseDataAllowedScenariosInner> allowedScenarios) Set the allowedScenarios of thisAiModelBaseDatainstance and return the same instance.static AiModelBaseData.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiModelBaseDatainstance with all required arguments.description(String description) Set the description of thisAiModelBaseDatainstance and return the same instance.displayName(String displayName) Set the displayName of thisAiModelBaseDatainstance and return the same instance.booleanexecutableId(String executableId) Set the executableId of thisAiModelBaseDatainstance and return the same instance.Access type of the modelList of scenarioId:executableId pair where the model supportedgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiModelBaseData.Description of the model and its capabilitiesDisplay name of the modelID of the executablegetModel()Name of the modelProvider of the modelList of model versions that the model object hasinthashCode()Set the model of thisAiModelBaseDatainstance and return the same instance.Set the provider of thisAiModelBaseDatainstance and return the same instance.voidsetAccessType(String accessType) Set the accessType of thisAiModelBaseDatainstance.voidsetAllowedScenarios(List<AiModelBaseDataAllowedScenariosInner> allowedScenarios) Set the allowedScenarios of thisAiModelBaseDatainstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiModelBaseDatainstance.voidsetDescription(String description) Set the description of thisAiModelBaseDatainstance.voidsetDisplayName(String displayName) Set the displayName of thisAiModelBaseDatainstance.voidsetExecutableId(String executableId) Set the executableId of thisAiModelBaseDatainstance.voidSet the model of thisAiModelBaseDatainstance.voidsetProvider(String provider) Set the provider of thisAiModelBaseDatainstance.voidsetVersions(List<AiModelVersion> versions) Set the versions of thisAiModelBaseDatainstance.toMap()Get the value of all properties of thisAiModelBaseDatainstance including unrecognized properties.toString()versions(List<AiModelVersion> versions) Set the versions of thisAiModelBaseDatainstance and return the same instance.
-
Constructor Details
-
AiModelBaseData
protected AiModelBaseData()Default constructor for AiModelBaseData.
-
-
Method Details
-
model
Set the model of thisAiModelBaseDatainstance and return the same instance.- Parameters:
model- Name of the model- Returns:
- The same instance of this
AiModelBaseDataclass
-
getModel
Name of the model- Returns:
- model The model of this
AiModelBaseDatainstance.
-
setModel
Set the model of thisAiModelBaseDatainstance.- Parameters:
model- Name of the model
-
executableId
Set the executableId of thisAiModelBaseDatainstance and return the same instance.- Parameters:
executableId- ID of the executable- Returns:
- The same instance of this
AiModelBaseDataclass
-
getExecutableId
ID of the executable- Returns:
- executableId The executableId of this
AiModelBaseDatainstance.
-
setExecutableId
Set the executableId of thisAiModelBaseDatainstance.- Parameters:
executableId- ID of the executable
-
description
Set the description of thisAiModelBaseDatainstance and return the same instance.- Parameters:
description- Description of the model and its capabilities- Returns:
- The same instance of this
AiModelBaseDataclass
-
getDescription
Description of the model and its capabilities- Returns:
- description The description of this
AiModelBaseDatainstance.
-
setDescription
Set the description of thisAiModelBaseDatainstance.- Parameters:
description- Description of the model and its capabilities
-
versions
Set the versions of thisAiModelBaseDatainstance and return the same instance.- Parameters:
versions- List of model versions that the model object has- Returns:
- The same instance of this
AiModelBaseDataclass
-
addVersionsItem
Add one versions instance to thisAiModelBaseData.- Parameters:
versionsItem- The versions that should be added- Returns:
- The same instance of type
AiModelBaseData
-
getVersions
List of model versions that the model object has- Returns:
- versions The versions of this
AiModelBaseDatainstance.
-
setVersions
Set the versions of thisAiModelBaseDatainstance.- Parameters:
versions- List of model versions that the model object has
-
displayName
Set the displayName of thisAiModelBaseDatainstance and return the same instance.- Parameters:
displayName- Display name of the model- Returns:
- The same instance of this
AiModelBaseDataclass
-
getDisplayName
Display name of the model- Returns:
- displayName The displayName of this
AiModelBaseDatainstance.
-
setDisplayName
Set the displayName of thisAiModelBaseDatainstance.- Parameters:
displayName- Display name of the model
-
accessType
Set the accessType of thisAiModelBaseDatainstance and return the same instance.- Parameters:
accessType- Access type of the model- Returns:
- The same instance of this
AiModelBaseDataclass
-
getAccessType
Access type of the model- Returns:
- accessType The accessType of this
AiModelBaseDatainstance.
-
setAccessType
Set the accessType of thisAiModelBaseDatainstance.- Parameters:
accessType- Access type of the model
-
provider
Set the provider of thisAiModelBaseDatainstance and return the same instance.- Parameters:
provider- Provider of the model- Returns:
- The same instance of this
AiModelBaseDataclass
-
getProvider
Provider of the model- Returns:
- provider The provider of this
AiModelBaseDatainstance.
-
setProvider
Set the provider of thisAiModelBaseDatainstance.- Parameters:
provider- Provider of the model
-
allowedScenarios
@Nonnull public AiModelBaseData allowedScenarios(@Nullable List<AiModelBaseDataAllowedScenariosInner> allowedScenarios) Set the allowedScenarios of thisAiModelBaseDatainstance and return the same instance.- Parameters:
allowedScenarios- List of scenarioId:executableId pair where the model supported- Returns:
- The same instance of this
AiModelBaseDataclass
-
addAllowedScenariosItem
@Nonnull public AiModelBaseData addAllowedScenariosItem(@Nonnull AiModelBaseDataAllowedScenariosInner allowedScenariosItem) Add one allowedScenarios instance to thisAiModelBaseData.- Parameters:
allowedScenariosItem- The allowedScenarios that should be added- Returns:
- The same instance of type
AiModelBaseData
-
getAllowedScenarios
List of scenarioId:executableId pair where the model supported- Returns:
- allowedScenarios The allowedScenarios of this
AiModelBaseDatainstance.
-
setAllowedScenarios
public void setAllowedScenarios(@Nullable List<AiModelBaseDataAllowedScenariosInner> allowedScenarios) Set the allowedScenarios of thisAiModelBaseDatainstance.- Parameters:
allowedScenarios- List of scenarioId:executableId pair where the model supported
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiModelBaseData.- 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 thisAiModelBaseDatainstance.- 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 thisAiModelBaseDatainstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiModelBaseDatainstance. 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 newAiModelBaseDatainstance with all required arguments.
-
toMap()instead.