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- The capacity limits for 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- The capacity limits for the quota share. This parameter is required.- Returns:
this
-
jobQueue
Sets the value ofCfnQuotaShareProps.getJobQueue()- Parameters:
jobQueue- The Amazon Resource Name (ARN) or name of the job queue. This parameter is required.- 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.- Returns:
this
-
tags
Sets the value ofCfnQuotaShareProps.getTags()- Parameters:
tags- A key-value pair to associate with a resource.- 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
-