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