Class ClientOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • source

        public ClientOptions.Builder source​(String source)
        Clients these options should apply to.

        Must be a either single IPv4 address or single IPv4 CIDR block.

        *Note:** Access will also be limited by any applicable VCN security rules and the ability to route IP packets to the mount target. Mount targets do not have Internet-routable IP addresses.

        Parameters:
        source - the value to set
        Returns:
        this builder
      • requirePrivilegedSourcePort

        public ClientOptions.Builder requirePrivilegedSourcePort​(Boolean requirePrivilegedSourcePort)
        If true, clients accessing the file system through this export must connect from a privileged source port.

        If unspecified, defaults to true.

        Parameters:
        requirePrivilegedSourcePort - the value to set
        Returns:
        this builder
      • access

        public ClientOptions.Builder access​(ClientOptions.Access access)
        Type of access to grant clients using the file system through this export.

        If unspecified defaults to READ_WRITE.

        Parameters:
        access - the value to set
        Returns:
        this builder
      • identitySquash

        public ClientOptions.Builder identitySquash​(ClientOptions.IdentitySquash identitySquash)
        Used when clients accessing the file system through this export have their UID and GID remapped to ‘anonymousUid’ and ‘anonymousGid’.

        If ALL, all users and groups are remapped; if ROOT, only the root user and group (UID/GID 0) are remapped; if NONE, no remapping is done. If unspecified, defaults to ROOT.

        Parameters:
        identitySquash - the value to set
        Returns:
        this builder
      • anonymousUid

        public ClientOptions.Builder anonymousUid​(Long anonymousUid)
        UID value to remap to when squashing a client UID (see identitySquash for more details.) If unspecified, defaults to 65534.
        Parameters:
        anonymousUid - the value to set
        Returns:
        this builder
      • anonymousGid

        public ClientOptions.Builder anonymousGid​(Long anonymousGid)
        GID value to remap to when squashing a client GID (see identitySquash for more details.) If unspecified defaults to 65534.
        Parameters:
        anonymousGid - the value to set
        Returns:
        this builder
      • isAnonymousAccessAllowed

        public ClientOptions.Builder isAnonymousAccessAllowed​(Boolean isAnonymousAccessAllowed)
        Whether or not to enable anonymous access to the file system through this export in cases where a user isn’t found in the LDAP server used for ID mapping.

        If true, and the user is not found in the LDAP directory, the operation uses the Squash UID and Squash GID.

        Parameters:
        isAnonymousAccessAllowed - the value to set
        Returns:
        this builder