Interface NeuronInfo.Builder

All Superinterfaces:
Buildable, CopyableBuilder<NeuronInfo.Builder,NeuronInfo>, SdkBuilder<NeuronInfo.Builder,NeuronInfo>, SdkPojo
Enclosing class:
NeuronInfo

public static interface NeuronInfo.Builder extends SdkPojo, CopyableBuilder<NeuronInfo.Builder,NeuronInfo>
  • Method Details

    • neuronDevices

      NeuronInfo.Builder neuronDevices(Collection<NeuronDeviceInfo> neuronDevices)

      Describes the neuron accelerators for the instance type.

      Parameters:
      neuronDevices - Describes the neuron accelerators for the instance type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • neuronDevices

      NeuronInfo.Builder neuronDevices(NeuronDeviceInfo... neuronDevices)

      Describes the neuron accelerators for the instance type.

      Parameters:
      neuronDevices - Describes the neuron accelerators for the instance type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • neuronDevices

      NeuronInfo.Builder neuronDevices(Consumer<NeuronDeviceInfo.Builder>... neuronDevices)

      Describes the neuron accelerators for the instance type.

      This is a convenience method that creates an instance of the NeuronDeviceInfo.Builder avoiding the need to create one manually via NeuronDeviceInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to neuronDevices(List<NeuronDeviceInfo>).

      Parameters:
      neuronDevices - a consumer that will call methods on NeuronDeviceInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • totalNeuronDeviceMemoryInMiB

      NeuronInfo.Builder totalNeuronDeviceMemoryInMiB(Integer totalNeuronDeviceMemoryInMiB)

      The total size of the memory for the neuron accelerators for the instance type, in MiB.

      Parameters:
      totalNeuronDeviceMemoryInMiB - The total size of the memory for the neuron accelerators for the instance type, in MiB.
      Returns:
      Returns a reference to this object so that method calls can be chained together.