Class CfnLocationNFS.MountOptionsProperty.Builder

java.lang.Object
software.amazon.awscdk.services.datasync.CfnLocationNFS.MountOptionsProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationNFS.MountOptionsProperty>
Enclosing interface:
CfnLocationNFS.MountOptionsProperty

@Stability(Stable) public static final class CfnLocationNFS.MountOptionsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLocationNFS.MountOptionsProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • version

      @Stability(Stable) public CfnLocationNFS.MountOptionsProperty.Builder version(String version)
      Parameters:
      version - Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails.

      You can specify the following options:

      • AUTOMATIC (default): DataSync chooses NFS version 4.1.
      • NFS3 : Stateless protocol version that allows for asynchronous writes on the server.
      • NFSv4_0 : Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems.
      • NFSv4_1 : Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.

      DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.

      Returns:
      this
    • build

      @Stability(Stable) public CfnLocationNFS.MountOptionsProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnLocationNFS.MountOptionsProperty>
      Returns:
      a new instance of CfnLocationNFS.MountOptionsProperty
      Throws:
      NullPointerException - if any required attribute was not provided