Class CfnServiceEnvironment.CapacityLimitProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnServiceEnvironment.CapacityLimitProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceEnvironment.CapacityLimitProperty>
- Enclosing interface:
CfnServiceEnvironment.CapacityLimitProperty
@Stability(Stable)
public static final class CfnServiceEnvironment.CapacityLimitProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceEnvironment.CapacityLimitProperty>
A builder for
CfnServiceEnvironment.CapacityLimitProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityUnit(String capacityUnit) Sets the value ofCfnServiceEnvironment.CapacityLimitProperty.getCapacityUnit()maxCapacity(Number maxCapacity) Sets the value ofCfnServiceEnvironment.CapacityLimitProperty.getMaxCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityUnit
@Stability(Stable) public CfnServiceEnvironment.CapacityLimitProperty.Builder capacityUnit(String capacityUnit) Sets the value ofCfnServiceEnvironment.CapacityLimitProperty.getCapacityUnit()- Parameters:
capacityUnit- The unit of measure for the capacity limit. This defines how the maxCapacity value should be interpreted. ForSAGEMAKER_TRAININGjobs, useNUM_INSTANCES.- Returns:
this
-
maxCapacity
@Stability(Stable) public CfnServiceEnvironment.CapacityLimitProperty.Builder maxCapacity(Number maxCapacity) Sets the value ofCfnServiceEnvironment.CapacityLimitProperty.getMaxCapacity()- Parameters:
maxCapacity- The maximum capacity available for the service environment. This value represents the maximum amount resources that can be allocated to service jobs.For example,
maxCapacity=50,capacityUnit=NUM_INSTANCES. This indicates that the maximum number of instances that can be run on this service environment is 50. You could then run 5 SageMaker Training jobs that each use 10 instances. However, if you submit another job that requires 10 instances, it will wait in the queue.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceEnvironment.CapacityLimitProperty>- Returns:
- a new instance of
CfnServiceEnvironment.CapacityLimitProperty - Throws:
NullPointerException- if any required attribute was not provided
-