Class Job.Builder

  • Enclosing class:
    Job

    public static class Job.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Job.Builder id​(String id)
        The OCID of the Migration Job.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public Job.Builder displayName​(String displayName)
        Name of the job.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • migrationId

        public Job.Builder migrationId​(String migrationId)
        The OCID of the Migration that this job belongs to.
        Parameters:
        migrationId - the value to set
        Returns:
        this builder
      • type

        public Job.Builder type​(JobTypes type)
        The job type.
        Parameters:
        type - the value to set
        Returns:
        this builder
      • timeCreated

        public Job.Builder timeCreated​(Date timeCreated)
        The time the Migration Job was created.

        An RFC3339 formatted datetime string

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

        public Job.Builder timeUpdated​(Date timeUpdated)
        The time the Migration Job was last updated.

        An RFC3339 formatted datetime string

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • unsupportedObjects

        public Job.Builder unsupportedObjects​(List<UnsupportedDatabaseObject> unsupportedObjects)
        Database objects not supported.
        Parameters:
        unsupportedObjects - the value to set
        Returns:
        this builder
      • lifecycleState

        public Job.Builder lifecycleState​(JobLifecycleStates lifecycleState)
        The current state of the migration job.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Job.Builder lifecycleDetails​(String lifecycleDetails)
        A message describing the current state in more detail.

        For example, can be used to provide actionable information for a resource in Failed state.

        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • parameterFileVersions

        public Job.Builder parameterFileVersions​(List<ParameterFileVersionSummary> parameterFileVersions)
        A list of parameter file versions that can be viewed or edited for the current job.
        Parameters:
        parameterFileVersions - the value to set
        Returns:
        this builder
      • freeformTags

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

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

        public Job.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

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

        public Job.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

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

        public Job build()