Class CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty>
- Enclosing interface:
CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty
@Stability(Stable)
public static final class CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deleteOnTermination
(Boolean deleteOnTermination) deleteOnTermination
(IResolvable deleteOnTermination) encrypted
(IResolvable encrypted) Sets the value ofCfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.getIops()
Sets the value ofCfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.getKmsKeyId()
snapshotId
(String snapshotId) throughput
(Number throughput) volumeSize
(Number volumeSize) volumeType
(String volumeType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteOnTermination
@Stability(Stable) public CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder deleteOnTermination(Boolean deleteOnTermination) Sets the value ofCfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.getDeleteOnTermination()
- Parameters:
deleteOnTermination
- Configures delete on termination of the associated device.- Returns:
this
-
deleteOnTermination
@Stability(Stable) public CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder deleteOnTermination(IResolvable deleteOnTermination) Sets the value ofCfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.getDeleteOnTermination()
- Parameters:
deleteOnTermination
- Configures delete on termination of the associated device.- Returns:
this
-
encrypted
@Stability(Stable) public CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder encrypted(Boolean encrypted) - Parameters:
encrypted
- Use to configure device encryption.- Returns:
this
-
encrypted
@Stability(Stable) public CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder encrypted(IResolvable encrypted) - Parameters:
encrypted
- Use to configure device encryption.- Returns:
this
-
iops
@Stability(Stable) public CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder iops(Number iops) Sets the value ofCfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.getIops()
- Parameters:
iops
- Use to configure device IOPS.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnImageRecipe.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 CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder snapshotId(String snapshotId) - Parameters:
snapshotId
- The snapshot that defines the device contents.- Returns:
this
-
throughput
@Stability(Stable) public CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder throughput(Number throughput) - Parameters:
throughput
- For GP3 volumes only – The throughput in MiB/s that the volume supports.- Returns:
this
-
volumeSize
@Stability(Stable) public CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder volumeSize(Number volumeSize) - Parameters:
volumeSize
- Overrides the volume size of the device.- Returns:
this
-
volumeType
@Stability(Stable) public CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty.Builder volumeType(String volumeType) - Parameters:
volumeType
- Overrides the volume type of the device.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty>
- Returns:
- a new instance of
CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-