Class CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty>
- Enclosing interface:
CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty
@Stability(Stable)
public static final class CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionborrowLimit(Number borrowLimit) build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
strategy
@Stability(Stable) public CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty.Builder strategy(String strategy) - Parameters:
strategy- The resource sharing strategy for the quota share. This parameter is required. TheRESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share.- Returns:
this
-
borrowLimit
@Stability(Stable) public CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty.Builder borrowLimit(Number borrowLimit) - Parameters:
borrowLimit- The maximum percentage of additional capacity that the quota share can borrow from other shares.BorrowLimitcan only be applied to quota shares with a strategy ofLEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. TheBorrowLimitis applied uniformly across all capacity units. For example, if theBorrowLimitis 200, the quota share can borrow up to 200% of its configuredmaxCapacityfor each capacity unit. The defaultBorrowLimitis -1, which indicates unlimited borrowing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty>- Returns:
- a new instance of
CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-