Class CfnVolumeAttachmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVolumeAttachmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumeAttachmentMixinProps>
- Enclosing interface:
CfnVolumeAttachmentMixinProps
@Stability(Stable)
public static final class CfnVolumeAttachmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeAttachmentMixinProps>
A builder for
CfnVolumeAttachmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVolumeAttachmentMixinProps.getDevice()ebsCardIndex(Number ebsCardIndex) Sets the value ofCfnVolumeAttachmentMixinProps.getEbsCardIndex()instanceId(String instanceId) Sets the value ofCfnVolumeAttachmentMixinProps.getInstanceId()instanceId(IInstanceRef instanceId) Sets the value ofCfnVolumeAttachmentMixinProps.getInstanceId()Sets the value ofCfnVolumeAttachmentMixinProps.getVolumeId()volumeId(IVolumeRef volumeId) Sets the value ofCfnVolumeAttachmentMixinProps.getVolumeId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
device
Sets the value ofCfnVolumeAttachmentMixinProps.getDevice()- Parameters:
device- The device name (for example,/dev/sdhorxvdh).- Returns:
this
-
ebsCardIndex
Sets the value ofCfnVolumeAttachmentMixinProps.getEbsCardIndex()- Parameters:
ebsCardIndex- The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.- Returns:
this
-
instanceId
Sets the value ofCfnVolumeAttachmentMixinProps.getInstanceId()- Parameters:
instanceId- The ID of the instance to which the volume attaches. This value can be a reference to anAWS::EC2::Instanceresource, or it can be the physical ID of an existing EC2 instance.- Returns:
this
-
instanceId
Sets the value ofCfnVolumeAttachmentMixinProps.getInstanceId()- Parameters:
instanceId- The ID of the instance to which the volume attaches. This value can be a reference to anAWS::EC2::Instanceresource, or it can be the physical ID of an existing EC2 instance.- Returns:
this
-
volumeId
Sets the value ofCfnVolumeAttachmentMixinProps.getVolumeId()- Parameters:
volumeId- The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone. This value can be a reference to anAWS::EC2::Volumeresource, or it can be the volume ID of an existing Amazon EBS volume.- Returns:
this
-
volumeId
Sets the value ofCfnVolumeAttachmentMixinProps.getVolumeId()- Parameters:
volumeId- The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone. This value can be a reference to anAWS::EC2::Volumeresource, or it can be the volume ID of an existing Amazon EBS volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumeAttachmentMixinProps>- Returns:
- a new instance of
CfnVolumeAttachmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-