Interface ResourceSharingConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceSharingConfig.Builder,,ResourceSharingConfig> SdkBuilder<ResourceSharingConfig.Builder,,ResourceSharingConfig> SdkPojo
- Enclosing class:
ResourceSharingConfig
-
Method Summary
Modifier and TypeMethodDescriptionabsoluteBorrowLimits(Collection<ComputeQuotaResourceConfig> absoluteBorrowLimits) The absolute limits on compute resources that can be borrowed from idle compute.absoluteBorrowLimits(Consumer<ComputeQuotaResourceConfig.Builder>... absoluteBorrowLimits) The absolute limits on compute resources that can be borrowed from idle compute.absoluteBorrowLimits(ComputeQuotaResourceConfig... absoluteBorrowLimits) The absolute limits on compute resources that can be borrowed from idle compute.borrowLimit(Integer borrowLimit) The limit on how much idle compute can be borrowed.The values can be 1 - 500 percent of idle compute that the team is allowed to borrow.The strategy of how idle compute is shared within the cluster.strategy(ResourceSharingStrategy strategy) The strategy of how idle compute is shared within the cluster.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
strategy
The strategy of how idle compute is shared within the cluster. The following are the options of strategies.
-
DontLend: entities do not lend idle compute. -
Lend: entities can lend idle compute to entities that can borrow. -
LendandBorrow: entities can lend idle compute and borrow idle compute from other entities.
Default is
LendandBorrow.- Parameters:
strategy- The strategy of how idle compute is shared within the cluster. The following are the options of strategies.-
DontLend: entities do not lend idle compute. -
Lend: entities can lend idle compute to entities that can borrow. -
LendandBorrow: entities can lend idle compute and borrow idle compute from other entities.
Default is
LendandBorrow.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
strategy
The strategy of how idle compute is shared within the cluster. The following are the options of strategies.
-
DontLend: entities do not lend idle compute. -
Lend: entities can lend idle compute to entities that can borrow. -
LendandBorrow: entities can lend idle compute and borrow idle compute from other entities.
Default is
LendandBorrow.- Parameters:
strategy- The strategy of how idle compute is shared within the cluster. The following are the options of strategies.-
DontLend: entities do not lend idle compute. -
Lend: entities can lend idle compute to entities that can borrow. -
LendandBorrow: entities can lend idle compute and borrow idle compute from other entities.
Default is
LendandBorrow.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
borrowLimit
The limit on how much idle compute can be borrowed.The values can be 1 - 500 percent of idle compute that the team is allowed to borrow.
Default is
50.- Parameters:
borrowLimit- The limit on how much idle compute can be borrowed.The values can be 1 - 500 percent of idle compute that the team is allowed to borrow.Default is
50.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
absoluteBorrowLimits
ResourceSharingConfig.Builder absoluteBorrowLimits(Collection<ComputeQuotaResourceConfig> absoluteBorrowLimits) The absolute limits on compute resources that can be borrowed from idle compute. When specified, these limits define the maximum amount of specific resource types (such as accelerators, vCPU, or memory) that an entity can borrow, regardless of the percentage-based
BorrowLimit.- Parameters:
absoluteBorrowLimits- The absolute limits on compute resources that can be borrowed from idle compute. When specified, these limits define the maximum amount of specific resource types (such as accelerators, vCPU, or memory) that an entity can borrow, regardless of the percentage-basedBorrowLimit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
absoluteBorrowLimits
ResourceSharingConfig.Builder absoluteBorrowLimits(ComputeQuotaResourceConfig... absoluteBorrowLimits) The absolute limits on compute resources that can be borrowed from idle compute. When specified, these limits define the maximum amount of specific resource types (such as accelerators, vCPU, or memory) that an entity can borrow, regardless of the percentage-based
BorrowLimit.- Parameters:
absoluteBorrowLimits- The absolute limits on compute resources that can be borrowed from idle compute. When specified, these limits define the maximum amount of specific resource types (such as accelerators, vCPU, or memory) that an entity can borrow, regardless of the percentage-basedBorrowLimit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
absoluteBorrowLimits
ResourceSharingConfig.Builder absoluteBorrowLimits(Consumer<ComputeQuotaResourceConfig.Builder>... absoluteBorrowLimits) The absolute limits on compute resources that can be borrowed from idle compute. When specified, these limits define the maximum amount of specific resource types (such as accelerators, vCPU, or memory) that an entity can borrow, regardless of the percentage-based
This is a convenience method that creates an instance of theBorrowLimit.ComputeQuotaResourceConfig.Builderavoiding the need to create one manually viaComputeQuotaResourceConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toabsoluteBorrowLimits(List<ComputeQuotaResourceConfig>).- Parameters:
absoluteBorrowLimits- a consumer that will call methods onComputeQuotaResourceConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-