Class CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.imagebuilder.CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty>
- Enclosing interface:
CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty
@Stability(Stable)
public static final class CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deleteOnTermination(Boolean deleteOnTermination) deleteOnTermination(IResolvable deleteOnTermination) encrypted(IResolvable encrypted) snapshotId(String snapshotId) throughput(Number throughput) volumeSize(Number volumeSize) volumeType(String volumeType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteOnTermination
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder deleteOnTermination(Boolean deleteOnTermination) Sets the value ofCfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.getDeleteOnTermination()- Parameters:
deleteOnTermination- Configures delete on termination of the associated device.- Returns:
this
-
deleteOnTermination
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder deleteOnTermination(IResolvable deleteOnTermination) Sets the value ofCfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.getDeleteOnTermination()- Parameters:
deleteOnTermination- Configures delete on termination of the associated device.- Returns:
this
-
encrypted
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder encrypted(Boolean encrypted) Sets the value ofCfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.getEncrypted()- Parameters:
encrypted- Use to configure device encryption.- Returns:
this
-
encrypted
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder encrypted(IResolvable encrypted) Sets the value ofCfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.getEncrypted()- Parameters:
encrypted- Use to configure device encryption.- Returns:
this
-
iops
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder iops(Number iops) - Parameters:
iops- Use to configure device IOPS.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.getKmsKeyId()- Parameters:
kmsKeyId- The Amazon Resource Name (ARN) that uniquely identifies the KMS key to use when encrypting the device. This can be either the Key ARN or the Alias ARN. For more information, see Key identifiers (KeyId) in the AWS Key Management Service Developer Guide .- Returns:
this
-
snapshotId
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder snapshotId(String snapshotId) Sets the value ofCfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.getSnapshotId()- Parameters:
snapshotId- The snapshot that defines the device contents.- Returns:
this
-
throughput
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder throughput(Number throughput) Sets the value ofCfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.getThroughput()- Parameters:
throughput- For GP3 volumes only – The throughput in MiB/s that the volume supports.- Returns:
this
-
volumeSize
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder volumeSize(Number volumeSize) Sets the value ofCfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.getVolumeSize()- Parameters:
volumeSize- Overrides the volume size of the device.- Returns:
this
-
volumeType
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.Builder volumeType(String volumeType) Sets the value ofCfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty.getVolumeType()- Parameters:
volumeType- Overrides the volume type of the device.- Returns:
this
-
build
@Stability(Stable) public CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty>- Returns:
- a new instance of
CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-