@Stability(value=Stable) public static final class CfnDiskProps.Builder extends Object implements software.amazon.jsii.Builder<CfnDiskProps>
CfnDiskProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnDiskProps.Builder |
addOns(IResolvable addOns)
Sets the value of
CfnDiskProps.getAddOns() |
CfnDiskProps.Builder |
addOns(List<? extends Object> addOns)
Sets the value of
CfnDiskProps.getAddOns() |
CfnDiskProps.Builder |
availabilityZone(String availabilityZone)
Sets the value of
CfnDiskProps.getAvailabilityZone() |
CfnDiskProps |
build()
Builds the configured instance.
|
CfnDiskProps.Builder |
diskName(String diskName)
Sets the value of
CfnDiskProps.getDiskName() |
CfnDiskProps.Builder |
sizeInGb(Number sizeInGb)
Sets the value of
CfnDiskProps.getSizeInGb() |
CfnDiskProps.Builder |
tags(List<? extends CfnTag> tags)
Sets the value of
CfnDiskProps.getTags() |
@Stability(value=Stable) public CfnDiskProps.Builder diskName(String diskName)
CfnDiskProps.getDiskName()diskName - The name of the disk. This parameter is required.this@Stability(value=Stable) public CfnDiskProps.Builder sizeInGb(Number sizeInGb)
CfnDiskProps.getSizeInGb()sizeInGb - The size of the disk in GB. This parameter is required.this@Stability(value=Stable) public CfnDiskProps.Builder addOns(IResolvable addOns)
CfnDiskProps.getAddOns()addOns - An array of add-ons for the disk.
If the disk has an add-on enabled when performing a delete disk request, the add-on is automatically disabled before the disk is deleted.
this@Stability(value=Stable) public CfnDiskProps.Builder addOns(List<? extends Object> addOns)
CfnDiskProps.getAddOns()addOns - An array of add-ons for the disk.
If the disk has an add-on enabled when performing a delete disk request, the add-on is automatically disabled before the disk is deleted.
this@Stability(value=Stable) public CfnDiskProps.Builder availabilityZone(String availabilityZone)
CfnDiskProps.getAvailabilityZone()availabilityZone - The AWS Region and Availability Zone location for the disk (for example, `us-east-1a` ).this@Stability(value=Stable) public CfnDiskProps.Builder tags(List<? extends CfnTag> tags)
CfnDiskProps.getTags()tags - An array of key-value pairs to apply to this resource.
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
this@Stability(value=Stable) public CfnDiskProps build()
build in interface software.amazon.jsii.Builder<CfnDiskProps>CfnDiskPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.