Interface InstanceHardware.Builder

    • Method Detail

      • 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

        InstanceHardware.Builder disks​(Collection<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

        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

        InstanceHardware.Builder disks​(Consumer<Disk.Builder>... 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).

        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:
        #disks(java.util.Collection)
      • 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.