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 Details

    • create

      @Stability(Stable) public static CfnVolume.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnVolume.Builder.
    • name

      @Stability(Stable) public CfnVolume.Builder name(String name)
      The name of the volume.

      Parameters:
      name - The name of the volume. This parameter is required.
      Returns:
      this
    • backupId

      @Stability(Stable) public CfnVolume.Builder backupId(String 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

      @Stability(Stable) public CfnVolume.Builder ontapConfiguration(IResolvable 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

      @Stability(Stable) public CfnVolume.Builder openZfsConfiguration(IResolvable 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

      @Stability(Stable) public CfnVolume.Builder tags(List<? extends CfnTag> 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

      @Stability(Stable) public CfnVolume.Builder volumeType(String volumeType)
      The type of the volume.

      Parameters:
      volumeType - The type of the volume. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnVolume build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnVolume>
      Returns:
      a newly built instance of CfnVolume.