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