Interface GpuInfo.Builder

    • Method Detail

      • gpus

        GpuInfo.Builder gpus​(Collection<Gpu> 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​(Gpu... 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<Gpu.Builder>... gpus)

        Describes the GPU accelerators for the instance type.

        This is a convenience method that creates an instance of the Gpu.Builder avoiding the need to create one manually via Gpu.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 on Gpu.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #gpus(java.util.Collection)