Class Execution.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.Execution.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Executionbuild()Execution.Buildercopy(Execution model)Execution.Builderdescription(String description)Description of the Execution status.Execution.Builderid(String id)Unique Id associated with the task execution.Execution.BuilderisRetryExceeded(Boolean isRetryExceeded)An attribute which tells if further retries are allowed for the task on failure.Execution.BuilderisRollbackTask(Boolean isRollbackTask)Is this a rollback task?Execution.Builderoutcome(Outcome outcome)Execution.BuilderprocessReferenceId(String processReferenceId)Unique process-reference identifier returned by the execution client.Execution.BuilderresourceId(String resourceId)Resource Identifier associated with the Work Request.Execution.Buildersequence(String sequence)The sequence of the task.Execution.Builderstatus(JobStatus status)Status of the TaskExecution.BuilderstepName(String stepName)Name of the step.Execution.Buildersubjects(List<String> subjects)Subjects that are tied to the task.Execution.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.Execution.BuildertargetId(String targetId)Target associated with the execution.Execution.BuildertaskRecordId(String taskRecordId)The OCID of taskRecord.Execution.BuildertimeEnded(Date timeEnded)The time the task ended.Execution.BuildertimeStarted(Date timeStarted)The time the task started.
-
-
-
Method Detail
-
id
public Execution.Builder id(String id)
Unique Id associated with the task execution.- Parameters:
id- the value to set- Returns:
- this builder
-
taskRecordId
public Execution.Builder taskRecordId(String taskRecordId)
The OCID of taskRecord.- Parameters:
taskRecordId- the value to set- Returns:
- this builder
-
stepName
public Execution.Builder stepName(String stepName)
Name of the step.- Parameters:
stepName- the value to set- Returns:
- this builder
-
processReferenceId
public Execution.Builder processReferenceId(String processReferenceId)
Unique process-reference identifier returned by the execution client.In some cases, this can be a runcommand OCID.
- Parameters:
processReferenceId- the value to set- Returns:
- this builder
-
sequence
public Execution.Builder sequence(String sequence)
The sequence of the task.- Parameters:
sequence- the value to set- Returns:
- this builder
-
subjects
public Execution.Builder subjects(List<String> subjects)
Subjects that are tied to the task.- Parameters:
subjects- the value to set- Returns:
- this builder
-
status
public Execution.Builder status(JobStatus status)
Status of the Task- Parameters:
status- the value to set- Returns:
- this builder
-
outcome
public Execution.Builder outcome(Outcome outcome)
-
targetId
public Execution.Builder targetId(String targetId)
Target associated with the execution.- Parameters:
targetId- the value to set- Returns:
- this builder
-
timeStarted
public Execution.Builder timeStarted(Date timeStarted)
The time the task started.An RFC3339 formatted datetime string.
- Parameters:
timeStarted- the value to set- Returns:
- this builder
-
timeEnded
public Execution.Builder timeEnded(Date timeEnded)
The time the task ended.An RFC3339 formatted datetime string.
- Parameters:
timeEnded- the value to set- Returns:
- this builder
-
isRollbackTask
public Execution.Builder isRollbackTask(Boolean isRollbackTask)
Is this a rollback task?- Parameters:
isRollbackTask- the value to set- Returns:
- this builder
-
description
public Execution.Builder description(String description)
Description of the Execution status.If there are any errors, this can also include a short error message.
- Parameters:
description- the value to set- Returns:
- this builder
-
resourceId
public Execution.Builder resourceId(String resourceId)
Resource Identifier associated with the Work Request.- Parameters:
resourceId- the value to set- Returns:
- this builder
-
isRetryExceeded
public Execution.Builder isRetryExceeded(Boolean isRetryExceeded)
An attribute which tells if further retries are allowed for the task on failure.- Parameters:
isRetryExceeded- the value to set- Returns:
- this builder
-
systemTags
public Execution.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public Execution build()
-
copy
public Execution.Builder copy(Execution model)
-
-