Class CfnRule.BatchParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnRule.BatchParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.BatchParametersProperty>
- Enclosing interface:
CfnRule.BatchParametersProperty
@Stability(Stable)
public static final class CfnRule.BatchParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.BatchParametersProperty>
A builder for
CfnRule.BatchParametersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionarrayProperties
(IResolvable arrayProperties) Sets the value ofCfnRule.BatchParametersProperty.getArrayProperties()
arrayProperties
(CfnRule.BatchArrayPropertiesProperty arrayProperties) Sets the value ofCfnRule.BatchParametersProperty.getArrayProperties()
build()
Builds the configured instance.jobDefinition
(String jobDefinition) Sets the value ofCfnRule.BatchParametersProperty.getJobDefinition()
Sets the value ofCfnRule.BatchParametersProperty.getJobName()
retryStrategy
(IResolvable retryStrategy) Sets the value ofCfnRule.BatchParametersProperty.getRetryStrategy()
retryStrategy
(CfnRule.BatchRetryStrategyProperty retryStrategy) Sets the value ofCfnRule.BatchParametersProperty.getRetryStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jobDefinition
@Stability(Stable) public CfnRule.BatchParametersProperty.Builder jobDefinition(String jobDefinition) Sets the value ofCfnRule.BatchParametersProperty.getJobDefinition()
- Parameters:
jobDefinition
- The ARN or name of the job definition to use if the event target is an AWS Batch job. This parameter is required. This job definition must already exist.- Returns:
this
-
jobName
Sets the value ofCfnRule.BatchParametersProperty.getJobName()
- Parameters:
jobName
- The name to use for this execution of the job, if the target is an AWS Batch job. This parameter is required.- Returns:
this
-
arrayProperties
@Stability(Stable) public CfnRule.BatchParametersProperty.Builder arrayProperties(IResolvable arrayProperties) Sets the value ofCfnRule.BatchParametersProperty.getArrayProperties()
- Parameters:
arrayProperties
- The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job.- Returns:
this
-
arrayProperties
@Stability(Stable) public CfnRule.BatchParametersProperty.Builder arrayProperties(CfnRule.BatchArrayPropertiesProperty arrayProperties) Sets the value ofCfnRule.BatchParametersProperty.getArrayProperties()
- Parameters:
arrayProperties
- The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job.- Returns:
this
-
retryStrategy
@Stability(Stable) public CfnRule.BatchParametersProperty.Builder retryStrategy(IResolvable retryStrategy) Sets the value ofCfnRule.BatchParametersProperty.getRetryStrategy()
- Parameters:
retryStrategy
- The retry strategy to use for failed jobs, if the target is an AWS Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1–10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.- Returns:
this
-
retryStrategy
@Stability(Stable) public CfnRule.BatchParametersProperty.Builder retryStrategy(CfnRule.BatchRetryStrategyProperty retryStrategy) Sets the value ofCfnRule.BatchParametersProperty.getRetryStrategy()
- Parameters:
retryStrategy
- The retry strategy to use for failed jobs, if the target is an AWS Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1–10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.BatchParametersProperty>
- Returns:
- a new instance of
CfnRule.BatchParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-