public static interface InstanceHardware.Builder extends SdkPojo, CopyableBuilder<InstanceHardware.Builder,InstanceHardware>
| Modifier and Type | Method and Description |
|---|---|
InstanceHardware.Builder |
cpuCount(Integer cpuCount)
The number of vCPUs the instance has.
|
InstanceHardware.Builder |
disks(Collection<Disk> disks)
The disks attached to the instance.
|
InstanceHardware.Builder |
disks(Consumer<Disk.Builder>... disks)
The disks attached to the instance.
|
InstanceHardware.Builder |
disks(Disk... disks)
The disks attached to the instance.
|
InstanceHardware.Builder |
ramSizeInGb(Float ramSizeInGb)
The amount of RAM in GB on the instance (e.g.,
1.0). |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInstanceHardware.Builder cpuCount(Integer cpuCount)
The number of vCPUs the instance has.
cpuCount - The number of vCPUs the instance has.InstanceHardware.Builder disks(Collection<Disk> disks)
The disks attached to the instance.
disks - The disks attached to the instance.InstanceHardware.Builder disks(Disk... disks)
The disks attached to the instance.
disks - The disks attached to the instance.InstanceHardware.Builder disks(Consumer<Disk.Builder>... disks)
The disks attached to the instance.
This is a convenience method that creates an instance of theDisk.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.
disks - a consumer that will call methods on
Disk.Builder#disks(java.util.Collection) InstanceHardware.Builder ramSizeInGb(Float ramSizeInGb)
The amount of RAM in GB on the instance (e.g., 1.0).
ramSizeInGb - The amount of RAM in GB on the instance (e.g., 1.0).Copyright © 2023. All rights reserved.