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