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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceHardware.BuildercpuCount(Integer cpuCount)The number of vCPUs the instance has.InstanceHardware.Builderdisks(Collection<Disk> disks)The disks attached to the instance.InstanceHardware.Builderdisks(Consumer<Disk.Builder>... disks)The disks attached to the instance.InstanceHardware.Builderdisks(Disk... disks)The disks attached to the instance.InstanceHardware.BuilderramSizeInGb(Float ramSizeInGb)The amount of RAM in GB on the instance (1.0).-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
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 theDisk.Builderavoiding the need to create one manually viaDisk.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#disks(List.) - 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:
#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.
-
-