Class CfnQuotaShareMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnQuotaShareMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQuotaShareMixinProps>
- Enclosing interface:
CfnQuotaShareMixinProps
@Stability(Stable)
public static final class CfnQuotaShareMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQuotaShareMixinProps>
A builder for
CfnQuotaShareMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityLimits(List<? extends Object> capacityLimits) Sets the value ofCfnQuotaShareMixinProps.getCapacityLimits()capacityLimits(IResolvable capacityLimits) Sets the value ofCfnQuotaShareMixinProps.getCapacityLimits()Sets the value ofCfnQuotaShareMixinProps.getJobQueue()preemptionConfiguration(CfnQuotaSharePropsMixin.QuotaSharePreemptionConfigurationProperty preemptionConfiguration) Sets the value ofCfnQuotaShareMixinProps.getPreemptionConfiguration()preemptionConfiguration(IResolvable preemptionConfiguration) Sets the value ofCfnQuotaShareMixinProps.getPreemptionConfiguration()quotaShareName(String quotaShareName) Sets the value ofCfnQuotaShareMixinProps.getQuotaShareName()resourceSharingConfiguration(CfnQuotaSharePropsMixin.QuotaShareResourceSharingConfigurationProperty resourceSharingConfiguration) Sets the value ofCfnQuotaShareMixinProps.getResourceSharingConfiguration()resourceSharingConfiguration(IResolvable resourceSharingConfiguration) Sets the value ofCfnQuotaShareMixinProps.getResourceSharingConfiguration()Sets the value ofCfnQuotaShareMixinProps.getState()Sets the value ofCfnQuotaShareMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityLimits
@Stability(Stable) public CfnQuotaShareMixinProps.Builder capacityLimits(IResolvable capacityLimits) Sets the value ofCfnQuotaShareMixinProps.getCapacityLimits()- Parameters:
capacityLimits- A list that specifies the quantity and type of compute capacity allocated to the quota share.- Returns:
this
-
capacityLimits
@Stability(Stable) public CfnQuotaShareMixinProps.Builder capacityLimits(List<? extends Object> capacityLimits) Sets the value ofCfnQuotaShareMixinProps.getCapacityLimits()- Parameters:
capacityLimits- A list that specifies the quantity and type of compute capacity allocated to the quota share.- Returns:
this
-
jobQueue
Sets the value ofCfnQuotaShareMixinProps.getJobQueue()- Parameters:
jobQueue- The AWS Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in theVALIDstate before you can associate it with a quota share.- Returns:
this
-
preemptionConfiguration
@Stability(Stable) public CfnQuotaShareMixinProps.Builder preemptionConfiguration(IResolvable preemptionConfiguration) Sets the value ofCfnQuotaShareMixinProps.getPreemptionConfiguration()- Parameters:
preemptionConfiguration- the value to be set.- Returns:
this
-
resourceSharingConfiguration
@Stability(Stable) public CfnQuotaShareMixinProps.Builder resourceSharingConfiguration(IResolvable resourceSharingConfiguration) Sets the value ofCfnQuotaShareMixinProps.getResourceSharingConfiguration()- Parameters:
resourceSharingConfiguration- the value to be set.- Returns:
this
-
state
Sets the value ofCfnQuotaShareMixinProps.getState()- Parameters:
state- The state of the quota share. If the quota share isENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED.- Returns:
this
-
tags
Sets the value ofCfnQuotaShareMixinProps.getTags()- Parameters:
tags- The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnQuotaShareMixinProps>- Returns:
- a new instance of
CfnQuotaShareMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-