Package com.sap.ai.sdk.core.model
Class AiExecutable
java.lang.Object
com.sap.ai.sdk.core.model.AiExecutable
An ML executable consists of a set of ML tasks, flows between tasks, dependencies between tasks,
models (or model versions?).
-
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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInputArtifactsItem(AiExecutableArtifact inputArtifactsItem) Add one inputArtifacts instance to thisAiExecutable.addLabelsItem(AiLabel labelsItem) Add one labels instance to thisAiExecutable.addOutputArtifactsItem(AiExecutableArtifact outputArtifactsItem) Add one outputArtifacts instance to thisAiExecutable.addParametersItem(AiExecutableParameter parametersItem) Add one parameters instance to thisAiExecutable.static AiExecutable.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiExecutableinstance with all required arguments.createdAt(OffsetDateTime createdAt) Set the createdAt of thisAiExecutableinstance and return the same instance.deployable(Boolean deployable) Set the deployable of thisAiExecutableinstance and return the same instance.description(String description) Set the description of thisAiExecutableinstance and return the same instance.booleanTimestamp of resource creationgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiExecutable.Description of the executablegetId()ID of the executableExecutable parametersArbitrary labels as meta informationTimestamp of latest resource modificationgetName()Name of the executableExecutable parametersExecutable parametersID of the scenarioVersion IDinthashCode()Set the id of thisAiExecutableinstance and return the same instance.inputArtifacts(List<AiExecutableArtifact> inputArtifacts) Set the inputArtifacts of thisAiExecutableinstance and return the same instance.Whether this executable is deployableSet the labels of thisAiExecutableinstance and return the same instance.modifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiExecutableinstance and return the same instance.Set the name of thisAiExecutableinstance and return the same instance.outputArtifacts(List<AiExecutableArtifact> outputArtifacts) Set the outputArtifacts of thisAiExecutableinstance and return the same instance.parameters(List<AiExecutableParameter> parameters) Set the parameters of thisAiExecutableinstance and return the same instance.scenarioId(String scenarioId) Set the scenarioId of thisAiExecutableinstance and return the same instance.voidsetCreatedAt(OffsetDateTime createdAt) Set the createdAt of thisAiExecutableinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiExecutableinstance.voidsetDeployable(Boolean deployable) Set the deployable of thisAiExecutableinstance.voidsetDescription(String description) Set the description of thisAiExecutableinstance.voidSet the id of thisAiExecutableinstance.voidsetInputArtifacts(List<AiExecutableArtifact> inputArtifacts) Set the inputArtifacts of thisAiExecutableinstance.voidSet the labels of thisAiExecutableinstance.voidsetModifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiExecutableinstance.voidSet the name of thisAiExecutableinstance.voidsetOutputArtifacts(List<AiExecutableArtifact> outputArtifacts) Set the outputArtifacts of thisAiExecutableinstance.voidsetParameters(List<AiExecutableParameter> parameters) Set the parameters of thisAiExecutableinstance.voidsetScenarioId(String scenarioId) Set the scenarioId of thisAiExecutableinstance.voidsetVersionId(String versionId) Set the versionId of thisAiExecutableinstance.toMap()Get the value of all properties of thisAiExecutableinstance including unrecognized properties.toString()Set the versionId of thisAiExecutableinstance and return the same instance.
-
Constructor Details
-
AiExecutable
protected AiExecutable()Default constructor for AiExecutable.
-
-
Method Details
-
labels
Set the labels of thisAiExecutableinstance and return the same instance.- Parameters:
labels- Arbitrary labels as meta information- Returns:
- The same instance of this
AiExecutableclass
-
addLabelsItem
Add one labels instance to thisAiExecutable.- Parameters:
labelsItem- The labels that should be added- Returns:
- The same instance of type
AiExecutable
-
getLabels
Arbitrary labels as meta information- Returns:
- labels The labels of this
AiExecutableinstance.
-
setLabels
Set the labels of thisAiExecutableinstance.- Parameters:
labels- Arbitrary labels as meta information
-
name
Set the name of thisAiExecutableinstance and return the same instance.- Parameters:
name- Name of the executable- Returns:
- The same instance of this
AiExecutableclass
-
getName
Name of the executable- Returns:
- name The name of this
AiExecutableinstance.
-
setName
Set the name of thisAiExecutableinstance.- Parameters:
name- Name of the executable
-
description
Set the description of thisAiExecutableinstance and return the same instance.- Parameters:
description- Description of the executable- Returns:
- The same instance of this
AiExecutableclass
-
getDescription
Description of the executable- Returns:
- description The description of this
AiExecutableinstance.
-
setDescription
Set the description of thisAiExecutableinstance.- Parameters:
description- Description of the executable
-
id
Set the id of thisAiExecutableinstance and return the same instance.- Parameters:
id- ID of the executable- Returns:
- The same instance of this
AiExecutableclass
-
getId
ID of the executable- Returns:
- id The id of this
AiExecutableinstance.
-
setId
Set the id of thisAiExecutableinstance.- Parameters:
id- ID of the executable
-
scenarioId
Set the scenarioId of thisAiExecutableinstance and return the same instance.- Parameters:
scenarioId- ID of the scenario- Returns:
- The same instance of this
AiExecutableclass
-
getScenarioId
ID of the scenario- Returns:
- scenarioId The scenarioId of this
AiExecutableinstance.
-
setScenarioId
Set the scenarioId of thisAiExecutableinstance.- Parameters:
scenarioId- ID of the scenario
-
versionId
Set the versionId of thisAiExecutableinstance and return the same instance.- Parameters:
versionId- Version ID- Returns:
- The same instance of this
AiExecutableclass
-
getVersionId
Version ID- Returns:
- versionId The versionId of this
AiExecutableinstance.
-
setVersionId
Set the versionId of thisAiExecutableinstance.- Parameters:
versionId- Version ID
-
parameters
Set the parameters of thisAiExecutableinstance and return the same instance.- Parameters:
parameters- Executable parameters- Returns:
- The same instance of this
AiExecutableclass
-
addParametersItem
Add one parameters instance to thisAiExecutable.- Parameters:
parametersItem- The parameters that should be added- Returns:
- The same instance of type
AiExecutable
-
getParameters
Executable parameters- Returns:
- parameters The parameters of this
AiExecutableinstance.
-
setParameters
Set the parameters of thisAiExecutableinstance.- Parameters:
parameters- Executable parameters
-
inputArtifacts
Set the inputArtifacts of thisAiExecutableinstance and return the same instance.- Parameters:
inputArtifacts- Executable parameters- Returns:
- The same instance of this
AiExecutableclass
-
addInputArtifactsItem
@Nonnull public AiExecutable addInputArtifactsItem(@Nonnull AiExecutableArtifact inputArtifactsItem) Add one inputArtifacts instance to thisAiExecutable.- Parameters:
inputArtifactsItem- The inputArtifacts that should be added- Returns:
- The same instance of type
AiExecutable
-
getInputArtifacts
Executable parameters- Returns:
- inputArtifacts The inputArtifacts of this
AiExecutableinstance.
-
setInputArtifacts
Set the inputArtifacts of thisAiExecutableinstance.- Parameters:
inputArtifacts- Executable parameters
-
outputArtifacts
Set the outputArtifacts of thisAiExecutableinstance and return the same instance.- Parameters:
outputArtifacts- Executable parameters- Returns:
- The same instance of this
AiExecutableclass
-
addOutputArtifactsItem
@Nonnull public AiExecutable addOutputArtifactsItem(@Nonnull AiExecutableArtifact outputArtifactsItem) Add one outputArtifacts instance to thisAiExecutable.- Parameters:
outputArtifactsItem- The outputArtifacts that should be added- Returns:
- The same instance of type
AiExecutable
-
getOutputArtifacts
Executable parameters- Returns:
- outputArtifacts The outputArtifacts of this
AiExecutableinstance.
-
setOutputArtifacts
Set the outputArtifacts of thisAiExecutableinstance.- Parameters:
outputArtifacts- Executable parameters
-
deployable
Set the deployable of thisAiExecutableinstance and return the same instance.- Parameters:
deployable- Whether this executable is deployable- Returns:
- The same instance of this
AiExecutableclass
-
isDeployable
Whether this executable is deployable- Returns:
- deployable The deployable of this
AiExecutableinstance.
-
setDeployable
Set the deployable of thisAiExecutableinstance.- Parameters:
deployable- Whether this executable is deployable
-
createdAt
Set the createdAt of thisAiExecutableinstance and return the same instance.- Parameters:
createdAt- Timestamp of resource creation- Returns:
- The same instance of this
AiExecutableclass
-
getCreatedAt
Timestamp of resource creation- Returns:
- createdAt The createdAt of this
AiExecutableinstance.
-
setCreatedAt
Set the createdAt of thisAiExecutableinstance.- Parameters:
createdAt- Timestamp of resource creation
-
modifiedAt
Set the modifiedAt of thisAiExecutableinstance and return the same instance.- Parameters:
modifiedAt- Timestamp of latest resource modification- Returns:
- The same instance of this
AiExecutableclass
-
getModifiedAt
Timestamp of latest resource modification- Returns:
- modifiedAt The modifiedAt of this
AiExecutableinstance.
-
setModifiedAt
Set the modifiedAt of thisAiExecutableinstance.- Parameters:
modifiedAt- Timestamp of latest resource modification
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiExecutable.- 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 thisAiExecutableinstance.- 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 thisAiExecutableinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiExecutableinstance. 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 newAiExecutableinstance with all required arguments.
-
toMap()instead.