Class Job.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemigration.model.Job.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Job
build()
Job.Builder
copy(Job model)
Job.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Job.Builder
displayName(String displayName)
Name of the job.Job.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Job.Builder
id(String id)
The OCID of the Migration Job.Job.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.Job.Builder
lifecycleState(JobLifecycleStates lifecycleState)
The current state of the migration job.Job.Builder
migrationId(String migrationId)
The OCID of the Migration that this job belongs to.Job.Builder
parameterFileVersions(List<ParameterFileVersionSummary> parameterFileVersions)
A list of parameter file versions that can be viewed or edited for the current job.Job.Builder
progress(MigrationJobProgressResource progress)
Job.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.Job.Builder
timeCreated(Date timeCreated)
The time the Migration Job was created.Job.Builder
timeUpdated(Date timeUpdated)
The time the Migration Job was last updated.Job.Builder
type(JobTypes type)
The job type.Job.Builder
unsupportedObjects(List<UnsupportedDatabaseObject> unsupportedObjects)
Database objects not supported.
-
-
-
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
-
progress
public Job.Builder progress(MigrationJobProgressResource progress)
-
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()
-
copy
public Job.Builder copy(Job model)
-
-