Class CfnVolumeProps.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.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 TypeMethodDescriptionSets the value ofCfnVolumeProps.getBackupId()build()Builds the configured instance.Sets the value ofCfnVolumeProps.getName()ontapConfiguration(IResolvable ontapConfiguration) Sets the value ofCfnVolumeProps.getOntapConfiguration()ontapConfiguration(CfnVolume.OntapConfigurationProperty ontapConfiguration) Sets the value ofCfnVolumeProps.getOntapConfiguration()openZfsConfiguration(IResolvable openZfsConfiguration) Sets the value ofCfnVolumeProps.getOpenZfsConfiguration()openZfsConfiguration(CfnVolume.OpenZFSConfigurationProperty openZfsConfiguration) Sets the value ofCfnVolumeProps.getOpenZfsConfiguration()Sets the value ofCfnVolumeProps.getTags()volumeType(String volumeType) Sets the value ofCfnVolumeProps.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnVolumeProps.getName()- Parameters:
name- The name of the volume. This parameter is required.- Returns:
this
-
backupId
Sets the value ofCfnVolumeProps.getBackupId()- Parameters:
backupId- Specifies the ID of the volume backup to use to create a new volume.- Returns:
this
-
ontapConfiguration
Sets the value ofCfnVolumeProps.getOntapConfiguration()- Parameters:
ontapConfiguration- The configuration of an Amazon FSx for NetApp ONTAP volume.- Returns:
this
-
ontapConfiguration
@Stability(Stable) public CfnVolumeProps.Builder ontapConfiguration(CfnVolume.OntapConfigurationProperty ontapConfiguration) Sets the value ofCfnVolumeProps.getOntapConfiguration()- Parameters:
ontapConfiguration- The configuration of an Amazon FSx for NetApp ONTAP volume.- Returns:
this
-
openZfsConfiguration
@Stability(Stable) public CfnVolumeProps.Builder openZfsConfiguration(IResolvable openZfsConfiguration) Sets the value ofCfnVolumeProps.getOpenZfsConfiguration()- Parameters:
openZfsConfiguration- The configuration of an Amazon FSx for OpenZFS volume.- Returns:
this
-
openZfsConfiguration
@Stability(Stable) public CfnVolumeProps.Builder openZfsConfiguration(CfnVolume.OpenZFSConfigurationProperty openZfsConfiguration) Sets the value ofCfnVolumeProps.getOpenZfsConfiguration()- Parameters:
openZfsConfiguration- The configuration of an Amazon FSx for OpenZFS volume.- Returns:
this
-
tags
Sets the value ofCfnVolumeProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
volumeType
Sets the value ofCfnVolumeProps.getVolumeType()- Parameters:
volumeType- The type of the volume.- 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
-