Interface GpuInfo.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GpuInfo.Builder,
,GpuInfo> SdkBuilder<GpuInfo.Builder,
,GpuInfo> SdkPojo
- Enclosing class:
GpuInfo
-
Method Summary
Modifier and TypeMethodDescriptiongpus
(Collection<Gpu> gpus) Describes the GPU accelerators for the instance type.gpus
(Consumer<Gpu.Builder>... gpus) Describes the GPU accelerators for the instance type.Describes the GPU accelerators for the instance type.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 Details
-
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
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
Describes the GPU accelerators for the instance type.
This is a convenience method that creates an instance of theGpu.Builder
avoiding the need to create one manually viaGpu.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togpus(List<Gpu>)
.- Parameters:
gpus
- a consumer that will call methods onGpu.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-