@Stability(value=Experimental) public static final class RunBatchJob.Builder extends Object
RunBatchJob.| Modifier and Type | Method and Description |
|---|---|
RunBatchJob.Builder |
arraySize(Number arraySize)
The array size can be between 2 and 10,000.
|
RunBatchJob.Builder |
attempts(Number attempts)
The number of times to move a job to the RUNNABLE status.
|
RunBatchJob |
build() |
RunBatchJob.Builder |
containerOverrides(ContainerOverrides containerOverrides)
A list of container overrides in JSON format that specify the name of a container in the specified job definition and the overrides it should receive.
|
static RunBatchJob.Builder |
create()
EXPERIMENTAL
|
RunBatchJob.Builder |
dependsOn(List<JobDependency> dependsOn)
A list of dependencies for the job.
|
RunBatchJob.Builder |
integrationPattern(ServiceIntegrationPattern integrationPattern)
The service integration pattern indicates different ways to call TerminateCluster.
|
RunBatchJob.Builder |
jobDefinition(IJobDefinition jobDefinition)
The job definition used by this job.
|
RunBatchJob.Builder |
jobName(String jobName)
The name of the job.
|
RunBatchJob.Builder |
jobQueue(IJobQueue jobQueue)
The job queue into which the job is submitted.
|
RunBatchJob.Builder |
payload(Map<String,Object> payload)
The payload to be passed as parametrs to the batch job.
|
RunBatchJob.Builder |
timeout(Duration timeout)
The timeout configuration for this SubmitJob operation.
|
@Stability(value=Experimental) public static RunBatchJob.Builder create()
RunBatchJob.Builder.@Stability(value=Experimental) public RunBatchJob.Builder jobDefinition(IJobDefinition jobDefinition)
EXPERIMENTAL
jobDefinition - The job definition used by this job. This parameter is required.this@Stability(value=Experimental) public RunBatchJob.Builder jobName(String jobName)
The first character must be alphanumeric, and up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
EXPERIMENTAL
jobName - The name of the job. This parameter is required.this@Stability(value=Experimental) public RunBatchJob.Builder jobQueue(IJobQueue jobQueue)
EXPERIMENTAL
jobQueue - The job queue into which the job is submitted. This parameter is required.this@Stability(value=Experimental) public RunBatchJob.Builder arraySize(Number arraySize)
If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the AWS Batch User Guide.
Default: - No array size
EXPERIMENTAL
arraySize - The array size can be between 2 and 10,000. This parameter is required.this@Stability(value=Experimental) public RunBatchJob.Builder attempts(Number attempts)
You may specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.
Default: - 1
EXPERIMENTAL
attempts - The number of times to move a job to the RUNNABLE status. This parameter is required.this@Stability(value=Experimental) public RunBatchJob.Builder containerOverrides(ContainerOverrides containerOverrides)
Default: - No container overrides
EXPERIMENTAL
containerOverrides - A list of container overrides in JSON format that specify the name of a container in the specified job definition and the overrides it should receive. This parameter is required.thishttps://docs.aws.amazon.com/batch/latest/APIReference/API_SubmitJob.html#Batch-SubmitJob-request-containerOverrides@Stability(value=Experimental) public RunBatchJob.Builder dependsOn(List<JobDependency> dependsOn)
A job can depend upon a maximum of 20 jobs.
Default: - No dependencies
EXPERIMENTAL
dependsOn - A list of dependencies for the job. This parameter is required.thishttps://docs.aws.amazon.com/batch/latest/APIReference/API_SubmitJob.html#Batch-SubmitJob-request-dependsOn@Stability(value=Experimental) public RunBatchJob.Builder integrationPattern(ServiceIntegrationPattern integrationPattern)
The valid value is either FIRE_AND_FORGET or SYNC.
Default: SYNC
EXPERIMENTAL
integrationPattern - The service integration pattern indicates different ways to call TerminateCluster. This parameter is required.this@Stability(value=Experimental) public RunBatchJob.Builder payload(Map<String,Object> payload)
Default: - No parameters are passed
EXPERIMENTAL
payload - The payload to be passed as parametrs to the batch job. This parameter is required.this@Stability(value=Experimental) public RunBatchJob.Builder timeout(Duration timeout)
The minimum value for the timeout is 60 seconds.
Default: - No timeout
EXPERIMENTAL
timeout - The timeout configuration for this SubmitJob operation. This parameter is required.thishttps://docs.aws.amazon.com/batch/latest/APIReference/API_SubmitJob.html#Batch-SubmitJob-request-timeout@Stability(value=Experimental) public RunBatchJob build()
Copyright © 2020. All rights reserved.