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