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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GpuDeviceInfo.Buildercount(Integer count)The number of GPUs for the instance type.GpuDeviceInfo.BuildergpuPartitionSize(Double gpuPartitionSize)The size of each GPU as a fraction of a full GPU, between 0 (excluded) and 1 (included).GpuDeviceInfo.BuilderlogicalGpuCount(Integer logicalGpuCount)Total number of GPU devices of this type.GpuDeviceInfo.Buildermanufacturer(String manufacturer)The manufacturer of the GPU accelerator.default GpuDeviceInfo.BuildermemoryInfo(Consumer<GpuDeviceMemoryInfo.Builder> memoryInfo)Describes the memory available to the GPU accelerator.GpuDeviceInfo.BuildermemoryInfo(GpuDeviceMemoryInfo memoryInfo)Describes the memory available to the GPU accelerator.GpuDeviceInfo.Buildername(String name)The name of the GPU accelerator.GpuDeviceInfo.Builderworkloads(String... workloads)A list of workload types this GPU supports.GpuDeviceInfo.Builderworkloads(Collection<String> workloads)A list of workload types this GPU supports.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
GpuDeviceInfo.Builder name(String 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
GpuDeviceInfo.Builder manufacturer(String 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
GpuDeviceInfo.Builder count(Integer 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
GpuDeviceInfo.Builder logicalGpuCount(Integer 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
GpuDeviceInfo.Builder gpuPartitionSize(Double 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
GpuDeviceInfo.Builder workloads(Collection<String> 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
GpuDeviceInfo.Builder workloads(String... 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
GpuDeviceInfo.Builder memoryInfo(GpuDeviceMemoryInfo 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
default GpuDeviceInfo.Builder memoryInfo(Consumer<GpuDeviceMemoryInfo.Builder> 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:
memoryInfo(GpuDeviceMemoryInfo)
-
-