Class JobExecution.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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
      • 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
      • 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
      • 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