Package com.oracle.bmc.batch.model
Class CreateBatchJobDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.batch.model.CreateBatchJobDetails.Builder
-
- Enclosing class:
- CreateBatchJobDetails
public static class CreateBatchJobDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateBatchJobDetails.BuilderbatchJobPoolId(String batchJobPoolId)The OCID of the parent batch job pool.CreateBatchJobDetailsbuild()CreateBatchJobDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment.CreateBatchJobDetails.Buildercopy(CreateBatchJobDetails model)CreateBatchJobDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateBatchJobDetails.Builderdescription(String description)An optional description that provides additional context next to the displayName.CreateBatchJobDetails.BuilderdisplayName(String displayName)A user-friendly name.CreateBatchJobDetails.BuilderenvironmentVariables(List<EnvironmentVariable> environmentVariables)An environment variables to use for the job’s tasks (can be overridden by task’s environment variables).CreateBatchJobDetails.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CreateBatchJobDetails.Buildertasks(List<CreateBatchTaskDetails> tasks)A list of tasks to be executed within this job.
-
-
-
Method Detail
-
compartmentId
public CreateBatchJobDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
batchJobPoolId
public CreateBatchJobDetails.Builder batchJobPoolId(String batchJobPoolId)
The OCID of the parent batch job pool.- Parameters:
batchJobPoolId- the value to set- Returns:
- this builder
-
displayName
public CreateBatchJobDetails.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. If not specified or provided as null or empty string, it will be generated as “
”, where timeCreated corresponds with the resource creation time in ISO 8601 basic format, i.e. omitting separating punctuation, at second-level precision and no UTC offset. Example: batchjob20250914115623. - Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public CreateBatchJobDetails.Builder description(String description)
An optional description that provides additional context next to the displayName.- Parameters:
description- the value to set- Returns:
- this builder
-
environmentVariables
public CreateBatchJobDetails.Builder environmentVariables(List<EnvironmentVariable> environmentVariables)
An environment variables to use for the job’s tasks (can be overridden by task’s environment variables).- Parameters:
environmentVariables- the value to set- Returns:
- this builder
-
tasks
public CreateBatchJobDetails.Builder tasks(List<CreateBatchTaskDetails> tasks)
A list of tasks to be executed within this job.Maximum number of tasks a job can have in total, across all nested levels, is 1000.
- Parameters:
tasks- the value to set- Returns:
- this builder
-
freeformTags
public CreateBatchJobDetails.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 CreateBatchJobDetails.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 CreateBatchJobDetails build()
-
copy
public CreateBatchJobDetails.Builder copy(CreateBatchJobDetails model)
-
-