Package com.sap.ai.sdk.core.model
Class AiExecution
java.lang.Object
com.sap.ai.sdk.core.model.AiExecution
Execution that may generate artifacts
-
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 enumTarget status of the execution -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOutputArtifactsItem(AiArtifact outputArtifactsItem) Add one outputArtifacts instance to thisAiExecution.completionTime(OffsetDateTime completionTime) Set the completionTime of thisAiExecutioninstance and return the same instance.configurationId(String configurationId) Set the configurationId of thisAiExecutioninstance and return the same instance.configurationName(String configurationName) Set the configurationName of thisAiExecutioninstance and return the same instance.static AiExecution.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiExecutioninstance with all required arguments.createdAt(OffsetDateTime createdAt) Set the createdAt of thisAiExecutioninstance and return the same instance.booleanexecutableId(String executableId) Set the executableId of thisAiExecutioninstance and return the same instance.executionScheduleId(String executionScheduleId) Set the executionScheduleId of thisAiExecutioninstance and return the same instance.Timestamp of job status changed to COMPLETED/DEAD/STOPPEDID of the configurationName of the configurationTimestamp of resource creationgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiExecution.ID of the executableID of the execution schedulegetId()ID of the executionTimestamp of latest resource modificationGet outputArtifactsID of the scenarioTimestamp of job status changed to RUNNINGGet statusExecution status messageTimestamp of job submittedTarget status of the executioninthashCode()Set the id of thisAiExecutioninstance and return the same instance.modifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiExecutioninstance and return the same instance.outputArtifacts(List<AiArtifact> outputArtifacts) Set the outputArtifacts of thisAiExecutioninstance and return the same instance.scenarioId(String scenarioId) Set the scenarioId of thisAiExecutioninstance and return the same instance.voidsetCompletionTime(OffsetDateTime completionTime) Set the completionTime of thisAiExecutioninstance.voidsetConfigurationId(String configurationId) Set the configurationId of thisAiExecutioninstance.voidsetConfigurationName(String configurationName) Set the configurationName of thisAiExecutioninstance.voidsetCreatedAt(OffsetDateTime createdAt) Set the createdAt of thisAiExecutioninstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiExecutioninstance.voidsetExecutableId(String executableId) Set the executableId of thisAiExecutioninstance.voidsetExecutionScheduleId(String executionScheduleId) Set the executionScheduleId of thisAiExecutioninstance.voidSet the id of thisAiExecutioninstance.voidsetModifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiExecutioninstance.voidsetOutputArtifacts(List<AiArtifact> outputArtifacts) Set the outputArtifacts of thisAiExecutioninstance.voidsetScenarioId(String scenarioId) Set the scenarioId of thisAiExecutioninstance.voidsetStartTime(OffsetDateTime startTime) Set the startTime of thisAiExecutioninstance.voidsetStatus(AiExecutionStatus status) Set the status of thisAiExecutioninstance.voidsetStatusMessage(String statusMessage) Set the statusMessage of thisAiExecutioninstance.voidsetSubmissionTime(OffsetDateTime submissionTime) Set the submissionTime of thisAiExecutioninstance.voidsetTargetStatus(AiExecution.TargetStatusEnum targetStatus) Set the targetStatus of thisAiExecutioninstance.startTime(OffsetDateTime startTime) Set the startTime of thisAiExecutioninstance and return the same instance.status(AiExecutionStatus status) Set the status of thisAiExecutioninstance and return the same instance.statusMessage(String statusMessage) Set the statusMessage of thisAiExecutioninstance and return the same instance.submissionTime(OffsetDateTime submissionTime) Set the submissionTime of thisAiExecutioninstance and return the same instance.targetStatus(AiExecution.TargetStatusEnum targetStatus) Set the targetStatus of thisAiExecutioninstance and return the same instance.toMap()Get the value of all properties of thisAiExecutioninstance including unrecognized properties.toString()
-
Constructor Details
-
AiExecution
protected AiExecution()Default constructor for AiExecution.
-
-
Method Details
-
id
Set the id of thisAiExecutioninstance and return the same instance.- Parameters:
id- ID of the execution- Returns:
- The same instance of this
AiExecutionclass
-
getId
ID of the execution- Returns:
- id The id of this
AiExecutioninstance.
-
setId
Set the id of thisAiExecutioninstance.- Parameters:
id- ID of the execution
-
configurationId
Set the configurationId of thisAiExecutioninstance and return the same instance.- Parameters:
configurationId- ID of the configuration- Returns:
- The same instance of this
AiExecutionclass
-
getConfigurationId
ID of the configuration- Returns:
- configurationId The configurationId of this
AiExecutioninstance.
-
setConfigurationId
Set the configurationId of thisAiExecutioninstance.- Parameters:
configurationId- ID of the configuration
-
configurationName
Set the configurationName of thisAiExecutioninstance and return the same instance.- Parameters:
configurationName- Name of the configuration- Returns:
- The same instance of this
AiExecutionclass
-
getConfigurationName
Name of the configuration- Returns:
- configurationName The configurationName of this
AiExecutioninstance.
-
setConfigurationName
Set the configurationName of thisAiExecutioninstance.- Parameters:
configurationName- Name of the configuration
-
executableId
Set the executableId of thisAiExecutioninstance and return the same instance.- Parameters:
executableId- ID of the executable- Returns:
- The same instance of this
AiExecutionclass
-
getExecutableId
ID of the executable- Returns:
- executableId The executableId of this
AiExecutioninstance.
-
setExecutableId
Set the executableId of thisAiExecutioninstance.- Parameters:
executableId- ID of the executable
-
scenarioId
Set the scenarioId of thisAiExecutioninstance and return the same instance.- Parameters:
scenarioId- ID of the scenario- Returns:
- The same instance of this
AiExecutionclass
-
getScenarioId
ID of the scenario- Returns:
- scenarioId The scenarioId of this
AiExecutioninstance.
-
setScenarioId
Set the scenarioId of thisAiExecutioninstance.- Parameters:
scenarioId- ID of the scenario
-
targetStatus
Set the targetStatus of thisAiExecutioninstance and return the same instance.- Parameters:
targetStatus- Target status of the execution- Returns:
- The same instance of this
AiExecutionclass
-
getTargetStatus
Target status of the execution- Returns:
- targetStatus The targetStatus of this
AiExecutioninstance.
-
setTargetStatus
Set the targetStatus of thisAiExecutioninstance.- Parameters:
targetStatus- Target status of the execution
-
status
Set the status of thisAiExecutioninstance and return the same instance.- Parameters:
status- The status of thisAiExecution- Returns:
- The same instance of this
AiExecutionclass
-
getStatus
Get status- Returns:
- status The status of this
AiExecutioninstance.
-
setStatus
Set the status of thisAiExecutioninstance.- Parameters:
status- The status of thisAiExecution
-
statusMessage
Set the statusMessage of thisAiExecutioninstance and return the same instance.- Parameters:
statusMessage- Execution status message- Returns:
- The same instance of this
AiExecutionclass
-
getStatusMessage
Execution status message- Returns:
- statusMessage The statusMessage of this
AiExecutioninstance.
-
setStatusMessage
Set the statusMessage of thisAiExecutioninstance.- Parameters:
statusMessage- Execution status message
-
outputArtifacts
Set the outputArtifacts of thisAiExecutioninstance and return the same instance.- Parameters:
outputArtifacts- The outputArtifacts of thisAiExecution- Returns:
- The same instance of this
AiExecutionclass
-
addOutputArtifactsItem
Add one outputArtifacts instance to thisAiExecution.- Parameters:
outputArtifactsItem- The outputArtifacts that should be added- Returns:
- The same instance of type
AiExecution
-
getOutputArtifacts
Get outputArtifacts- Returns:
- outputArtifacts The outputArtifacts of this
AiExecutioninstance.
-
setOutputArtifacts
Set the outputArtifacts of thisAiExecutioninstance.- Parameters:
outputArtifacts- The outputArtifacts of thisAiExecution
-
executionScheduleId
Set the executionScheduleId of thisAiExecutioninstance and return the same instance.- Parameters:
executionScheduleId- ID of the execution schedule- Returns:
- The same instance of this
AiExecutionclass
-
getExecutionScheduleId
ID of the execution schedule- Returns:
- executionScheduleId The executionScheduleId of this
AiExecutioninstance.
-
setExecutionScheduleId
Set the executionScheduleId of thisAiExecutioninstance.- Parameters:
executionScheduleId- ID of the execution schedule
-
createdAt
Set the createdAt of thisAiExecutioninstance and return the same instance.- Parameters:
createdAt- Timestamp of resource creation- Returns:
- The same instance of this
AiExecutionclass
-
getCreatedAt
Timestamp of resource creation- Returns:
- createdAt The createdAt of this
AiExecutioninstance.
-
setCreatedAt
Set the createdAt of thisAiExecutioninstance.- Parameters:
createdAt- Timestamp of resource creation
-
modifiedAt
Set the modifiedAt of thisAiExecutioninstance and return the same instance.- Parameters:
modifiedAt- Timestamp of latest resource modification- Returns:
- The same instance of this
AiExecutionclass
-
getModifiedAt
Timestamp of latest resource modification- Returns:
- modifiedAt The modifiedAt of this
AiExecutioninstance.
-
setModifiedAt
Set the modifiedAt of thisAiExecutioninstance.- Parameters:
modifiedAt- Timestamp of latest resource modification
-
submissionTime
Set the submissionTime of thisAiExecutioninstance and return the same instance.- Parameters:
submissionTime- Timestamp of job submitted- Returns:
- The same instance of this
AiExecutionclass
-
getSubmissionTime
Timestamp of job submitted- Returns:
- submissionTime The submissionTime of this
AiExecutioninstance.
-
setSubmissionTime
Set the submissionTime of thisAiExecutioninstance.- Parameters:
submissionTime- Timestamp of job submitted
-
startTime
Set the startTime of thisAiExecutioninstance and return the same instance.- Parameters:
startTime- Timestamp of job status changed to RUNNING- Returns:
- The same instance of this
AiExecutionclass
-
getStartTime
Timestamp of job status changed to RUNNING- Returns:
- startTime The startTime of this
AiExecutioninstance.
-
setStartTime
Set the startTime of thisAiExecutioninstance.- Parameters:
startTime- Timestamp of job status changed to RUNNING
-
completionTime
Set the completionTime of thisAiExecutioninstance and return the same instance.- Parameters:
completionTime- Timestamp of job status changed to COMPLETED/DEAD/STOPPED- Returns:
- The same instance of this
AiExecutionclass
-
getCompletionTime
Timestamp of job status changed to COMPLETED/DEAD/STOPPED- Returns:
- completionTime The completionTime of this
AiExecutioninstance.
-
setCompletionTime
Set the completionTime of thisAiExecutioninstance.- Parameters:
completionTime- Timestamp of job status changed to COMPLETED/DEAD/STOPPED
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiExecution.- 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 thisAiExecutioninstance.- 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 thisAiExecutioninstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiExecutioninstance. 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 newAiExecutioninstance with all required arguments.
-
toMap()instead.