public static interface SubmitJobRequest.Builder extends BatchRequest.Builder, CopyableBuilder<SubmitJobRequest.Builder,SubmitJobRequest>
Modifier and Type | Method and Description |
---|---|
default SubmitJobRequest.Builder |
containerOverrides(Consumer<ContainerOverrides.Builder> 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.
|
SubmitJobRequest.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.
|
SubmitJobRequest.Builder |
dependsOn(Collection<JobDependency> dependsOn)
A list of job IDs on which this job depends.
|
SubmitJobRequest.Builder |
dependsOn(Consumer<JobDependency.Builder>... dependsOn)
A list of job IDs on which this job depends.
|
SubmitJobRequest.Builder |
dependsOn(JobDependency... dependsOn)
A list of job IDs on which this job depends.
|
SubmitJobRequest.Builder |
jobDefinition(String jobDefinition)
The job definition used by this job.
|
SubmitJobRequest.Builder |
jobName(String jobName)
The name of the job.
|
SubmitJobRequest.Builder |
jobQueue(String jobQueue)
The job queue into which the job will be submitted.
|
SubmitJobRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
SubmitJobRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
SubmitJobRequest.Builder |
parameters(Map<String,String> parameters)
Additional parameters passed to the job that replace parameter substitution placeholders that are set in the
job definition.
|
default SubmitJobRequest.Builder |
retryStrategy(Consumer<RetryStrategy.Builder> retryStrategy)
The retry strategy to use for failed jobs from this SubmitJob operation.
|
SubmitJobRequest.Builder |
retryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs from this SubmitJob operation.
|
build
overrideConfiguration
copy
applyMutation, build
SubmitJobRequest.Builder jobName(String jobName)
The name of the job. The first character must be alphanumeric, and up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
jobName
- The name of the job. The first character must be alphanumeric, and up to 128 letters (uppercase and
lowercase), numbers, hyphens, and underscores are allowed.SubmitJobRequest.Builder jobQueue(String jobQueue)
The job queue into which the job will be submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.
jobQueue
- The job queue into which the job will be submitted. You can specify either the name or the Amazon
Resource Name (ARN) of the queue.SubmitJobRequest.Builder dependsOn(Collection<JobDependency> dependsOn)
A list of job IDs on which this job depends. A job can depend upon a maximum of 20 jobs.
dependsOn
- A list of job IDs on which this job depends. A job can depend upon a maximum of 20 jobs.SubmitJobRequest.Builder dependsOn(JobDependency... dependsOn)
A list of job IDs on which this job depends. A job can depend upon a maximum of 20 jobs.
dependsOn
- A list of job IDs on which this job depends. A job can depend upon a maximum of 20 jobs.SubmitJobRequest.Builder dependsOn(Consumer<JobDependency.Builder>... dependsOn)
A list of job IDs on which this job depends. A job can depend upon a maximum of 20 jobs.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #dependsOn(List)
.dependsOn
- a consumer that will call methods on List.Builder
#dependsOn(List)
SubmitJobRequest.Builder jobDefinition(String jobDefinition)
The job definition used by this job. This value can be either a name:revision
or the Amazon
Resource Name (ARN) for the job definition.
jobDefinition
- The job definition used by this job. This value can be either a name:revision
or the
Amazon Resource Name (ARN) for the job definition.SubmitJobRequest.Builder parameters(Map<String,String> parameters)
Additional parameters passed to the job that replace parameter substitution placeholders that are set in the
job definition. Parameters are specified as a key and value pair mapping. Parameters in a
SubmitJob
request override any corresponding parameter defaults from the job definition.
parameters
- Additional parameters passed to the job that replace parameter substitution placeholders that are set
in the job definition. Parameters are specified as a key and value pair mapping. Parameters in a
SubmitJob
request override any corresponding parameter defaults from the job definition.SubmitJobRequest.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. You can override the default command for a container (that is
specified in the job definition or the Docker image) with a command
override. You can also
override existing environment variables (that are specified in the job definition or Docker image) on a
container or add new environment variables to it with an environment
override.
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. You can override the default command for a container
(that is specified in the job definition or the Docker image) with a command
override.
You can also override existing environment variables (that are specified in the job definition or
Docker image) on a container or add new environment variables to it with an environment
override.default SubmitJobRequest.Builder containerOverrides(Consumer<ContainerOverrides.Builder> 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. You can override the default command for a container (that is
specified in the job definition or the Docker image) with a command
override. You can also
override existing environment variables (that are specified in the job definition or Docker image) on a
container or add new environment variables to it with an environment
override.
ContainerOverrides.Builder
avoiding the need to
create one manually via ContainerOverrides.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to containerOverrides(ContainerOverrides)
.containerOverrides
- a consumer that will call methods on ContainerOverrides.Builder
containerOverrides(ContainerOverrides)
SubmitJobRequest.Builder retryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs from this SubmitJob operation. When a retry strategy is specified here, it overrides the retry strategy defined in the job definition.
retryStrategy
- The retry strategy to use for failed jobs from this SubmitJob operation. When a retry strategy
is specified here, it overrides the retry strategy defined in the job definition.default SubmitJobRequest.Builder retryStrategy(Consumer<RetryStrategy.Builder> retryStrategy)
The retry strategy to use for failed jobs from this SubmitJob operation. When a retry strategy is specified here, it overrides the retry strategy defined in the job definition.
This is a convenience that creates an instance of theRetryStrategy.Builder
avoiding the need to
create one manually via RetryStrategy.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to retryStrategy(RetryStrategy)
.retryStrategy
- a consumer that will call methods on RetryStrategy.Builder
retryStrategy(RetryStrategy)
SubmitJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.SubmitJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.