Interface GpuDeviceInfo.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GpuDeviceInfo.Builder,,GpuDeviceInfo> SdkBuilder<GpuDeviceInfo.Builder,,GpuDeviceInfo> SdkPojo
- Enclosing class:
GpuDeviceInfo
@Mutable
@NotThreadSafe
public static interface GpuDeviceInfo.Builder
extends SdkPojo, CopyableBuilder<GpuDeviceInfo.Builder,GpuDeviceInfo>
-
Method Summary
Modifier and TypeMethodDescriptionThe number of GPUs for the instance type.gpuPartitionSize(Double gpuPartitionSize) The size of each GPU as a fraction of a full GPU, between 0 (excluded) and 1 (included).logicalGpuCount(Integer logicalGpuCount) Total number of GPU devices of this type.manufacturer(String manufacturer) The manufacturer of the GPU accelerator.default GpuDeviceInfo.BuildermemoryInfo(Consumer<GpuDeviceMemoryInfo.Builder> memoryInfo) Describes the memory available to the GPU accelerator.memoryInfo(GpuDeviceMemoryInfo memoryInfo) Describes the memory available to the GPU accelerator.The name of the GPU accelerator.A list of workload types this GPU supports.workloads(Collection<String> workloads) A list of workload types this GPU supports.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, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the GPU accelerator.
- Parameters:
name- The name of the GPU accelerator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
manufacturer
The manufacturer of the GPU accelerator.
- Parameters:
manufacturer- The manufacturer of the GPU accelerator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
count
The number of GPUs for the instance type.
- Parameters:
count- The number of GPUs for the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logicalGpuCount
Total number of GPU devices of this type.
- Parameters:
logicalGpuCount- Total number of GPU devices of this type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gpuPartitionSize
The size of each GPU as a fraction of a full GPU, between 0 (excluded) and 1 (included).
- Parameters:
gpuPartitionSize- The size of each GPU as a fraction of a full GPU, between 0 (excluded) and 1 (included).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workloads
A list of workload types this GPU supports.
- Parameters:
workloads- A list of workload types this GPU supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workloads
A list of workload types this GPU supports.
- Parameters:
workloads- A list of workload types this GPU supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryInfo
Describes the memory available to the GPU accelerator.
- Parameters:
memoryInfo- Describes the memory available to the GPU accelerator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryInfo
Describes the memory available to the GPU accelerator.
This is a convenience method that creates an instance of theGpuDeviceMemoryInfo.Builderavoiding the need to create one manually viaGpuDeviceMemoryInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemoryInfo(GpuDeviceMemoryInfo).- Parameters:
memoryInfo- a consumer that will call methods onGpuDeviceMemoryInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-