Class JobSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.resourcemanager.model.JobSummary.Builder
-
- Enclosing class:
- JobSummary
public static class JobSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobSummary.BuilderapplyJobPlanResolution(ApplyJobPlanResolution applyJobPlanResolution)JobSummarybuild()JobSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment where the stack of the associated job resides.JobSummary.Buildercopy(JobSummary model)JobSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.JobSummary.BuilderdisplayName(String displayName)The job’s display name.JobSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags associated with this resource.JobSummary.Builderid(String id)The OCID of the job.JobSummary.BuilderjobOperationDetails(JobOperationDetailsSummary jobOperationDetails)JobSummary.BuilderlifecycleState(Job.LifecycleState lifecycleState)Current state of the specified job.JobSummary.Builderoperation(Job.Operation operation)The type of job executingJobSummary.BuilderresolvedPlanJobId(String resolvedPlanJobId)Deprecated.JobSummary.BuilderstackId(String stackId)The OCID of the stack that is associated with the specified job.JobSummary.BuildertimeCreated(Date timeCreated)The date and time the job was created.JobSummary.BuildertimeFinished(Date timeFinished)The date and time the job succeeded or failed.
-
-
-
Method Detail
-
id
public JobSummary.Builder id(String id)
The OCID of the job.- Parameters:
id- the value to set- Returns:
- this builder
-
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)
The job’s display name.- 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
-
jobOperationDetails
public JobSummary.Builder jobOperationDetails(JobOperationDetailsSummary jobOperationDetails)
-
applyJobPlanResolution
public JobSummary.Builder applyJobPlanResolution(ApplyJobPlanResolution applyJobPlanResolution)
-
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.
Allowable values: - ACCEPTED - IN_PROGRESS - FAILED - SUCCEEDED - CANCELING - CANCELED
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
freeformTags
public JobSummary.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags associated with this 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
-
build
public JobSummary build()
-
copy
public JobSummary.Builder copy(JobSummary model)
-
-