Class JobExecution.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.model.JobExecution.Builder
-
- Enclosing class:
- JobExecution
public static class JobExecution.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobExecution
build()
JobExecution.Builder
compartmentId(String compartmentId)
The OCID of the compartment in which the parent job resides.JobExecution.Builder
copy(JobExecution model)
JobExecution.Builder
databaseSubType(DatabaseSubType databaseSubType)
The subtype of the Oracle Database.JobExecution.Builder
databaseType(DatabaseType databaseType)
The type of Oracle Database installation.JobExecution.Builder
deploymentType(DeploymentType deploymentType)
A list of the supported infrastructure that can be used to deploy the database.JobExecution.Builder
errorMessage(String errorMessage)
The error message that is returned if the job execution fails.JobExecution.Builder
id(String id)
The identifier of the job execution.JobExecution.Builder
inBinds(JobInBindsDetails inBinds)
JobExecution.Builder
isCluster(Boolean isCluster)
Indicates whether the Oracle Database is part of a cluster.JobExecution.Builder
jobId(String jobId)
The OCID of the parent job.JobExecution.Builder
jobName(String jobName)
The name of the parent job.JobExecution.Builder
jobRunId(String jobRunId)
The identifier of the associated job run.JobExecution.Builder
managedDatabaseGroupId(String managedDatabaseGroupId)
The OCID of the Managed Database Group where the parent job has to be executed.JobExecution.Builder
managedDatabaseId(String managedDatabaseId)
The OCID of the Managed Database associated with the job execution.JobExecution.Builder
managedDatabaseName(String managedDatabaseName)
The name of the Managed Database associated with the job execution.JobExecution.Builder
name(String name)
The name of the job execution.JobExecution.Builder
outBinds(JobOutBindsDetails outBinds)
JobExecution.Builder
resultDetails(JobExecutionResultDetails resultDetails)
JobExecution.Builder
scheduleDetails(JobScheduleDetails scheduleDetails)
JobExecution.Builder
sqlText(String sqlText)
The SQL text executed as part of the job.JobExecution.Builder
status(JobExecution.Status status)
The status of the job execution.JobExecution.Builder
timeCompleted(Date timeCompleted)
The date and time when the job execution completed.JobExecution.Builder
timeCreated(Date timeCreated)
The date and time when the job execution was created.JobExecution.Builder
userName(String userName)
The database user name used to execute the SQL job.JobExecution.Builder
workloadType(WorkloadType workloadType)
The workload type of the Autonomous Database.
-
-
-
Method Detail
-
id
public JobExecution.Builder id(String id)
The identifier of the job execution.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public JobExecution.Builder name(String name)
The name of the job execution.- Parameters:
name
- the value to set- Returns:
- this builder
-
compartmentId
public JobExecution.Builder compartmentId(String compartmentId)
The OCID of the compartment in which the parent job resides.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
managedDatabaseGroupId
public JobExecution.Builder managedDatabaseGroupId(String managedDatabaseGroupId)
The OCID of the Managed Database Group where the parent job has to be executed.- Parameters:
managedDatabaseGroupId
- the value to set- Returns:
- this builder
-
managedDatabaseId
public JobExecution.Builder managedDatabaseId(String managedDatabaseId)
The OCID of the Managed Database associated with the job execution.- Parameters:
managedDatabaseId
- the value to set- Returns:
- this builder
-
managedDatabaseName
public JobExecution.Builder managedDatabaseName(String managedDatabaseName)
The name of the Managed Database associated with the job execution.- Parameters:
managedDatabaseName
- the value to set- Returns:
- this builder
-
databaseType
public JobExecution.Builder databaseType(DatabaseType databaseType)
The type of Oracle Database installation.- Parameters:
databaseType
- the value to set- Returns:
- this builder
-
databaseSubType
public JobExecution.Builder databaseSubType(DatabaseSubType databaseSubType)
The subtype of the Oracle Database.Indicates whether the database is a Container Database, Pluggable Database, or a Non-container Database.
- Parameters:
databaseSubType
- the value to set- Returns:
- this builder
-
deploymentType
public JobExecution.Builder deploymentType(DeploymentType deploymentType)
A list of the supported infrastructure that can be used to deploy the database.- Parameters:
deploymentType
- the value to set- Returns:
- this builder
-
isCluster
public JobExecution.Builder isCluster(Boolean isCluster)
Indicates whether the Oracle Database is part of a cluster.- Parameters:
isCluster
- the value to set- Returns:
- this builder
-
workloadType
public JobExecution.Builder workloadType(WorkloadType workloadType)
The workload type of the Autonomous Database.- Parameters:
workloadType
- the value to set- Returns:
- this builder
-
jobId
public JobExecution.Builder jobId(String jobId)
The OCID of the parent job.- Parameters:
jobId
- the value to set- Returns:
- this builder
-
jobName
public JobExecution.Builder jobName(String jobName)
The name of the parent job.- Parameters:
jobName
- the value to set- Returns:
- this builder
-
jobRunId
public JobExecution.Builder jobRunId(String jobRunId)
The identifier of the associated job run.- Parameters:
jobRunId
- the value to set- Returns:
- this builder
-
status
public JobExecution.Builder status(JobExecution.Status status)
The status of the job execution.- Parameters:
status
- the value to set- Returns:
- this builder
-
errorMessage
public JobExecution.Builder errorMessage(String errorMessage)
The error message that is returned if the job execution fails.Null is returned if the job is still running or if the job execution is successful.
- Parameters:
errorMessage
- the value to set- Returns:
- this builder
-
resultDetails
public JobExecution.Builder resultDetails(JobExecutionResultDetails resultDetails)
-
timeCreated
public JobExecution.Builder timeCreated(Date timeCreated)
The date and time when the job execution was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeCompleted
public JobExecution.Builder timeCompleted(Date timeCompleted)
The date and time when the job execution completed.- Parameters:
timeCompleted
- the value to set- Returns:
- this builder
-
userName
public JobExecution.Builder userName(String userName)
The database user name used to execute the SQL job.- Parameters:
userName
- the value to set- Returns:
- this builder
-
sqlText
public JobExecution.Builder sqlText(String sqlText)
The SQL text executed as part of the job.- Parameters:
sqlText
- the value to set- Returns:
- this builder
-
inBinds
public JobExecution.Builder inBinds(JobInBindsDetails inBinds)
-
outBinds
public JobExecution.Builder outBinds(JobOutBindsDetails outBinds)
-
scheduleDetails
public JobExecution.Builder scheduleDetails(JobScheduleDetails scheduleDetails)
-
build
public JobExecution build()
-
copy
public JobExecution.Builder copy(JobExecution model)
-
-