Class FairshareSchedulingPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FairshareSchedulingPolicyProps>
- Enclosing interface:
FairshareSchedulingPolicyProps
FairshareSchedulingPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computeReservation(Number computeReservation) Sets the value ofFairshareSchedulingPolicyProps.getComputeReservation()schedulingPolicyName(String schedulingPolicyName) Sets the value ofFairshareSchedulingPolicyProps.getSchedulingPolicyName()shareDecay(Duration shareDecay) Sets the value ofFairshareSchedulingPolicyProps.getShareDecay()Sets the value ofFairshareSchedulingPolicyProps.getShares()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computeReservation
@Stability(Stable) public FairshareSchedulingPolicyProps.Builder computeReservation(Number computeReservation) Sets the value ofFairshareSchedulingPolicyProps.getComputeReservation()- Parameters:
computeReservation- Used to calculate the percentage of the maximum available vCPU to reserve for share identifiers not present in the Queue. The percentage reserved is defined by the Scheduler as:(computeReservation/100)^ActiveFairShareswhereActiveFairSharesis the number of active fair share identifiers.For example, a computeReservation value 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.
A computeReservation value 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.
- Returns:
this
-
schedulingPolicyName
@Stability(Stable) public FairshareSchedulingPolicyProps.Builder schedulingPolicyName(String schedulingPolicyName) Sets the value ofFairshareSchedulingPolicyProps.getSchedulingPolicyName()- Parameters:
schedulingPolicyName- The name of this SchedulingPolicy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FairshareSchedulingPolicyProps>- Returns:
- a new instance of
FairshareSchedulingPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-