Package com.sap.ai.sdk.core.model
Class AiScenario
java.lang.Object
com.sap.ai.sdk.core.model.AiScenario
An ML Scenario consists of a number of executables. E.g., there can be one or several training
executables, an inference (deployment) executable. An ML Scenario is versioned.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLabelsItem(AiScenarioLabel labelsItem) Add one labels instance to thisAiScenario.static AiScenario.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiScenarioinstance with all required arguments.createdAt(OffsetDateTime createdAt) Set the createdAt of thisAiScenarioinstance and return the same instance.description(String description) Set the description of thisAiScenarioinstance and return the same instance.booleanTimestamp of resource creationgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiScenario.Description of the scenariogetId()ID of the scenarioArbitrary labels as meta informationTimestamp of latest resource modificationgetName()Name of the scenariointhashCode()Set the id of thisAiScenarioinstance and return the same instance.labels(List<AiScenarioLabel> labels) Set the labels of thisAiScenarioinstance and return the same instance.modifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiScenarioinstance and return the same instance.Set the name of thisAiScenarioinstance and return the same instance.voidsetCreatedAt(OffsetDateTime createdAt) Set the createdAt of thisAiScenarioinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiScenarioinstance.voidsetDescription(String description) Set the description of thisAiScenarioinstance.voidSet the id of thisAiScenarioinstance.voidsetLabels(List<AiScenarioLabel> labels) Set the labels of thisAiScenarioinstance.voidsetModifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiScenarioinstance.voidSet the name of thisAiScenarioinstance.toMap()Get the value of all properties of thisAiScenarioinstance including unrecognized properties.toString()
-
Constructor Details
-
AiScenario
protected AiScenario()Default constructor for AiScenario.
-
-
Method Details
-
name
Set the name of thisAiScenarioinstance and return the same instance.- Parameters:
name- Name of the scenario- Returns:
- The same instance of this
AiScenarioclass
-
getName
Name of the scenario- Returns:
- name The name of this
AiScenarioinstance.
-
setName
Set the name of thisAiScenarioinstance.- Parameters:
name- Name of the scenario
-
description
Set the description of thisAiScenarioinstance and return the same instance.- Parameters:
description- Description of the scenario- Returns:
- The same instance of this
AiScenarioclass
-
getDescription
Description of the scenario- Returns:
- description The description of this
AiScenarioinstance.
-
setDescription
Set the description of thisAiScenarioinstance.- Parameters:
description- Description of the scenario
-
labels
Set the labels of thisAiScenarioinstance and return the same instance.- Parameters:
labels- Arbitrary labels as meta information- Returns:
- The same instance of this
AiScenarioclass
-
addLabelsItem
Add one labels instance to thisAiScenario.- Parameters:
labelsItem- The labels that should be added- Returns:
- The same instance of type
AiScenario
-
getLabels
Arbitrary labels as meta information- Returns:
- labels The labels of this
AiScenarioinstance.
-
setLabels
Set the labels of thisAiScenarioinstance.- Parameters:
labels- Arbitrary labels as meta information
-
id
Set the id of thisAiScenarioinstance and return the same instance.- Parameters:
id- ID of the scenario- Returns:
- The same instance of this
AiScenarioclass
-
getId
ID of the scenario- Returns:
- id The id of this
AiScenarioinstance.
-
setId
Set the id of thisAiScenarioinstance.- Parameters:
id- ID of the scenario
-
createdAt
Set the createdAt of thisAiScenarioinstance and return the same instance.- Parameters:
createdAt- Timestamp of resource creation- Returns:
- The same instance of this
AiScenarioclass
-
getCreatedAt
Timestamp of resource creation- Returns:
- createdAt The createdAt of this
AiScenarioinstance.
-
setCreatedAt
Set the createdAt of thisAiScenarioinstance.- Parameters:
createdAt- Timestamp of resource creation
-
modifiedAt
Set the modifiedAt of thisAiScenarioinstance and return the same instance.- Parameters:
modifiedAt- Timestamp of latest resource modification- Returns:
- The same instance of this
AiScenarioclass
-
getModifiedAt
Timestamp of latest resource modification- Returns:
- modifiedAt The modifiedAt of this
AiScenarioinstance.
-
setModifiedAt
Set the modifiedAt of thisAiScenarioinstance.- Parameters:
modifiedAt- Timestamp of latest resource modification
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiScenario.- 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 thisAiScenarioinstance.- 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 thisAiScenarioinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiScenarioinstance. 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 newAiScenarioinstance with all required arguments.
-
toMap()instead.