Class JobSummary.Builder

  • Enclosing class:
    JobSummary

    public static class JobSummary.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • stackId

        public JobSummary.Builder stackId​(String stackId)
        The OCID of the stack that is associated with the specified job.
        Parameters:
        stackId - the value to set
        Returns:
        this builder
      • compartmentId

        public JobSummary.Builder compartmentId​(String compartmentId)
        The OCID of the compartment where the stack of the associated job resides.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public JobSummary.Builder displayName​(String displayName)
        A user-friendly name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • operation

        public JobSummary.Builder operation​(Job.Operation operation)
        The type of job executing
        Parameters:
        operation - the value to set
        Returns:
        this builder
      • resolvedPlanJobId

        public JobSummary.Builder resolvedPlanJobId​(String resolvedPlanJobId)
        Deprecated.

        Use the property executionPlanJobId in jobOperationDetails instead. The plan job OCID that was used (if this was an apply job and was not auto-approved).

        Parameters:
        resolvedPlanJobId - the value to set
        Returns:
        this builder
      • timeCreated

        public JobSummary.Builder timeCreated​(Date timeCreated)
        The date and time the job was created.

        Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeFinished

        public JobSummary.Builder timeFinished​(Date timeFinished)
        The date and time the job succeeded or failed.

        Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z

        Parameters:
        timeFinished - the value to set
        Returns:
        this builder
      • lifecycleState

        public JobSummary.Builder lifecycleState​(Job.LifecycleState lifecycleState)
        Current state of the specified job.

        For more information about job lifecycle states in Resource Manager, see Key Concepts.

        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • freeformTags

        public JobSummary.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags associated with the resource.

        Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public JobSummary.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”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • systemTags

        public JobSummary.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        The system tags associated with this resource, if any.

        The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

        Parameters:
        systemTags - the value to set
        Returns:
        this builder