Class CfnInstancePropsMixin.HardwareProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.lightsail.mixins.CfnInstancePropsMixin.HardwareProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstancePropsMixin.HardwareProperty>
- Enclosing interface:
CfnInstancePropsMixin.HardwareProperty
@Stability(Stable)
public static final class CfnInstancePropsMixin.HardwareProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstancePropsMixin.HardwareProperty>
A builder for
CfnInstancePropsMixin.HardwareProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnInstancePropsMixin.HardwareProperty.getCpuCount()Sets the value ofCfnInstancePropsMixin.HardwareProperty.getDisks()disks(IResolvable disks) Sets the value ofCfnInstancePropsMixin.HardwareProperty.getDisks()ramSizeInGb(Number ramSizeInGb) Sets the value ofCfnInstancePropsMixin.HardwareProperty.getRamSizeInGb()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpuCount
Sets the value ofCfnInstancePropsMixin.HardwareProperty.getCpuCount()- Parameters:
cpuCount- The number of vCPUs the instance has.The
CpuCountproperty is read-only and should not be specified in a create instance or update instance request.- Returns:
this
-
disks
Sets the value ofCfnInstancePropsMixin.HardwareProperty.getDisks()- Parameters:
disks- The disks attached to the instance. The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it.- Returns:
this
-
disks
@Stability(Stable) public CfnInstancePropsMixin.HardwareProperty.Builder disks(List<? extends Object> disks) Sets the value ofCfnInstancePropsMixin.HardwareProperty.getDisks()- Parameters:
disks- The disks attached to the instance. The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it.- Returns:
this
-
ramSizeInGb
@Stability(Stable) public CfnInstancePropsMixin.HardwareProperty.Builder ramSizeInGb(Number ramSizeInGb) Sets the value ofCfnInstancePropsMixin.HardwareProperty.getRamSizeInGb()- Parameters:
ramSizeInGb- The amount of RAM in GB on the instance (for example,1.0).The
RamSizeInGbproperty is read-only and should not be specified in a create instance or update instance request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstancePropsMixin.HardwareProperty>- Returns:
- a new instance of
CfnInstancePropsMixin.HardwareProperty - Throws:
NullPointerException- if any required attribute was not provided
-