Class CfnQuotaShareProps.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnQuotaShareProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQuotaShareProps>
- Enclosing interface:
CfnQuotaShareProps
@Stability(Stable)
public static final class CfnQuotaShareProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQuotaShareProps>
A builder for
CfnQuotaShareProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityLimits(List<? extends Object> capacityLimits) Sets the value ofCfnQuotaShareProps.getCapacityLimits()capacityLimits(IResolvable capacityLimits) Sets the value ofCfnQuotaShareProps.getCapacityLimits()Sets the value ofCfnQuotaShareProps.getJobQueue()preemptionConfiguration(IResolvable preemptionConfiguration) Sets the value ofCfnQuotaShareProps.getPreemptionConfiguration()preemptionConfiguration(CfnQuotaShare.QuotaSharePreemptionConfigurationProperty preemptionConfiguration) Sets the value ofCfnQuotaShareProps.getPreemptionConfiguration()quotaShareName(String quotaShareName) Sets the value ofCfnQuotaShareProps.getQuotaShareName()resourceSharingConfiguration(IResolvable resourceSharingConfiguration) Sets the value ofCfnQuotaShareProps.getResourceSharingConfiguration()resourceSharingConfiguration(CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty resourceSharingConfiguration) Sets the value ofCfnQuotaShareProps.getResourceSharingConfiguration()Sets the value ofCfnQuotaShareProps.getState()Sets the value ofCfnQuotaShareProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityLimits
Sets the value ofCfnQuotaShareProps.getCapacityLimits()- Parameters:
capacityLimits- A list that specifies the quantity and type of compute capacity allocated to the quota share. This parameter is required.- Returns:
this
-
capacityLimits
@Stability(Stable) public CfnQuotaShareProps.Builder capacityLimits(List<? extends Object> capacityLimits) Sets the value ofCfnQuotaShareProps.getCapacityLimits()- Parameters:
capacityLimits- A list that specifies the quantity and type of compute capacity allocated to the quota share. This parameter is required.- Returns:
this
-
jobQueue
Sets the value ofCfnQuotaShareProps.getJobQueue()- Parameters:
jobQueue- The AWS Batch job queue associated with the quota share. This parameter is required. 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 CfnQuotaShareProps.Builder preemptionConfiguration(IResolvable preemptionConfiguration) Sets the value ofCfnQuotaShareProps.getPreemptionConfiguration()- Parameters:
preemptionConfiguration- the value to be set. This parameter is required.- Returns:
this
-
resourceSharingConfiguration
@Stability(Stable) public CfnQuotaShareProps.Builder resourceSharingConfiguration(IResolvable resourceSharingConfiguration) Sets the value ofCfnQuotaShareProps.getResourceSharingConfiguration()- Parameters:
resourceSharingConfiguration- the value to be set. This parameter is required.- Returns:
this
-
state
Sets the value ofCfnQuotaShareProps.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 ofCfnQuotaShareProps.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<CfnQuotaShareProps>- Returns:
- a new instance of
CfnQuotaShareProps - Throws:
NullPointerException- if any required attribute was not provided
-