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 Summary
Modifier and TypeMethodDescriptionThe number of vCPUs the instance has.disks(Collection<Disk> disks) The disks attached to the instance.disks(Consumer<Disk.Builder>... disks) The disks attached to the instance.The disks attached to the instance.ramSizeInGb(Float ramSizeInGb) The amount of RAM in GB on the instance (1.0).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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 theDisk.Builderavoiding the need to create one manually viaDisk.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todisks(List<Disk>).- Parameters:
disks- a consumer that will call methods onDisk.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-