Class CfnVolumeProps.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnVolumeProps.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnVolumeProps>
- Enclosing interface:
- CfnVolumeProps
@Stability(Stable)
public static final class CfnVolumeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeProps>
A builder for 
CfnVolumeProps- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.ec2VolumeId(String ec2VolumeId) Sets the value ofCfnVolumeProps.getEc2VolumeId()mountPoint(String mountPoint) Sets the value ofCfnVolumeProps.getMountPoint()Sets the value ofCfnVolumeProps.getName()Sets the value ofCfnVolumeProps.getStackId()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
ec2VolumeIdSets the value ofCfnVolumeProps.getEc2VolumeId()- Parameters:
- ec2VolumeId- The Amazon EC2 volume ID. This parameter is required.
- Returns:
- this
 
- 
stackIdSets the value ofCfnVolumeProps.getStackId()- Parameters:
- stackId- The stack ID. This parameter is required.
- Returns:
- this
 
- 
mountPointSets the value ofCfnVolumeProps.getMountPoint()- Parameters:
- mountPoint- The volume mount point. For example, "/mnt/disk1".
- Returns:
- this
 
- 
nameSets the value ofCfnVolumeProps.getName()- Parameters:
- name- The volume name. Volume names are a maximum of 128 characters.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnVolumeProps>
- Returns:
- a new instance of CfnVolumeProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-