Package com.sap.ai.sdk.core.model
Class AiArtifact
java.lang.Object
com.sap.ai.sdk.core.model.AiArtifact
Base data of the artifact; this is the data that can be provided when the artifact is created;
`name` and `kind` are required because they constitute important semantic
filtering criteria for use in training / inference executables (`name` is a semantic
handle of the artifact within a scenario and `kind` specifies the type of usage, e.g.
you would only want to allow models in the model operator).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static enumKind of the artifact, i.e. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLabelsItem(AiLabel labelsItem) Add one labels instance to thisAiArtifact.configurationId(String configurationId) Set the configurationId of thisAiArtifactinstance and return the same instance.static AiArtifact.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiArtifactinstance with all required arguments.createdAt(OffsetDateTime createdAt) Set the createdAt of thisAiArtifactinstance and return the same instance.description(String description) Set the description of thisAiArtifactinstance and return the same instance.booleanexecutionId(String executionId) Set the executionId of thisAiArtifactinstance and return the same instance.ID of the configurationTimestamp of resource creationgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiArtifact.Description of the artifactID of the executiongetId()ID of the artifactgetKind()Kind of the artifact, i.e.Arbitrary labels as meta informationTimestamp of latest resource modificationgetName()Name of the artifactGet scenarioID of the scenariogetUrl()Reference to the location of the artifact.inthashCode()Set the id of thisAiArtifactinstance and return the same instance.kind(AiArtifact.KindEnum kind) Set the kind of thisAiArtifactinstance and return the same instance.Set the labels of thisAiArtifactinstance and return the same instance.modifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiArtifactinstance and return the same instance.Set the name of thisAiArtifactinstance and return the same instance.scenario(AiScenario scenario) Set the scenario of thisAiArtifactinstance and return the same instance.scenarioId(String scenarioId) Set the scenarioId of thisAiArtifactinstance and return the same instance.voidsetConfigurationId(String configurationId) Set the configurationId of thisAiArtifactinstance.voidsetCreatedAt(OffsetDateTime createdAt) Set the createdAt of thisAiArtifactinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiArtifactinstance.voidsetDescription(String description) Set the description of thisAiArtifactinstance.voidsetExecutionId(String executionId) Set the executionId of thisAiArtifactinstance.voidSet the id of thisAiArtifactinstance.voidsetKind(AiArtifact.KindEnum kind) Set the kind of thisAiArtifactinstance.voidSet the labels of thisAiArtifactinstance.voidsetModifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiArtifactinstance.voidSet the name of thisAiArtifactinstance.voidsetScenario(AiScenario scenario) Set the scenario of thisAiArtifactinstance.voidsetScenarioId(String scenarioId) Set the scenarioId of thisAiArtifactinstance.voidSet the url of thisAiArtifactinstance.toMap()Get the value of all properties of thisAiArtifactinstance including unrecognized properties.toString()Set the url of thisAiArtifactinstance and return the same instance.
-
Constructor Details
-
AiArtifact
protected AiArtifact()Default constructor for AiArtifact.
-
-
Method Details
-
labels
Set the labels of thisAiArtifactinstance and return the same instance.- Parameters:
labels- Arbitrary labels as meta information- Returns:
- The same instance of this
AiArtifactclass
-
addLabelsItem
Add one labels instance to thisAiArtifact.- Parameters:
labelsItem- The labels that should be added- Returns:
- The same instance of type
AiArtifact
-
getLabels
Arbitrary labels as meta information- Returns:
- labels The labels of this
AiArtifactinstance.
-
setLabels
Set the labels of thisAiArtifactinstance.- Parameters:
labels- Arbitrary labels as meta information
-
name
Set the name of thisAiArtifactinstance and return the same instance.- Parameters:
name- Name of the artifact- Returns:
- The same instance of this
AiArtifactclass
-
getName
Name of the artifact- Returns:
- name The name of this
AiArtifactinstance.
-
setName
Set the name of thisAiArtifactinstance.- Parameters:
name- Name of the artifact
-
kind
Set the kind of thisAiArtifactinstance and return the same instance.- Parameters:
kind- Kind of the artifact, i.e. model or dataset- Returns:
- The same instance of this
AiArtifactclass
-
getKind
Kind of the artifact, i.e. model or dataset- Returns:
- kind The kind of this
AiArtifactinstance.
-
setKind
Set the kind of thisAiArtifactinstance.- Parameters:
kind- Kind of the artifact, i.e. model or dataset
-
url
Set the url of thisAiArtifactinstance and return the same instance.- Parameters:
url- Reference to the location of the artifact.- Returns:
- The same instance of this
AiArtifactclass
-
getUrl
Reference to the location of the artifact.- Returns:
- url The url of this
AiArtifactinstance.
-
setUrl
Set the url of thisAiArtifactinstance.- Parameters:
url- Reference to the location of the artifact.
-
description
Set the description of thisAiArtifactinstance and return the same instance.- Parameters:
description- Description of the artifact- Returns:
- The same instance of this
AiArtifactclass
-
getDescription
Description of the artifact- Returns:
- description The description of this
AiArtifactinstance.
-
setDescription
Set the description of thisAiArtifactinstance.- Parameters:
description- Description of the artifact
-
id
Set the id of thisAiArtifactinstance and return the same instance.- Parameters:
id- ID of the artifact- Returns:
- The same instance of this
AiArtifactclass
-
getId
ID of the artifact- Returns:
- id The id of this
AiArtifactinstance.
-
setId
Set the id of thisAiArtifactinstance.- Parameters:
id- ID of the artifact
-
scenarioId
Set the scenarioId of thisAiArtifactinstance and return the same instance.- Parameters:
scenarioId- ID of the scenario- Returns:
- The same instance of this
AiArtifactclass
-
getScenarioId
ID of the scenario- Returns:
- scenarioId The scenarioId of this
AiArtifactinstance.
-
setScenarioId
Set the scenarioId of thisAiArtifactinstance.- Parameters:
scenarioId- ID of the scenario
-
configurationId
Set the configurationId of thisAiArtifactinstance and return the same instance.- Parameters:
configurationId- ID of the configuration- Returns:
- The same instance of this
AiArtifactclass
-
getConfigurationId
ID of the configuration- Returns:
- configurationId The configurationId of this
AiArtifactinstance.
-
setConfigurationId
Set the configurationId of thisAiArtifactinstance.- Parameters:
configurationId- ID of the configuration
-
executionId
Set the executionId of thisAiArtifactinstance and return the same instance.- Parameters:
executionId- ID of the execution- Returns:
- The same instance of this
AiArtifactclass
-
getExecutionId
ID of the execution- Returns:
- executionId The executionId of this
AiArtifactinstance.
-
setExecutionId
Set the executionId of thisAiArtifactinstance.- Parameters:
executionId- ID of the execution
-
createdAt
Set the createdAt of thisAiArtifactinstance and return the same instance.- Parameters:
createdAt- Timestamp of resource creation- Returns:
- The same instance of this
AiArtifactclass
-
getCreatedAt
Timestamp of resource creation- Returns:
- createdAt The createdAt of this
AiArtifactinstance.
-
setCreatedAt
Set the createdAt of thisAiArtifactinstance.- Parameters:
createdAt- Timestamp of resource creation
-
modifiedAt
Set the modifiedAt of thisAiArtifactinstance and return the same instance.- Parameters:
modifiedAt- Timestamp of latest resource modification- Returns:
- The same instance of this
AiArtifactclass
-
getModifiedAt
Timestamp of latest resource modification- Returns:
- modifiedAt The modifiedAt of this
AiArtifactinstance.
-
setModifiedAt
Set the modifiedAt of thisAiArtifactinstance.- Parameters:
modifiedAt- Timestamp of latest resource modification
-
scenario
Set the scenario of thisAiArtifactinstance and return the same instance.- Parameters:
scenario- The scenario of thisAiArtifact- Returns:
- The same instance of this
AiArtifactclass
-
getScenario
Get scenario- Returns:
- scenario The scenario of this
AiArtifactinstance.
-
setScenario
Set the scenario of thisAiArtifactinstance.- Parameters:
scenario- The scenario of thisAiArtifact
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiArtifact.- 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 thisAiArtifactinstance.- 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 thisAiArtifactinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiArtifactinstance. 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 newAiArtifactinstance with all required arguments.
-
toMap()instead.