Interface InstanceHardware.Builder

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

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

    • cpuCount

      InstanceHardware.Builder cpuCount(Integer cpuCount)

      The number of vCPUs the instance has.

      Parameters:
      cpuCount - The number of vCPUs the instance has.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • disks

      The disks attached to the instance.

      Parameters:
      disks - The disks attached to the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • disks

      InstanceHardware.Builder disks(Disk... disks)

      The disks attached to the instance.

      Parameters:
      disks - The disks attached to the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • disks

      The disks attached to the instance.

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

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

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

      InstanceHardware.Builder ramSizeInGb(Float ramSizeInGb)

      The amount of RAM in GB on the instance (1.0).

      Parameters:
      ramSizeInGb - The amount of RAM in GB on the instance (1.0).
      Returns:
      Returns a reference to this object so that method calls can be chained together.