Class InferenceComponentComputeResourceRequirements
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.InferenceComponentComputeResourceRequirements
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<InferenceComponentComputeResourceRequirements.Builder,InferenceComponentComputeResourceRequirements>
@Generated("software.amazon.awssdk:codegen") public final class InferenceComponentComputeResourceRequirements extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InferenceComponentComputeResourceRequirements.Builder,InferenceComponentComputeResourceRequirements>
Defines the compute resources to allocate to run a model, plus any adapter models, that you assign to an inference component. These resources include CPU cores, accelerators, and memory.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
InferenceComponentComputeResourceRequirements.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InferenceComponentComputeResourceRequirements.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
maxMemoryRequiredInMb()
The maximum MB of memory to allocate to run a model that you assign to an inference component.Integer
minMemoryRequiredInMb()
The minimum MB of memory to allocate to run a model that you assign to an inference component.Float
numberOfAcceleratorDevicesRequired()
The number of accelerators to allocate to run a model that you assign to an inference component.Float
numberOfCpuCoresRequired()
The number of CPU cores to allocate to run a model that you assign to an inference component.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends InferenceComponentComputeResourceRequirements.Builder>
serializableBuilderClass()
InferenceComponentComputeResourceRequirements.Builder
toBuilder()
String
toString()
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
-
numberOfCpuCoresRequired
public final Float numberOfCpuCoresRequired()
The number of CPU cores to allocate to run a model that you assign to an inference component.
- Returns:
- The number of CPU cores to allocate to run a model that you assign to an inference component.
-
numberOfAcceleratorDevicesRequired
public final Float numberOfAcceleratorDevicesRequired()
The number of accelerators to allocate to run a model that you assign to an inference component. Accelerators include GPUs and Amazon Web Services Inferentia.
- Returns:
- The number of accelerators to allocate to run a model that you assign to an inference component. Accelerators include GPUs and Amazon Web Services Inferentia.
-
minMemoryRequiredInMb
public final Integer minMemoryRequiredInMb()
The minimum MB of memory to allocate to run a model that you assign to an inference component.
- Returns:
- The minimum MB of memory to allocate to run a model that you assign to an inference component.
-
maxMemoryRequiredInMb
public final Integer maxMemoryRequiredInMb()
The maximum MB of memory to allocate to run a model that you assign to an inference component.
- Returns:
- The maximum MB of memory to allocate to run a model that you assign to an inference component.
-
toBuilder
public InferenceComponentComputeResourceRequirements.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<InferenceComponentComputeResourceRequirements.Builder,InferenceComponentComputeResourceRequirements>
-
builder
public static InferenceComponentComputeResourceRequirements.Builder builder()
-
serializableBuilderClass
public static Class<? extends InferenceComponentComputeResourceRequirements.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
-
-