Interface GpuInfo.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<GpuInfo.Builder,GpuInfo>
,SdkBuilder<GpuInfo.Builder,GpuInfo>
,SdkPojo
- Enclosing class:
- GpuInfo
public static interface GpuInfo.Builder extends SdkPojo, CopyableBuilder<GpuInfo.Builder,GpuInfo>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GpuInfo.Builder
gpus(Collection<GpuDeviceInfo> gpus)
Describes the GPU accelerators for the instance type.GpuInfo.Builder
gpus(Consumer<GpuDeviceInfo.Builder>... gpus)
Describes the GPU accelerators for the instance type.GpuInfo.Builder
gpus(GpuDeviceInfo... gpus)
Describes the GPU accelerators for the instance type.GpuInfo.Builder
totalGpuMemoryInMiB(Integer totalGpuMemoryInMiB)
The total size of the memory for the GPU accelerators for the instance type, in MiB.-
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, sdkFields
-
-
-
-
Method Detail
-
gpus
GpuInfo.Builder gpus(Collection<GpuDeviceInfo> gpus)
Describes the GPU accelerators for the instance type.
- Parameters:
gpus
- Describes the GPU accelerators for the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gpus
GpuInfo.Builder gpus(GpuDeviceInfo... gpus)
Describes the GPU accelerators for the instance type.
- Parameters:
gpus
- Describes the GPU accelerators for the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gpus
GpuInfo.Builder gpus(Consumer<GpuDeviceInfo.Builder>... gpus)
Describes the GPU accelerators for the instance type.
This is a convenience method that creates an instance of theGpuDeviceInfo.Builder
avoiding the need to create one manually viaGpuDeviceInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#gpus(List
.) - Parameters:
gpus
- a consumer that will call methods onGpuDeviceInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#gpus(java.util.Collection
)
-
totalGpuMemoryInMiB
GpuInfo.Builder totalGpuMemoryInMiB(Integer totalGpuMemoryInMiB)
The total size of the memory for the GPU accelerators for the instance type, in MiB.
- Parameters:
totalGpuMemoryInMiB
- The total size of the memory for the GPU accelerators for the instance type, in MiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-