Class CfnInstancePropsMixin.DiskProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnInstancePropsMixin.DiskProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstancePropsMixin.DiskProperty>
- Enclosing interface:
CfnInstancePropsMixin.DiskProperty
@Stability(Stable)
public static final class CfnInstancePropsMixin.DiskProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstancePropsMixin.DiskProperty>
A builder for
CfnInstancePropsMixin.DiskProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachedTo(String attachedTo) Sets the value ofCfnInstancePropsMixin.DiskProperty.getAttachedTo()attachmentState(String attachmentState) Sets the value ofCfnInstancePropsMixin.DiskProperty.getAttachmentState()build()Builds the configured instance.Sets the value ofCfnInstancePropsMixin.DiskProperty.getDiskName()Sets the value ofCfnInstancePropsMixin.DiskProperty.getIops()isSystemDisk(Boolean isSystemDisk) Sets the value ofCfnInstancePropsMixin.DiskProperty.getIsSystemDisk()isSystemDisk(IResolvable isSystemDisk) Sets the value ofCfnInstancePropsMixin.DiskProperty.getIsSystemDisk()Sets the value ofCfnInstancePropsMixin.DiskProperty.getPath()Sets the value ofCfnInstancePropsMixin.DiskProperty.getSizeInGb()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachedTo
Sets the value ofCfnInstancePropsMixin.DiskProperty.getAttachedTo()- Parameters:
attachedTo- The resources to which the disk is attached.- Returns:
this
-
attachmentState
@Stability(Stable) public CfnInstancePropsMixin.DiskProperty.Builder attachmentState(String attachmentState) Sets the value ofCfnInstancePropsMixin.DiskProperty.getAttachmentState()- Parameters:
attachmentState- (Deprecated) The attachment state of the disk.In releases prior to November 14, 2017, this parameter returned
attachedfor system disks in the API response. It is now deprecated, but still included in the response. UseisAttachedinstead.- Returns:
this
-
diskName
Sets the value ofCfnInstancePropsMixin.DiskProperty.getDiskName()- Parameters:
diskName- The unique name of the disk.- Returns:
this
-
iops
Sets the value ofCfnInstancePropsMixin.DiskProperty.getIops()- Parameters:
iops- The input/output operations per second (IOPS) of the disk.- Returns:
this
-
isSystemDisk
@Stability(Stable) public CfnInstancePropsMixin.DiskProperty.Builder isSystemDisk(Boolean isSystemDisk) Sets the value ofCfnInstancePropsMixin.DiskProperty.getIsSystemDisk()- Parameters:
isSystemDisk- A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).- Returns:
this
-
isSystemDisk
@Stability(Stable) public CfnInstancePropsMixin.DiskProperty.Builder isSystemDisk(IResolvable isSystemDisk) Sets the value ofCfnInstancePropsMixin.DiskProperty.getIsSystemDisk()- Parameters:
isSystemDisk- A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).- Returns:
this
-
path
Sets the value ofCfnInstancePropsMixin.DiskProperty.getPath()- Parameters:
path- The disk path.- Returns:
this
-
sizeInGb
Sets the value ofCfnInstancePropsMixin.DiskProperty.getSizeInGb()- Parameters:
sizeInGb- The size of the disk in GB.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstancePropsMixin.DiskProperty>- Returns:
- a new instance of
CfnInstancePropsMixin.DiskProperty - Throws:
NullPointerException- if any required attribute was not provided
-