Package com.sap.ai.sdk.core.model
Class AiDeployment
java.lang.Object
com.sap.ai.sdk.core.model.AiDeployment
Detailed data about a deployment
-
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 enumGets or Sets lastOperationstatic enumDeployment target status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompletionTime(OffsetDateTime completionTime) Set the completionTime of thisAiDeploymentinstance and return the same instance.configurationId(String configurationId) Set the configurationId of thisAiDeploymentinstance and return the same instance.configurationName(String configurationName) Set the configurationName of thisAiDeploymentinstance and return the same instance.static AiDeployment.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiDeploymentinstance with all required arguments.createdAt(OffsetDateTime createdAt) Set the createdAt of thisAiDeploymentinstance and return the same instance.deploymentUrl(String deploymentUrl) Set the deploymentUrl of thisAiDeploymentinstance and return the same instance.details(AiDeploymentDetails details) Set the details of thisAiDeploymentinstance and return the same instance.booleanexecutableId(String executableId) Set the executableId of thisAiDeploymentinstance 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 theAiDeployment.Consumption URL of the deploymentGet detailsID of the executablegetId()ID of the deploymentGet lastOperationconfigurationId that was running before a PATCH operation has modified the configurationId of the deployment.Timestamp of latest resource modificationID of the scenarioTimestamp of job status changed to RUNNINGGet statusDeployment status messageTimestamp of job submittedDeployment target statusgetTtl()Time to live for a deployment.inthashCode()Set the id of thisAiDeploymentinstance and return the same instance.lastOperation(AiDeployment.LastOperationEnum lastOperation) Set the lastOperation of thisAiDeploymentinstance and return the same instance.latestRunningConfigurationId(String latestRunningConfigurationId) Set the latestRunningConfigurationId of thisAiDeploymentinstance and return the same instance.modifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiDeploymentinstance and return the same instance.scenarioId(String scenarioId) Set the scenarioId of thisAiDeploymentinstance and return the same instance.voidsetCompletionTime(OffsetDateTime completionTime) Set the completionTime of thisAiDeploymentinstance.voidsetConfigurationId(String configurationId) Set the configurationId of thisAiDeploymentinstance.voidsetConfigurationName(String configurationName) Set the configurationName of thisAiDeploymentinstance.voidsetCreatedAt(OffsetDateTime createdAt) Set the createdAt of thisAiDeploymentinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiDeploymentinstance.voidsetDeploymentUrl(String deploymentUrl) Set the deploymentUrl of thisAiDeploymentinstance.voidsetDetails(AiDeploymentDetails details) Set the details of thisAiDeploymentinstance.voidsetExecutableId(String executableId) Set the executableId of thisAiDeploymentinstance.voidSet the id of thisAiDeploymentinstance.voidsetLastOperation(AiDeployment.LastOperationEnum lastOperation) Set the lastOperation of thisAiDeploymentinstance.voidsetLatestRunningConfigurationId(String latestRunningConfigurationId) Set the latestRunningConfigurationId of thisAiDeploymentinstance.voidsetModifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiDeploymentinstance.voidsetScenarioId(String scenarioId) Set the scenarioId of thisAiDeploymentinstance.voidsetStartTime(OffsetDateTime startTime) Set the startTime of thisAiDeploymentinstance.voidsetStatus(AiDeploymentStatus status) Set the status of thisAiDeploymentinstance.voidsetStatusMessage(String statusMessage) Set the statusMessage of thisAiDeploymentinstance.voidsetSubmissionTime(OffsetDateTime submissionTime) Set the submissionTime of thisAiDeploymentinstance.voidsetTargetStatus(AiDeployment.TargetStatusEnum targetStatus) Set the targetStatus of thisAiDeploymentinstance.voidSet the ttl of thisAiDeploymentinstance.startTime(OffsetDateTime startTime) Set the startTime of thisAiDeploymentinstance and return the same instance.status(AiDeploymentStatus status) Set the status of thisAiDeploymentinstance and return the same instance.statusMessage(String statusMessage) Set the statusMessage of thisAiDeploymentinstance and return the same instance.submissionTime(OffsetDateTime submissionTime) Set the submissionTime of thisAiDeploymentinstance and return the same instance.targetStatus(AiDeployment.TargetStatusEnum targetStatus) Set the targetStatus of thisAiDeploymentinstance and return the same instance.toMap()Get the value of all properties of thisAiDeploymentinstance including unrecognized properties.toString()Set the ttl of thisAiDeploymentinstance and return the same instance.
-
Constructor Details
-
AiDeployment
protected AiDeployment()Default constructor for AiDeployment.
-
-
Method Details
-
id
Set the id of thisAiDeploymentinstance and return the same instance.- Parameters:
id- ID of the deployment- Returns:
- The same instance of this
AiDeploymentclass
-
getId
ID of the deployment- Returns:
- id The id of this
AiDeploymentinstance.
-
setId
Set the id of thisAiDeploymentinstance.- Parameters:
id- ID of the deployment
-
deploymentUrl
Set the deploymentUrl of thisAiDeploymentinstance and return the same instance.- Parameters:
deploymentUrl- Consumption URL of the deployment- Returns:
- The same instance of this
AiDeploymentclass
-
getDeploymentUrl
Consumption URL of the deployment- Returns:
- deploymentUrl The deploymentUrl of this
AiDeploymentinstance.
-
setDeploymentUrl
Set the deploymentUrl of thisAiDeploymentinstance.- Parameters:
deploymentUrl- Consumption URL of the deployment
-
configurationId
Set the configurationId of thisAiDeploymentinstance and return the same instance.- Parameters:
configurationId- ID of the configuration- Returns:
- The same instance of this
AiDeploymentclass
-
getConfigurationId
ID of the configuration- Returns:
- configurationId The configurationId of this
AiDeploymentinstance.
-
setConfigurationId
Set the configurationId of thisAiDeploymentinstance.- Parameters:
configurationId- ID of the configuration
-
configurationName
Set the configurationName of thisAiDeploymentinstance and return the same instance.- Parameters:
configurationName- Name of the configuration- Returns:
- The same instance of this
AiDeploymentclass
-
getConfigurationName
Name of the configuration- Returns:
- configurationName The configurationName of this
AiDeploymentinstance.
-
setConfigurationName
Set the configurationName of thisAiDeploymentinstance.- Parameters:
configurationName- Name of the configuration
-
executableId
Set the executableId of thisAiDeploymentinstance and return the same instance.- Parameters:
executableId- ID of the executable- Returns:
- The same instance of this
AiDeploymentclass
-
getExecutableId
ID of the executable- Returns:
- executableId The executableId of this
AiDeploymentinstance.
-
setExecutableId
Set the executableId of thisAiDeploymentinstance.- Parameters:
executableId- ID of the executable
-
scenarioId
Set the scenarioId of thisAiDeploymentinstance and return the same instance.- Parameters:
scenarioId- ID of the scenario- Returns:
- The same instance of this
AiDeploymentclass
-
getScenarioId
ID of the scenario- Returns:
- scenarioId The scenarioId of this
AiDeploymentinstance.
-
setScenarioId
Set the scenarioId of thisAiDeploymentinstance.- Parameters:
scenarioId- ID of the scenario
-
status
Set the status of thisAiDeploymentinstance and return the same instance.- Parameters:
status- The status of thisAiDeployment- Returns:
- The same instance of this
AiDeploymentclass
-
getStatus
Get status- Returns:
- status The status of this
AiDeploymentinstance.
-
setStatus
Set the status of thisAiDeploymentinstance.- Parameters:
status- The status of thisAiDeployment
-
statusMessage
Set the statusMessage of thisAiDeploymentinstance and return the same instance.- Parameters:
statusMessage- Deployment status message- Returns:
- The same instance of this
AiDeploymentclass
-
getStatusMessage
Deployment status message- Returns:
- statusMessage The statusMessage of this
AiDeploymentinstance.
-
setStatusMessage
Set the statusMessage of thisAiDeploymentinstance.- Parameters:
statusMessage- Deployment status message
-
targetStatus
Set the targetStatus of thisAiDeploymentinstance and return the same instance.- Parameters:
targetStatus- Deployment target status- Returns:
- The same instance of this
AiDeploymentclass
-
getTargetStatus
Deployment target status- Returns:
- targetStatus The targetStatus of this
AiDeploymentinstance.
-
setTargetStatus
Set the targetStatus of thisAiDeploymentinstance.- Parameters:
targetStatus- Deployment target status
-
lastOperation
Set the lastOperation of thisAiDeploymentinstance and return the same instance.- Parameters:
lastOperation- The lastOperation of thisAiDeployment- Returns:
- The same instance of this
AiDeploymentclass
-
getLastOperation
Get lastOperation- Returns:
- lastOperation The lastOperation of this
AiDeploymentinstance.
-
setLastOperation
Set the lastOperation of thisAiDeploymentinstance.- Parameters:
lastOperation- The lastOperation of thisAiDeployment
-
latestRunningConfigurationId
@Nonnull public AiDeployment latestRunningConfigurationId(@Nullable String latestRunningConfigurationId) Set the latestRunningConfigurationId of thisAiDeploymentinstance and return the same instance.- Parameters:
latestRunningConfigurationId- configurationId that was running before a PATCH operation has modified the configurationId of the deployment. This can be used for a manual rollback in case the new configurationId results in a DEAD deployment- Returns:
- The same instance of this
AiDeploymentclass
-
getLatestRunningConfigurationId
configurationId that was running before a PATCH operation has modified the configurationId of the deployment. This can be used for a manual rollback in case the new configurationId results in a DEAD deployment- Returns:
- latestRunningConfigurationId The latestRunningConfigurationId of this
AiDeploymentinstance.
-
setLatestRunningConfigurationId
Set the latestRunningConfigurationId of thisAiDeploymentinstance.- Parameters:
latestRunningConfigurationId- configurationId that was running before a PATCH operation has modified the configurationId of the deployment. This can be used for a manual rollback in case the new configurationId results in a DEAD deployment
-
ttl
Set the ttl of thisAiDeploymentinstance and return the same instance.- Parameters:
ttl- Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D))- Returns:
- The same instance of this
AiDeploymentclass
-
getTtl
Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D))- Returns:
- ttl The ttl of this
AiDeploymentinstance.
-
setTtl
Set the ttl of thisAiDeploymentinstance.- Parameters:
ttl- Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D))
-
details
Set the details of thisAiDeploymentinstance and return the same instance.- Parameters:
details- The details of thisAiDeployment- Returns:
- The same instance of this
AiDeploymentclass
-
getDetails
Get details- Returns:
- details The details of this
AiDeploymentinstance.
-
setDetails
Set the details of thisAiDeploymentinstance.- Parameters:
details- The details of thisAiDeployment
-
createdAt
Set the createdAt of thisAiDeploymentinstance and return the same instance.- Parameters:
createdAt- Timestamp of resource creation- Returns:
- The same instance of this
AiDeploymentclass
-
getCreatedAt
Timestamp of resource creation- Returns:
- createdAt The createdAt of this
AiDeploymentinstance.
-
setCreatedAt
Set the createdAt of thisAiDeploymentinstance.- Parameters:
createdAt- Timestamp of resource creation
-
modifiedAt
Set the modifiedAt of thisAiDeploymentinstance and return the same instance.- Parameters:
modifiedAt- Timestamp of latest resource modification- Returns:
- The same instance of this
AiDeploymentclass
-
getModifiedAt
Timestamp of latest resource modification- Returns:
- modifiedAt The modifiedAt of this
AiDeploymentinstance.
-
setModifiedAt
Set the modifiedAt of thisAiDeploymentinstance.- Parameters:
modifiedAt- Timestamp of latest resource modification
-
submissionTime
Set the submissionTime of thisAiDeploymentinstance and return the same instance.- Parameters:
submissionTime- Timestamp of job submitted- Returns:
- The same instance of this
AiDeploymentclass
-
getSubmissionTime
Timestamp of job submitted- Returns:
- submissionTime The submissionTime of this
AiDeploymentinstance.
-
setSubmissionTime
Set the submissionTime of thisAiDeploymentinstance.- Parameters:
submissionTime- Timestamp of job submitted
-
startTime
Set the startTime of thisAiDeploymentinstance and return the same instance.- Parameters:
startTime- Timestamp of job status changed to RUNNING- Returns:
- The same instance of this
AiDeploymentclass
-
getStartTime
Timestamp of job status changed to RUNNING- Returns:
- startTime The startTime of this
AiDeploymentinstance.
-
setStartTime
Set the startTime of thisAiDeploymentinstance.- Parameters:
startTime- Timestamp of job status changed to RUNNING
-
completionTime
Set the completionTime of thisAiDeploymentinstance and return the same instance.- Parameters:
completionTime- Timestamp of job status changed to COMPLETED/DEAD/STOPPED- Returns:
- The same instance of this
AiDeploymentclass
-
getCompletionTime
Timestamp of job status changed to COMPLETED/DEAD/STOPPED- Returns:
- completionTime The completionTime of this
AiDeploymentinstance.
-
setCompletionTime
Set the completionTime of thisAiDeploymentinstance.- Parameters:
completionTime- Timestamp of job status changed to COMPLETED/DEAD/STOPPED
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiDeployment.- 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 thisAiDeploymentinstance.- 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 thisAiDeploymentinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiDeploymentinstance. 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 newAiDeploymentinstance with all required arguments.
-
toMap()instead.