Class CfnVolume.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.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 TypeMethodDescriptionSpecifies the ID of the volume backup to use to create a new volume.build()static CfnVolume.BuilderThe name of the volume.ontapConfiguration(IResolvable ontapConfiguration) The configuration of an Amazon FSx for NetApp ONTAP volume.ontapConfiguration(CfnVolume.OntapConfigurationProperty ontapConfiguration) The configuration of an Amazon FSx for NetApp ONTAP volume.openZfsConfiguration(IResolvable openZfsConfiguration) The configuration of an Amazon FSx for OpenZFS volume.openZfsConfiguration(CfnVolume.OpenZFSConfigurationProperty openZfsConfiguration) The configuration of an Amazon FSx for OpenZFS volume.An array of key-value pairs to apply to this resource.volumeType(String volumeType) The type of the volume.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnVolume.Builder.
-
name
The name of the volume.- Parameters:
name- The name of the volume. This parameter is required.- Returns:
this
-
backupId
Specifies the ID of the volume backup to use to create a new volume.- Parameters:
backupId- Specifies the ID of the volume backup to use to create a new volume. This parameter is required.- Returns:
this
-
ontapConfiguration
The configuration of an Amazon FSx for NetApp ONTAP volume.- Parameters:
ontapConfiguration- The configuration of an Amazon FSx for NetApp ONTAP volume. This parameter is required.- Returns:
this
-
ontapConfiguration
@Stability(Stable) public CfnVolume.Builder ontapConfiguration(CfnVolume.OntapConfigurationProperty ontapConfiguration) The configuration of an Amazon FSx for NetApp ONTAP volume.- Parameters:
ontapConfiguration- The configuration of an Amazon FSx for NetApp ONTAP volume. This parameter is required.- Returns:
this
-
openZfsConfiguration
The configuration of an Amazon FSx for OpenZFS volume.- Parameters:
openZfsConfiguration- The configuration of an Amazon FSx for OpenZFS volume. This parameter is required.- Returns:
this
-
openZfsConfiguration
@Stability(Stable) public CfnVolume.Builder openZfsConfiguration(CfnVolume.OpenZFSConfigurationProperty openZfsConfiguration) The configuration of an Amazon FSx for OpenZFS volume.- Parameters:
openZfsConfiguration- The configuration of an Amazon FSx for OpenZFS volume. This parameter is required.- Returns:
this
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
-
volumeType
The type of the volume.- Parameters:
volumeType- The type of the volume. This parameter is required.- Returns:
this
-
build
-