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