Package com.sap.ai.sdk.core.model
Class AiModelVersion
java.lang.Object
com.sap.ai.sdk.core.model.AiModelVersion
Model version information including whether it is latest version, its deprecation status and
optional retirement date
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCapabilitiesItem(String capabilitiesItem) Add one capabilities instance to thisAiModelVersion.addCostItem(Map<String, String> costItem) Add one cost instance to thisAiModelVersion.addInputTypesItem(String inputTypesItem) Add one inputTypes instance to thisAiModelVersion.addMetadataItem(Map<String, String> metadataItem) Add one metadata instance to thisAiModelVersion.addOrchestrationCapabilitiesItem(String orchestrationCapabilitiesItem) Add one orchestrationCapabilities instance to thisAiModelVersion.addSuggestedReplacementsItem(String suggestedReplacementsItem) Add one suggestedReplacements instance to thisAiModelVersion.capabilities(List<String> capabilities) Set the capabilities of thisAiModelVersioninstance and return the same instance.contextLength(Integer contextLength) Set the contextLength of thisAiModelVersioninstance and return the same instance.Set the cost of thisAiModelVersioninstance and return the same instance.static AiModelVersion.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiModelVersioninstance with all required arguments.deprecated(Boolean deprecated) Set the deprecated of thisAiModelVersioninstance and return the same instance.booleanList of capabilities supported by the modelContext length of the modelgetCost()List of costs associated with the modelgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiModelVersion.List of input types supported by the modelList of metadata supported by the modelgetName()Name of model versionList of model capabilities supported by orchestration serviceRetirement date of model in ISO 8601 timestampList of suggested replacements for the modelinthashCode()inputTypes(List<String> inputTypes) Set the inputTypes of thisAiModelVersioninstance and return the same instance.Deprecation status of modelDisplays whether it is the latest version offered for the modelSet the isLatest of thisAiModelVersioninstance and return the same instance.Streaming support status of the modelSet the metadata of thisAiModelVersioninstance and return the same instance.Set the name of thisAiModelVersioninstance and return the same instance.orchestrationCapabilities(List<String> orchestrationCapabilities) Set the orchestrationCapabilities of thisAiModelVersioninstance and return the same instance.retirementDate(String retirementDate) Set the retirementDate of thisAiModelVersioninstance and return the same instance.voidsetCapabilities(List<String> capabilities) Set the capabilities of thisAiModelVersioninstance.voidsetContextLength(Integer contextLength) Set the contextLength of thisAiModelVersioninstance.voidSet the cost of thisAiModelVersioninstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiModelVersioninstance.voidsetDeprecated(Boolean deprecated) Set the deprecated of thisAiModelVersioninstance.voidsetInputTypes(List<String> inputTypes) Set the inputTypes of thisAiModelVersioninstance.voidsetIsLatest(Boolean isLatest) Set the isLatest of thisAiModelVersioninstance.voidsetMetadata(List<Map<String, String>> metadata) Set the metadata of thisAiModelVersioninstance.voidSet the name of thisAiModelVersioninstance.voidsetOrchestrationCapabilities(List<String> orchestrationCapabilities) Set the orchestrationCapabilities of thisAiModelVersioninstance.voidsetRetirementDate(String retirementDate) Set the retirementDate of thisAiModelVersioninstance.voidsetStreamingSupported(Boolean streamingSupported) Set the streamingSupported of thisAiModelVersioninstance.voidsetSuggestedReplacements(List<String> suggestedReplacements) Set the suggestedReplacements of thisAiModelVersioninstance.streamingSupported(Boolean streamingSupported) Set the streamingSupported of thisAiModelVersioninstance and return the same instance.suggestedReplacements(List<String> suggestedReplacements) Set the suggestedReplacements of thisAiModelVersioninstance and return the same instance.toMap()Get the value of all properties of thisAiModelVersioninstance including unrecognized properties.toString()
-
Constructor Details
-
AiModelVersion
protected AiModelVersion()Default constructor for AiModelVersion.
-
-
Method Details
-
name
Set the name of thisAiModelVersioninstance and return the same instance.- Parameters:
name- Name of model version- Returns:
- The same instance of this
AiModelVersionclass
-
getName
Name of model version- Returns:
- name The name of this
AiModelVersioninstance.
-
setName
Set the name of thisAiModelVersioninstance.- Parameters:
name- Name of model version
-
isLatest
Set the isLatest of thisAiModelVersioninstance and return the same instance.- Parameters:
isLatest- Displays whether it is the latest version offered for the model- Returns:
- The same instance of this
AiModelVersionclass
-
isIsLatest
Displays whether it is the latest version offered for the model- Returns:
- isLatest The isLatest of this
AiModelVersioninstance.
-
setIsLatest
Set the isLatest of thisAiModelVersioninstance.- Parameters:
isLatest- Displays whether it is the latest version offered for the model
-
deprecated
Set the deprecated of thisAiModelVersioninstance and return the same instance.- Parameters:
deprecated- Deprecation status of model- Returns:
- The same instance of this
AiModelVersionclass
-
isDeprecated
Deprecation status of model- Returns:
- deprecated The deprecated of this
AiModelVersioninstance.
-
setDeprecated
Set the deprecated of thisAiModelVersioninstance.- Parameters:
deprecated- Deprecation status of model
-
retirementDate
Set the retirementDate of thisAiModelVersioninstance and return the same instance.- Parameters:
retirementDate- Retirement date of model in ISO 8601 timestamp- Returns:
- The same instance of this
AiModelVersionclass
-
getRetirementDate
Retirement date of model in ISO 8601 timestamp- Returns:
- retirementDate The retirementDate of this
AiModelVersioninstance.
-
setRetirementDate
Set the retirementDate of thisAiModelVersioninstance.- Parameters:
retirementDate- Retirement date of model in ISO 8601 timestamp
-
contextLength
Set the contextLength of thisAiModelVersioninstance and return the same instance.- Parameters:
contextLength- Context length of the model- Returns:
- The same instance of this
AiModelVersionclass
-
getContextLength
Context length of the model- Returns:
- contextLength The contextLength of this
AiModelVersioninstance.
-
setContextLength
Set the contextLength of thisAiModelVersioninstance.- Parameters:
contextLength- Context length of the model
-
inputTypes
Set the inputTypes of thisAiModelVersioninstance and return the same instance.- Parameters:
inputTypes- List of input types supported by the model- Returns:
- The same instance of this
AiModelVersionclass
-
addInputTypesItem
Add one inputTypes instance to thisAiModelVersion.- Parameters:
inputTypesItem- The inputTypes that should be added- Returns:
- The same instance of type
AiModelVersion
-
getInputTypes
List of input types supported by the model- Returns:
- inputTypes The inputTypes of this
AiModelVersioninstance.
-
setInputTypes
Set the inputTypes of thisAiModelVersioninstance.- Parameters:
inputTypes- List of input types supported by the model
-
capabilities
Set the capabilities of thisAiModelVersioninstance and return the same instance.- Parameters:
capabilities- List of capabilities supported by the model- Returns:
- The same instance of this
AiModelVersionclass
-
addCapabilitiesItem
Add one capabilities instance to thisAiModelVersion.- Parameters:
capabilitiesItem- The capabilities that should be added- Returns:
- The same instance of type
AiModelVersion
-
getCapabilities
List of capabilities supported by the model- Returns:
- capabilities The capabilities of this
AiModelVersioninstance.
-
setCapabilities
Set the capabilities of thisAiModelVersioninstance.- Parameters:
capabilities- List of capabilities supported by the model
-
metadata
Set the metadata of thisAiModelVersioninstance and return the same instance.- Parameters:
metadata- List of metadata supported by the model- Returns:
- The same instance of this
AiModelVersionclass
-
addMetadataItem
Add one metadata instance to thisAiModelVersion.- Parameters:
metadataItem- The metadata that should be added- Returns:
- The same instance of type
AiModelVersion
-
getMetadata
List of metadata supported by the model- Returns:
- metadata The metadata of this
AiModelVersioninstance.
-
setMetadata
Set the metadata of thisAiModelVersioninstance.- Parameters:
metadata- List of metadata supported by the model
-
cost
Set the cost of thisAiModelVersioninstance and return the same instance.- Parameters:
cost- List of costs associated with the model- Returns:
- The same instance of this
AiModelVersionclass
-
addCostItem
Add one cost instance to thisAiModelVersion.- Parameters:
costItem- The cost that should be added- Returns:
- The same instance of type
AiModelVersion
-
getCost
List of costs associated with the model- Returns:
- cost The cost of this
AiModelVersioninstance.
-
setCost
Set the cost of thisAiModelVersioninstance.- Parameters:
cost- List of costs associated with the model
-
suggestedReplacements
Set the suggestedReplacements of thisAiModelVersioninstance and return the same instance.- Parameters:
suggestedReplacements- List of suggested replacements for the model- Returns:
- The same instance of this
AiModelVersionclass
-
addSuggestedReplacementsItem
@Nonnull public AiModelVersion addSuggestedReplacementsItem(@Nonnull String suggestedReplacementsItem) Add one suggestedReplacements instance to thisAiModelVersion.- Parameters:
suggestedReplacementsItem- The suggestedReplacements that should be added- Returns:
- The same instance of type
AiModelVersion
-
getSuggestedReplacements
List of suggested replacements for the model- Returns:
- suggestedReplacements The suggestedReplacements of this
AiModelVersioninstance.
-
setSuggestedReplacements
Set the suggestedReplacements of thisAiModelVersioninstance.- Parameters:
suggestedReplacements- List of suggested replacements for the model
-
streamingSupported
Set the streamingSupported of thisAiModelVersioninstance and return the same instance.- Parameters:
streamingSupported- Streaming support status of the model- Returns:
- The same instance of this
AiModelVersionclass
-
isStreamingSupported
Streaming support status of the model- Returns:
- streamingSupported The streamingSupported of this
AiModelVersioninstance.
-
setStreamingSupported
Set the streamingSupported of thisAiModelVersioninstance.- Parameters:
streamingSupported- Streaming support status of the model
-
orchestrationCapabilities
@Nonnull public AiModelVersion orchestrationCapabilities(@Nullable List<String> orchestrationCapabilities) Set the orchestrationCapabilities of thisAiModelVersioninstance and return the same instance.- Parameters:
orchestrationCapabilities- List of model capabilities supported by orchestration service- Returns:
- The same instance of this
AiModelVersionclass
-
addOrchestrationCapabilitiesItem
@Nonnull public AiModelVersion addOrchestrationCapabilitiesItem(@Nonnull String orchestrationCapabilitiesItem) Add one orchestrationCapabilities instance to thisAiModelVersion.- Parameters:
orchestrationCapabilitiesItem- The orchestrationCapabilities that should be added- Returns:
- The same instance of type
AiModelVersion
-
getOrchestrationCapabilities
List of model capabilities supported by orchestration service- Returns:
- orchestrationCapabilities The orchestrationCapabilities of this
AiModelVersioninstance.
-
setOrchestrationCapabilities
Set the orchestrationCapabilities of thisAiModelVersioninstance.- Parameters:
orchestrationCapabilities- List of model capabilities supported by orchestration service
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiModelVersion.- 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 thisAiModelVersioninstance.- 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 thisAiModelVersioninstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiModelVersioninstance. 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 newAiModelVersioninstance with all required arguments.
-
toMap()instead.