Class CfnVolumeMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.fsx.CfnVolumeMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumeMixinProps>
- Enclosing interface:
CfnVolumeMixinProps
@Stability(Stable)
public static final class CfnVolumeMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeMixinProps>
A builder for
CfnVolumeMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnVolumeMixinProps.getBackupId()build()Builds the configured instance.Sets the value ofCfnVolumeMixinProps.getName()ontapConfiguration(CfnVolumePropsMixin.OntapConfigurationProperty ontapConfiguration) Sets the value ofCfnVolumeMixinProps.getOntapConfiguration()ontapConfiguration(IResolvable ontapConfiguration) Sets the value ofCfnVolumeMixinProps.getOntapConfiguration()openZfsConfiguration(CfnVolumePropsMixin.OpenZFSConfigurationProperty openZfsConfiguration) Sets the value ofCfnVolumeMixinProps.getOpenZfsConfiguration()openZfsConfiguration(IResolvable openZfsConfiguration) Sets the value ofCfnVolumeMixinProps.getOpenZfsConfiguration()Sets the value ofCfnVolumeMixinProps.getTags()volumeType(String volumeType) Sets the value ofCfnVolumeMixinProps.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupId
Sets the value ofCfnVolumeMixinProps.getBackupId()- Parameters:
backupId- Specifies the ID of the volume backup to use to create a new volume.- Returns:
this
-
name
Sets the value ofCfnVolumeMixinProps.getName()- Parameters:
name- The name of the volume.- Returns:
this
-
ontapConfiguration
@Stability(Stable) public CfnVolumeMixinProps.Builder ontapConfiguration(IResolvable ontapConfiguration) Sets the value ofCfnVolumeMixinProps.getOntapConfiguration()- Parameters:
ontapConfiguration- The configuration of an Amazon FSx for NetApp ONTAP volume.- Returns:
this
-
ontapConfiguration
@Stability(Stable) public CfnVolumeMixinProps.Builder ontapConfiguration(CfnVolumePropsMixin.OntapConfigurationProperty ontapConfiguration) Sets the value ofCfnVolumeMixinProps.getOntapConfiguration()- Parameters:
ontapConfiguration- The configuration of an Amazon FSx for NetApp ONTAP volume.- Returns:
this
-
openZfsConfiguration
@Stability(Stable) public CfnVolumeMixinProps.Builder openZfsConfiguration(IResolvable openZfsConfiguration) Sets the value ofCfnVolumeMixinProps.getOpenZfsConfiguration()- Parameters:
openZfsConfiguration- The configuration of an Amazon FSx for OpenZFS volume.- Returns:
this
-
openZfsConfiguration
@Stability(Stable) public CfnVolumeMixinProps.Builder openZfsConfiguration(CfnVolumePropsMixin.OpenZFSConfigurationProperty openZfsConfiguration) Sets the value ofCfnVolumeMixinProps.getOpenZfsConfiguration()- Parameters:
openZfsConfiguration- The configuration of an Amazon FSx for OpenZFS volume.- Returns:
this
-
tags
Sets the value ofCfnVolumeMixinProps.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 ofCfnVolumeMixinProps.getVolumeType()- Parameters:
volumeType- The type of the volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumeMixinProps>- Returns:
- a new instance of
CfnVolumeMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-