Class CfnVolumeProps.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnVolumeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumeProps>
- Enclosing interface:
CfnVolumeProps
@Stability(Stable)
public static final class CfnVolumeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeProps>
A builder for
CfnVolumeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) Sets the value ofCfnVolumeProps.getAvailabilityZone()build()Builds the configured instance.Sets the value ofCfnVolumeProps.getEncrypted()encrypted(IResolvable encrypted) Sets the value ofCfnVolumeProps.getEncrypted()Sets the value ofCfnVolumeProps.getIops()Sets the value ofCfnVolumeProps.getKmsKeyId()Sets the value ofCfnVolumeProps.getSizeInGb()snapshotId(String snapshotId) Sets the value ofCfnVolumeProps.getSnapshotId()tagSpecifications(List<? extends Object> tagSpecifications) Sets the value ofCfnVolumeProps.getTagSpecifications()tagSpecifications(IResolvable tagSpecifications) Sets the value ofCfnVolumeProps.getTagSpecifications()throughput(Number throughput) Sets the value ofCfnVolumeProps.getThroughput()volumeType(String volumeType) Sets the value ofCfnVolumeProps.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
Sets the value ofCfnVolumeProps.getAvailabilityZone()- Parameters:
availabilityZone- The Availability Zone in which to create the volume. This parameter is required.- Returns:
this
-
encrypted
Sets the value ofCfnVolumeProps.getEncrypted()- Parameters:
encrypted- Indicates whether the volume should be encrypted.- Returns:
this
-
encrypted
Sets the value ofCfnVolumeProps.getEncrypted()- Parameters:
encrypted- Indicates whether the volume should be encrypted.- Returns:
this
-
iops
Sets the value ofCfnVolumeProps.getIops()- Parameters:
iops- The number of I/O operations per second (IOPS).- Returns:
this
-
kmsKeyId
Sets the value ofCfnVolumeProps.getKmsKeyId()- Parameters:
kmsKeyId- The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.- Returns:
this
-
sizeInGb
Sets the value ofCfnVolumeProps.getSizeInGb()- Parameters:
sizeInGb- The size of the volume, in GiBs.- Returns:
this
-
snapshotId
Sets the value ofCfnVolumeProps.getSnapshotId()- Parameters:
snapshotId- The snapshot from which to create the volume.- Returns:
this
-
tagSpecifications
Sets the value ofCfnVolumeProps.getTagSpecifications()- Parameters:
tagSpecifications- The tags passed to EBS volume.- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnVolumeProps.Builder tagSpecifications(List<? extends Object> tagSpecifications) Sets the value ofCfnVolumeProps.getTagSpecifications()- Parameters:
tagSpecifications- The tags passed to EBS volume.- Returns:
this
-
throughput
Sets the value ofCfnVolumeProps.getThroughput()- Parameters:
throughput- The throughput to provision for a volume, with a maximum of 1,000 MiB/s.- Returns:
this
-
volumeType
Sets the value ofCfnVolumeProps.getVolumeType()- Parameters:
volumeType- The volume type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumeProps>- Returns:
- a new instance of
CfnVolumeProps - Throws:
NullPointerException- if any required attribute was not provided
-