@Stability(value=Experimental) public static final class JobDefinitionProps.Builder extends Object implements software.amazon.jsii.Builder<JobDefinitionProps>
JobDefinitionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
JobDefinitionProps |
build()
Builds the configured instance.
|
JobDefinitionProps.Builder |
container(JobDefinitionContainer container)
Sets the value of
JobDefinitionProps.getContainer() |
JobDefinitionProps.Builder |
jobDefinitionName(String jobDefinitionName)
Sets the value of
JobDefinitionProps.getJobDefinitionName() |
JobDefinitionProps.Builder |
nodeProps(IMultiNodeProps nodeProps)
Sets the value of
JobDefinitionProps.getNodeProps() |
JobDefinitionProps.Builder |
parameters(Map<String,String> parameters)
Sets the value of
JobDefinitionProps.getParameters() |
JobDefinitionProps.Builder |
retryAttempts(Number retryAttempts)
Sets the value of
JobDefinitionProps.getRetryAttempts() |
JobDefinitionProps.Builder |
timeout(Duration timeout)
Sets the value of
JobDefinitionProps.getTimeout() |
@Stability(value=Experimental) public JobDefinitionProps.Builder container(JobDefinitionContainer container)
JobDefinitionProps.getContainer()container - An object with various properties specific to container-based jobs. This parameter is required.this@Stability(value=Experimental) public JobDefinitionProps.Builder jobDefinitionName(String jobDefinitionName)
JobDefinitionProps.getJobDefinitionName()jobDefinitionName - The name of the job definition.
Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.this@Stability(value=Experimental) public JobDefinitionProps.Builder nodeProps(IMultiNodeProps nodeProps)
JobDefinitionProps.getNodeProps()nodeProps - An object with various properties specific to multi-node parallel jobs.this@Stability(value=Experimental) public JobDefinitionProps.Builder parameters(Map<String,String> parameters)
JobDefinitionProps.getParameters()parameters - When you submit a job, you can specify parameters that should replace the placeholders or override the default job definition parameters.
Parameters
in job submission requests take precedence over the defaults in a job definition.
This allows you to use the same job definition for multiple jobs that use the same
format, and programmatically change values in the command at submission time.this@Stability(value=Experimental) public JobDefinitionProps.Builder retryAttempts(Number retryAttempts)
JobDefinitionProps.getRetryAttempts()retryAttempts - 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@Stability(value=Experimental) public JobDefinitionProps.Builder timeout(Duration timeout)
JobDefinitionProps.getTimeout()timeout - The timeout configuration for jobs that are submitted with this job definition.
You can specify
a timeout duration after which AWS Batch terminates your jobs if they have not finished.this@Stability(value=Experimental) public JobDefinitionProps build()
build in interface software.amazon.jsii.Builder<JobDefinitionProps>JobDefinitionPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.