Class CfnVolume.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnVolume.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolume>
- Enclosing class:
CfnVolume
@Stability(Stable)
public static final class CfnVolume.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolume>
A fluent builder for
CfnVolume
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnVolume.Builder
ec2VolumeId
(String ec2VolumeId) The Amazon EC2 volume ID.mountPoint
(String mountPoint) The volume mount point.The volume name.The stack ID.
-
Method Details
-
create
- Parameters:
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.- Returns:
- a new instance of
CfnVolume.Builder
.
-
ec2VolumeId
The Amazon EC2 volume ID.- Parameters:
ec2VolumeId
- The Amazon EC2 volume ID. This parameter is required.- Returns:
this
-
stackId
The stack ID.- Parameters:
stackId
- The stack ID. This parameter is required.- Returns:
this
-
mountPoint
The volume mount point.For example, "/mnt/disk1".
- Parameters:
mountPoint
- The volume mount point. This parameter is required.- Returns:
this
-
name
The volume name.Volume names are a maximum of 128 characters.
- Parameters:
name
- The volume name. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVolume>
-