public static interface InferenceAcceleratorInfo.Builder extends SdkPojo, CopyableBuilder<InferenceAcceleratorInfo.Builder,InferenceAcceleratorInfo>
Modifier and Type | Method and Description |
---|---|
InferenceAcceleratorInfo.Builder |
accelerators(Collection<InferenceDeviceInfo> accelerators)
Describes the Inference accelerators for the instance type.
|
InferenceAcceleratorInfo.Builder |
accelerators(Consumer<InferenceDeviceInfo.Builder>... accelerators)
Describes the Inference accelerators for the instance type.
|
InferenceAcceleratorInfo.Builder |
accelerators(InferenceDeviceInfo... accelerators)
Describes the Inference accelerators for the instance type.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
InferenceAcceleratorInfo.Builder accelerators(Collection<InferenceDeviceInfo> accelerators)
Describes the Inference accelerators for the instance type.
accelerators
- Describes the Inference accelerators for the instance type.InferenceAcceleratorInfo.Builder accelerators(InferenceDeviceInfo... accelerators)
Describes the Inference accelerators for the instance type.
accelerators
- Describes the Inference accelerators for the instance type.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.Builder
avoiding the need to create one
manually via InferenceDeviceInfo.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately
and its result is passed to #accelerators(List
.
accelerators
- a consumer that will call methods on
InferenceDeviceInfo.Builder
#accelerators(java.util.Collection)
Copyright © 2023. All rights reserved.