Class CapacityLimit
- java.lang.Object
-
- software.amazon.awssdk.services.batch.model.CapacityLimit
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CapacityLimit.Builder,CapacityLimit>
@Generated("software.amazon.awssdk:codegen") public final class CapacityLimit extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityLimit.Builder,CapacityLimit>
Defines the type and maximum quantity of resources that can be allocated to service jobs in a service environment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCapacityLimit.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CapacityLimit.Builderbuilder()StringcapacityUnit()The unit of measure for the capacity limit, which defines howmaxCapacityis interpreted.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxCapacity()The maximum capacity available for the service environment.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CapacityLimit.Builder>serializableBuilderClass()CapacityLimit.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
maxCapacity
public final Integer maxCapacity()
The maximum capacity available for the service environment. For a quota management enabled service environment, this value represents the maximum quantity of a particular resource type (specified by
capacityUnit) that can be allocated to service jobs. For other service environments, this value represents the maximum quantity of all resources that can be allocated to service jobs.For example, if
maxCapacity=50andcapacityUnit=NUM_INSTANCES, you can run up to 50 instances concurrently. If you run 5 SageMaker Training jobs that each use 10 instances, a subsequent job requiring 10 instances waits in the queue until capacity is available. In a quota management enabled service environment withcapacityUnit=ml.m5.large, onlyml.m5.largeinstances count against this limit, and jobs requiring other instance types wait until a matching capacity limit is configured.- Returns:
- The maximum capacity available for the service environment. For a quota management enabled service
environment, this value represents the maximum quantity of a particular resource type (specified by
capacityUnit) that can be allocated to service jobs. For other service environments, this value represents the maximum quantity of all resources that can be allocated to service jobs.For example, if
maxCapacity=50andcapacityUnit=NUM_INSTANCES, you can run up to 50 instances concurrently. If you run 5 SageMaker Training jobs that each use 10 instances, a subsequent job requiring 10 instances waits in the queue until capacity is available. In a quota management enabled service environment withcapacityUnit=ml.m5.large, onlyml.m5.largeinstances count against this limit, and jobs requiring other instance types wait until a matching capacity limit is configured.
-
capacityUnit
public final String capacityUnit()
The unit of measure for the capacity limit, which defines how
maxCapacityis interpreted. ForSAGEMAKER_TRAININGjobs in a quota management enabled service environment, specify the instance type (for example,ml.m5.large). Otherwise, useNUM_INSTANCES.- Returns:
- The unit of measure for the capacity limit, which defines how
maxCapacityis interpreted. ForSAGEMAKER_TRAININGjobs in a quota management enabled service environment, specify the instance type (for example,ml.m5.large). Otherwise, useNUM_INSTANCES.
-
toBuilder
public CapacityLimit.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CapacityLimit.Builder,CapacityLimit>
-
builder
public static CapacityLimit.Builder builder()
-
serializableBuilderClass
public static Class<? extends CapacityLimit.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-