Class CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty>
- Enclosing interface:
CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty
@Stability(Stable)
public static final class CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty>
A builder for
CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computeReservation(Number computeReservation) shareDecaySeconds(Number shareDecaySeconds) shareDistribution(List<? extends Object> shareDistribution) shareDistribution(IResolvable shareDistribution)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computeReservation
@Stability(Stable) public CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty.Builder computeReservation(Number computeReservation) - Parameters:
computeReservation- A value used to reserve some of the available maximum vCPU for share identifiers that aren't already used. The reserved ratio is( *computeReservation* /100)^ *ActiveFairShares*where*ActiveFairShares*is the number of active share identifiers.For example, a
computeReservationvalue of 50 indicates that AWS Batch reserves 50% of the maximum available vCPU if there's only one share identifier. It reserves 25% if there are two share identifiers. It reserves 12.5% if there are three share identifiers. AcomputeReservationvalue of 25 indicates that AWS Batch should reserve 25% of the maximum available vCPU if there's only one share identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are three share identifiers.The minimum value is 0 and the maximum value is 99.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty>- Returns:
- a new instance of
CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-