Class CfnJobDefinitionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.batch.mixins.CfnJobDefinitionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinitionMixinProps>
- Enclosing interface:
CfnJobDefinitionMixinProps
@Stability(Stable)
public static final class CfnJobDefinitionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinitionMixinProps>
A builder for
CfnJobDefinitionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.consumableResourceProperties(IResolvable consumableResourceProperties) Sets the value ofCfnJobDefinitionMixinProps.getConsumableResourceProperties()consumableResourceProperties(CfnJobDefinitionPropsMixin.ConsumableResourcePropertiesProperty consumableResourceProperties) Sets the value ofCfnJobDefinitionMixinProps.getConsumableResourceProperties()containerProperties(IResolvable containerProperties) Sets the value ofCfnJobDefinitionMixinProps.getContainerProperties()containerProperties(CfnJobDefinitionPropsMixin.ContainerPropertiesProperty containerProperties) Sets the value ofCfnJobDefinitionMixinProps.getContainerProperties()ecsProperties(IResolvable ecsProperties) Sets the value ofCfnJobDefinitionMixinProps.getEcsProperties()ecsProperties(CfnJobDefinitionPropsMixin.EcsPropertiesProperty ecsProperties) Sets the value ofCfnJobDefinitionMixinProps.getEcsProperties()eksProperties(IResolvable eksProperties) Sets the value ofCfnJobDefinitionMixinProps.getEksProperties()eksProperties(CfnJobDefinitionPropsMixin.EksPropertiesProperty eksProperties) Sets the value ofCfnJobDefinitionMixinProps.getEksProperties()jobDefinitionName(String jobDefinitionName) Sets the value ofCfnJobDefinitionMixinProps.getJobDefinitionName()nodeProperties(IResolvable nodeProperties) Sets the value ofCfnJobDefinitionMixinProps.getNodeProperties()nodeProperties(CfnJobDefinitionPropsMixin.NodePropertiesProperty nodeProperties) Sets the value ofCfnJobDefinitionMixinProps.getNodeProperties()parameters(Object parameters) Sets the value ofCfnJobDefinitionMixinProps.getParameters()platformCapabilities(List<String> platformCapabilities) Sets the value ofCfnJobDefinitionMixinProps.getPlatformCapabilities()propagateTags(Boolean propagateTags) Sets the value ofCfnJobDefinitionMixinProps.getPropagateTags()propagateTags(IResolvable propagateTags) Sets the value ofCfnJobDefinitionMixinProps.getPropagateTags()resourceRetentionPolicy(IResolvable resourceRetentionPolicy) Sets the value ofCfnJobDefinitionMixinProps.getResourceRetentionPolicy()resourceRetentionPolicy(CfnJobDefinitionPropsMixin.ResourceRetentionPolicyProperty resourceRetentionPolicy) Sets the value ofCfnJobDefinitionMixinProps.getResourceRetentionPolicy()retryStrategy(IResolvable retryStrategy) Sets the value ofCfnJobDefinitionMixinProps.getRetryStrategy()retryStrategy(CfnJobDefinitionPropsMixin.RetryStrategyProperty retryStrategy) Sets the value ofCfnJobDefinitionMixinProps.getRetryStrategy()schedulingPriority(Number schedulingPriority) Sets the value ofCfnJobDefinitionMixinProps.getSchedulingPriority()Sets the value ofCfnJobDefinitionMixinProps.getTags()timeout(IResolvable timeout) Sets the value ofCfnJobDefinitionMixinProps.getTimeout()Sets the value ofCfnJobDefinitionMixinProps.getTimeout()Sets the value ofCfnJobDefinitionMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
consumableResourceProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder consumableResourceProperties(IResolvable consumableResourceProperties) Sets the value ofCfnJobDefinitionMixinProps.getConsumableResourceProperties()- Parameters:
consumableResourceProperties- Contains a list of consumable resources required by the job.- Returns:
this
-
consumableResourceProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder consumableResourceProperties(CfnJobDefinitionPropsMixin.ConsumableResourcePropertiesProperty consumableResourceProperties) Sets the value ofCfnJobDefinitionMixinProps.getConsumableResourceProperties()- Parameters:
consumableResourceProperties- Contains a list of consumable resources required by the job.- Returns:
this
-
containerProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder containerProperties(IResolvable containerProperties) Sets the value ofCfnJobDefinitionMixinProps.getContainerProperties()- Parameters:
containerProperties- An object with properties specific to Amazon ECS-based jobs. WhencontainerPropertiesis used in the job definition, it can't be used in addition toeksProperties,ecsProperties, ornodeProperties.- Returns:
this
-
containerProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder containerProperties(CfnJobDefinitionPropsMixin.ContainerPropertiesProperty containerProperties) Sets the value ofCfnJobDefinitionMixinProps.getContainerProperties()- Parameters:
containerProperties- An object with properties specific to Amazon ECS-based jobs. WhencontainerPropertiesis used in the job definition, it can't be used in addition toeksProperties,ecsProperties, ornodeProperties.- Returns:
this
-
ecsProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder ecsProperties(IResolvable ecsProperties) Sets the value ofCfnJobDefinitionMixinProps.getEcsProperties()- Parameters:
ecsProperties- An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties.- Returns:
this
-
ecsProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder ecsProperties(CfnJobDefinitionPropsMixin.EcsPropertiesProperty ecsProperties) Sets the value ofCfnJobDefinitionMixinProps.getEcsProperties()- Parameters:
ecsProperties- An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties.- Returns:
this
-
eksProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder eksProperties(IResolvable eksProperties) Sets the value ofCfnJobDefinitionMixinProps.getEksProperties()- Parameters:
eksProperties- An object with properties that are specific to Amazon EKS-based jobs. WheneksPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,ecsProperties, ornodeProperties.- Returns:
this
-
eksProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder eksProperties(CfnJobDefinitionPropsMixin.EksPropertiesProperty eksProperties) Sets the value ofCfnJobDefinitionMixinProps.getEksProperties()- Parameters:
eksProperties- An object with properties that are specific to Amazon EKS-based jobs. WheneksPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,ecsProperties, ornodeProperties.- Returns:
this
-
jobDefinitionName
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder jobDefinitionName(String jobDefinitionName) Sets the value ofCfnJobDefinitionMixinProps.getJobDefinitionName()- Parameters:
jobDefinitionName- The name of the job definition.- Returns:
this
-
nodeProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder nodeProperties(IResolvable nodeProperties) Sets the value ofCfnJobDefinitionMixinProps.getNodeProperties()- Parameters:
nodeProperties- An object with properties that are specific to multi-node parallel jobs. WhennodePropertiesis used in the job definition, it can't be used in addition tocontainerProperties,ecsProperties, oreksProperties.If the job runs on Fargate resources, don't specify
nodeProperties. UsecontainerPropertiesinstead.- Returns:
this
-
nodeProperties
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder nodeProperties(CfnJobDefinitionPropsMixin.NodePropertiesProperty nodeProperties) Sets the value ofCfnJobDefinitionMixinProps.getNodeProperties()- Parameters:
nodeProperties- An object with properties that are specific to multi-node parallel jobs. WhennodePropertiesis used in the job definition, it can't be used in addition tocontainerProperties,ecsProperties, oreksProperties.If the job runs on Fargate resources, don't specify
nodeProperties. UsecontainerPropertiesinstead.- Returns:
this
-
parameters
Sets the value ofCfnJobDefinitionMixinProps.getParameters()- Parameters:
parameters- Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in aSubmitJobrequest override any corresponding parameter defaults from the job definition. For more information about specifying parameters, see Job definition parameters in the AWS Batch User Guide .- Returns:
this
-
platformCapabilities
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder platformCapabilities(List<String> platformCapabilities) Sets the value ofCfnJobDefinitionMixinProps.getPlatformCapabilities()- Parameters:
platformCapabilities- The platform capabilities required by the job definition. If no value is specified, it defaults toEC2. Jobs run on Fargate resources specifyFARGATE.- Returns:
this
-
propagateTags
Sets the value ofCfnJobDefinitionMixinProps.getPropagateTags()- Parameters:
propagateTags- Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to theFAILEDstate.- Returns:
this
-
propagateTags
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder propagateTags(IResolvable propagateTags) Sets the value ofCfnJobDefinitionMixinProps.getPropagateTags()- Parameters:
propagateTags- Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to theFAILEDstate.- Returns:
this
-
resourceRetentionPolicy
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder resourceRetentionPolicy(IResolvable resourceRetentionPolicy) Sets the value ofCfnJobDefinitionMixinProps.getResourceRetentionPolicy()- Parameters:
resourceRetentionPolicy- Specifies the resource retention policy settings for the job definition.- Returns:
this
-
resourceRetentionPolicy
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder resourceRetentionPolicy(CfnJobDefinitionPropsMixin.ResourceRetentionPolicyProperty resourceRetentionPolicy) Sets the value ofCfnJobDefinitionMixinProps.getResourceRetentionPolicy()- Parameters:
resourceRetentionPolicy- Specifies the resource retention policy settings for the job definition.- Returns:
this
-
retryStrategy
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder retryStrategy(IResolvable retryStrategy) Sets the value ofCfnJobDefinitionMixinProps.getRetryStrategy()- Parameters:
retryStrategy- The retry strategy to use for failed jobs that are submitted with this job definition.- Returns:
this
-
retryStrategy
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder retryStrategy(CfnJobDefinitionPropsMixin.RetryStrategyProperty retryStrategy) Sets the value ofCfnJobDefinitionMixinProps.getRetryStrategy()- Parameters:
retryStrategy- The retry strategy to use for failed jobs that are submitted with this job definition.- Returns:
this
-
schedulingPriority
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder schedulingPriority(Number schedulingPriority) Sets the value ofCfnJobDefinitionMixinProps.getSchedulingPriority()- Parameters:
schedulingPriority- The scheduling priority of the job definition. This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.- Returns:
this
-
tags
Sets the value ofCfnJobDefinitionMixinProps.getTags()- Parameters:
tags- The tags that are applied to the job definition.- Returns:
this
-
timeout
Sets the value ofCfnJobDefinitionMixinProps.getTimeout()- Parameters:
timeout- The timeout time for jobs that are submitted with this job definition. After the amount of time you specify passes, AWS Batch terminates your jobs if they aren't finished.- Returns:
this
-
timeout
@Stability(Stable) public CfnJobDefinitionMixinProps.Builder timeout(CfnJobDefinitionPropsMixin.TimeoutProperty timeout) Sets the value ofCfnJobDefinitionMixinProps.getTimeout()- Parameters:
timeout- The timeout time for jobs that are submitted with this job definition. After the amount of time you specify passes, AWS Batch terminates your jobs if they aren't finished.- Returns:
this
-
type
Sets the value ofCfnJobDefinitionMixinProps.getType()- Parameters:
type- The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the AWS Batch User Guide .- If the value is
container, then one of the following is required:containerProperties,ecsProperties, oreksProperties. - If the value is
multinode, thennodePropertiesis required.
If the job is run on Fargate resources, then
multinodeisn't supported.- If the value is
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinitionMixinProps>- Returns:
- a new instance of
CfnJobDefinitionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-