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 capacity limit for a service environment. This structure specifies the maximum amount of resources that can be used by service jobs in the 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.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. This value represents the maximum amount of 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:
- The maximum capacity available for the service environment. This value represents the maximum amount of
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.
-
capacityUnit
public final String capacityUnit()
The unit of measure for the capacity limit. This defines how the maxCapacity value should be interpreted. For
SAGEMAKER_TRAININGjobs, useNUM_INSTANCES.- Returns:
- The unit of measure for the capacity limit. This defines how the maxCapacity value should be interpreted.
For
SAGEMAKER_TRAININGjobs, 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
-
-