public static final class BatchSubmitJobProps.Builder
extends java.lang.Object
BatchSubmitJobProps
Constructor and Description |
---|
Builder() |
public BatchSubmitJobProps.Builder jobDefinitionArn(java.lang.String jobDefinitionArn)
BatchSubmitJobProps.getJobDefinitionArn()
jobDefinitionArn
- The arn of the job definition used by this job. This parameter is required.this
public BatchSubmitJobProps.Builder jobName(java.lang.String jobName)
BatchSubmitJobProps.getJobName()
jobName
- The name of the job. This parameter is required.
The first character must be alphanumeric, and up to 128 letters (uppercase and lowercase),
numbers, hyphens, and underscores are allowed.this
public BatchSubmitJobProps.Builder jobQueueArn(java.lang.String jobQueueArn)
BatchSubmitJobProps.getJobQueueArn()
jobQueueArn
- The arn of the job queue into which the job is submitted. This parameter is required.this
public BatchSubmitJobProps.Builder arraySize(java.lang.Number arraySize)
BatchSubmitJobProps.getArraySize()
arraySize
- The array size can be between 2 and 10,000.
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.this
public BatchSubmitJobProps.Builder attempts(java.lang.Number attempts)
BatchSubmitJobProps.getAttempts()
attempts
- The number of times to move a job to the RUNNABLE status.
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.this
public BatchSubmitJobProps.Builder containerOverrides(BatchContainerOverrides containerOverrides)
BatchSubmitJobProps.getContainerOverrides()
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
public BatchSubmitJobProps.Builder dependsOn(java.util.List<? extends BatchJobDependency> dependsOn)
BatchSubmitJobProps.getDependsOn()
dependsOn
- A list of dependencies for the job.
A job can depend upon a maximum of 20 jobs.this
public BatchSubmitJobProps.Builder payload(TaskInput payload)
BatchSubmitJobProps.getPayload()
payload
- The payload to be passed as parameters to the batch job.this
public BatchSubmitJobProps.Builder comment(java.lang.String comment)
TaskStateBaseProps.getComment()
comment
- An optional description for this state.this
public BatchSubmitJobProps.Builder heartbeat(Duration heartbeat)
TaskStateBaseProps.getHeartbeat()
heartbeat
- Timeout for the heartbeat.this
public BatchSubmitJobProps.Builder inputPath(java.lang.String inputPath)
TaskStateBaseProps.getInputPath()
inputPath
- JSONPath expression to select part of the state to be the input to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective
input to be the empty object {}.this
public BatchSubmitJobProps.Builder integrationPattern(IntegrationPattern integrationPattern)
TaskStateBaseProps.getIntegrationPattern()
integrationPattern
- AWS Step Functions integrates with services directly in the Amazon States Language.
You can control these AWS services using service integration patternsthis
public BatchSubmitJobProps.Builder outputPath(java.lang.String outputPath)
TaskStateBaseProps.getOutputPath()
outputPath
- JSONPath expression to select select a portion of the state output to pass to the next state.
May also be the special value JsonPath.DISCARD, which will cause the effective
output to be the empty object {}.this
public BatchSubmitJobProps.Builder resultPath(java.lang.String resultPath)
TaskStateBaseProps.getResultPath()
resultPath
- JSONPath expression to indicate where to inject the state's output.
May also be the special value JsonPath.DISCARD, which will cause the state's
input to become its output.this
public BatchSubmitJobProps.Builder resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
TaskStateBaseProps.getResultSelector()
resultSelector
- The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.
You can use ResultSelector to create a payload with values that are static
or selected from the state's raw result.this
public BatchSubmitJobProps.Builder timeout(Duration timeout)
TaskStateBaseProps.getTimeout()
timeout
- Timeout for the state machine.this
public BatchSubmitJobProps build()
BatchSubmitJobProps
java.lang.NullPointerException
- if any required attribute was not provided