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 Summary
Constructors -
Method Summary
Modifier 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
-
Builder
public Builder()
-
-
Method Details
-
ec2VolumeId
Sets the value ofCfnVolumeProps.getEc2VolumeId()- Parameters:
ec2VolumeId- The Amazon EC2 volume ID. This parameter is required.- Returns:
this
-
stackId
Sets the value ofCfnVolumeProps.getStackId()- Parameters:
stackId- The stack ID. This parameter is required.- Returns:
this
-
mountPoint
Sets the value ofCfnVolumeProps.getMountPoint()- Parameters:
mountPoint- The volume mount point. For example, "/mnt/disk1".- Returns:
this
-
name
Sets the value ofCfnVolumeProps.getName()- Parameters:
name- The volume name. Volume names are a maximum of 128 characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumeProps>- Returns:
- a new instance of
CfnVolumeProps - Throws:
NullPointerException- if any required attribute was not provided
-