Class Job.Builder
- java.lang.Object
- 
- com.oracle.bmc.resourcemanager.model.Job.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Job.BuilderapplyJobPlanResolution(ApplyJobPlanResolution applyJobPlanResolution)Jobbuild()Job.BuildercancellationDetails(CancellationDetails cancellationDetails)Job.BuildercompartmentId(String compartmentId)The OCID of the compartment in which the job’s associated stack resides.Job.BuilderconfigSource(ConfigSourceRecord configSource)Job.Buildercopy(Job model)Job.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Job.BuilderdisplayName(String displayName)A user-friendly name.Job.BuilderfailureDetails(FailureDetails failureDetails)Job.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags associated with the resource.Job.Builderid(String id)The OCID of the job.Job.BuilderisProviderUpgradeRequired(Boolean isProviderUpgradeRequired)Specifies whether or not to upgrade provider versions.Job.BuilderisThirdPartyProviderExperienceEnabled(Boolean isThirdPartyProviderExperienceEnabled)When true, the stack sources third-party Terraform providers from Terraform Registry and allowscustomTerraformProvider.Job.BuilderjobOperationDetails(JobOperationDetails jobOperationDetails)Job.BuilderlifecycleState(Job.LifecycleState lifecycleState)Current state of the specified job.Job.Builderoperation(Job.Operation operation)The type of job executing.Job.BuilderresolvedPlanJobId(String resolvedPlanJobId)Deprecated.Job.BuilderstackId(String stackId)The OCID of the stack that is associated with the job.Job.BuildersystemTags(Map<String,Map<String,Object>> systemTags)The system tags associated with this resource, if any.Job.BuildertimeCreated(Date timeCreated)The date and time when the job was created.Job.BuildertimeFinished(Date timeFinished)The date and time when the job stopped running, irrespective of whether the job ran successfully.Job.Buildervariables(Map<String,String> variables)Terraform variables associated with this resource.Job.BuilderworkingDirectory(String workingDirectory)File path to the directory to use for running Terraform.
 
- 
- 
- 
Method Detail- 
idpublic Job.Builder id(String id) The OCID of the job.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
stackIdpublic Job.Builder stackId(String stackId) The OCID of the stack that is associated with the job.- Parameters:
- stackId- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic Job.Builder compartmentId(String compartmentId) The OCID of the compartment in which the job’s associated stack resides.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Job.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
 
 - 
operationpublic Job.Builder operation(Job.Operation operation) The type of job executing.- Parameters:
- operation- the value to set
- Returns:
- this builder
 
 - 
isThirdPartyProviderExperienceEnabledpublic Job.Builder isThirdPartyProviderExperienceEnabled(Boolean isThirdPartyProviderExperienceEnabled) When true, the stack sources third-party Terraform providers from Terraform Registry and allowscustomTerraformProvider.For more information about stack sourcing of third-party Terraform providers, see Third-party Provider Configuration. - Parameters:
- isThirdPartyProviderExperienceEnabled- the value to set
- Returns:
- this builder
 
 - 
isProviderUpgradeRequiredpublic Job.Builder isProviderUpgradeRequired(Boolean isProviderUpgradeRequired) Specifies whether or not to upgrade provider versions.Within the version constraints of your Terraform configuration, use the latest versions available from the source of Terraform providers. For more information about this option, see Dependency Lock File (terraform.io). - Parameters:
- isProviderUpgradeRequired- the value to set
- Returns:
- this builder
 
 - 
jobOperationDetailspublic Job.Builder jobOperationDetails(JobOperationDetails jobOperationDetails) 
 - 
applyJobPlanResolutionpublic Job.Builder applyJobPlanResolution(ApplyJobPlanResolution applyJobPlanResolution) 
 - 
resolvedPlanJobIdpublic Job.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
 
 - 
timeCreatedpublic Job.Builder timeCreated(Date timeCreated) The date and time when 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
 
 - 
timeFinishedpublic Job.Builder timeFinished(Date timeFinished) The date and time when the job stopped running, irrespective of whether the job ran successfully.Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z - Parameters:
- timeFinished- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic Job.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
 
 - 
failureDetailspublic Job.Builder failureDetails(FailureDetails failureDetails) 
 - 
cancellationDetailspublic Job.Builder cancellationDetails(CancellationDetails cancellationDetails) 
 - 
workingDirectorypublic Job.Builder workingDirectory(String workingDirectory) File path to the directory to use for running Terraform.If not specified, the root directory is used. Required when using a zip Terraform configuration ( configSourceType value of ZIP_UPLOAD) that contains folders. Ignored for the configSourceType value of COMPARTMENT_CONFIG_SOURCE. For more information about required and recommended file structure, see File Structure (Terraform Configurations for Resource Manager). - Parameters:
- workingDirectory- the value to set
- Returns:
- this builder
 
 - 
variablespublic Job.Builder variables(Map<String,String> variables) Terraform variables associated with this resource.Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example: {“CompartmentId”: “compartment-id-value”} - Parameters:
- variables- the value to set
- Returns:
- this builder
 
 - 
configSourcepublic Job.Builder configSource(ConfigSourceRecord configSource) 
 - 
freeformTagspublic Job.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
 
 - 
definedTagspublic Job.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
 
 - 
systemTagspublic Job.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
 
 - 
buildpublic Job build() 
 - 
copypublic Job.Builder copy(Job model) 
 
- 
 
-