Class ClientOptions


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20171215")
    public final class ClientOptions
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    NFS export options applied to a specified set of clients.

    Only governs access through the associated export. Access to the same file system through a different export (on the same or different mount target) will be governed by that export’s export options.
    Note: Objects should always be created or deserialized using the ClientOptions.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the ClientOptions.Builder, which maintain a set of all explicitly set fields called ClientOptions.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Method Detail

      • getSource

        public String getSource()
        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.

        Returns:
        the value
      • getRequirePrivilegedSourcePort

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

        If unspecified, defaults to true.

        Returns:
        the value
      • getAccess

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

        If unspecified defaults to READ_WRITE.

        Returns:
        the value
      • getIdentitySquash

        public ClientOptions.IdentitySquash getIdentitySquash()
        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.

        Returns:
        the value
      • getAnonymousUid

        public Long getAnonymousUid()
        UID value to remap to when squashing a client UID (see identitySquash for more details.) If unspecified, defaults to 65534.
        Returns:
        the value
      • getAnonymousGid

        public Long getAnonymousGid()
        GID value to remap to when squashing a client GID (see identitySquash for more details.) If unspecified defaults to 65534.
        Returns:
        the value
      • getIsAnonymousAccessAllowed

        public Boolean getIsAnonymousAccessAllowed()
        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.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel