Constructor and Description |
---|
Builder() |
public SqlJob.Builder id(String id)
public SqlJob.Builder compartmentId(String compartmentId)
public SqlJob.Builder name(String name)
public SqlJob.Builder description(String description)
public SqlJob.Builder managedDatabaseGroupId(String managedDatabaseGroupId)
public SqlJob.Builder managedDatabaseId(String managedDatabaseId)
public SqlJob.Builder managedDatabasesDetails(List<JobDatabase> managedDatabasesDetails)
public SqlJob.Builder databaseSubType(DatabaseSubType databaseSubType)
public SqlJob.Builder scheduleType(Job.ScheduleType scheduleType)
public SqlJob.Builder lifecycleState(Job.LifecycleState lifecycleState)
public SqlJob.Builder timeout(String timeout)
public SqlJob.Builder resultLocation(JobExecutionResultLocation resultLocation)
public SqlJob.Builder scheduleDetails(JobScheduleDetails scheduleDetails)
public SqlJob.Builder submissionErrorMessage(String submissionErrorMessage)
public SqlJob.Builder timeCreated(Date timeCreated)
public SqlJob.Builder timeUpdated(Date timeUpdated)
public SqlJob.Builder sqlType(SqlJob.SqlType sqlType)
The type of SQL. This is a mandatory field for the EXECUTE_SQL operationType.
sqlType
- the value to setpublic SqlJob.Builder sqlText(String sqlText)
The SQL text to be executed in the job. This is a mandatory field for the EXECUTE_SQL operationType.
sqlText
- the value to setpublic SqlJob.Builder inBinds(JobInBindsDetails inBinds)
public SqlJob.Builder outBinds(JobOutBindsDetails outBinds)
public SqlJob.Builder operationType(SqlJob.OperationType operationType)
The SQL operation type.
operationType
- the value to setpublic SqlJob.Builder userName(String userName)
The database user name used to execute the SQL job. If the job is being executed on a Managed Database Group, then the user name should exist on all the databases in the group with the same password.
userName
- the value to setpublic SqlJob.Builder role(SqlJob.Role role)
The role of the database user. Indicates whether the database user is a normal user or sysdba.
role
- the value to setpublic SqlJob.Builder namedCredentialId(String namedCredentialId)
The OCID of the Named Credentials containing password secret.
namedCredentialId
- the value to setpublic SqlJob.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined
name, type, or namespace. For more information, see Resource
Tags. Example:
{"Department": "Finance"}
freeformTags
- the value to setpublic SqlJob.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For
more information, see Resource
Tags. Example:
{"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic SqlJob.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic SqlJob build()
public SqlJob.Builder copy(SqlJob model)
Copyright © 2016–2024. All rights reserved.