Interface InferenceAcceleratorInfo.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InferenceAcceleratorInfo.Builder,,InferenceAcceleratorInfo> SdkBuilder<InferenceAcceleratorInfo.Builder,,InferenceAcceleratorInfo> SdkPojo
- Enclosing class:
InferenceAcceleratorInfo
public static interface InferenceAcceleratorInfo.Builder
extends SdkPojo, CopyableBuilder<InferenceAcceleratorInfo.Builder,InferenceAcceleratorInfo>
-
Method Summary
Modifier and TypeMethodDescriptionaccelerators(Collection<InferenceDeviceInfo> accelerators) Describes the Inference accelerators for the instance type.accelerators(Consumer<InferenceDeviceInfo.Builder>... accelerators) Describes the Inference accelerators for the instance type.accelerators(InferenceDeviceInfo... accelerators) Describes the Inference accelerators for the instance type.totalInferenceMemoryInMiB(Integer totalInferenceMemoryInMiB) The total size of the memory for the inference accelerators for the instance type, in MiB.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, sdkFields
-
Method Details
-
accelerators
Describes the Inference accelerators for the instance type.
- Parameters:
accelerators- Describes the Inference accelerators for the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accelerators
Describes the Inference accelerators for the instance type.
- Parameters:
accelerators- Describes the Inference accelerators for the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accelerators
InferenceAcceleratorInfo.Builder accelerators(Consumer<InferenceDeviceInfo.Builder>... accelerators) Describes the Inference accelerators for the instance type.
This is a convenience method that creates an instance of theInferenceDeviceInfo.Builderavoiding the need to create one manually viaInferenceDeviceInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccelerators(List<InferenceDeviceInfo>).- Parameters:
accelerators- a consumer that will call methods onInferenceDeviceInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalInferenceMemoryInMiB
The total size of the memory for the inference accelerators for the instance type, in MiB.
- Parameters:
totalInferenceMemoryInMiB- The total size of the memory for the inference accelerators for the instance type, in MiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-