public static class ClientOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ClientOptions.Builder |
access(ClientOptions.Access access)
Type of access to grant clients using the file system through this export.
|
ClientOptions.Builder |
allowedAuth(List<ClientOptions.AllowedAuth> allowedAuth)
Array of allowed NFS authentication types.
|
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 . |
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 . |
ClientOptions |
build() |
ClientOptions.Builder |
copy(ClientOptions model) |
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’.
|
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.
|
ClientOptions.Builder |
requirePrivilegedSourcePort(Boolean requirePrivilegedSourcePort)
If
true , clients accessing the file system through this export must connect from
a privileged source port. |
ClientOptions.Builder |
source(String source)
Clients these options should apply to.
|
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.
source
- the value to setpublic 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
.
requirePrivilegedSourcePort
- the value to setpublic 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
.
access
- the value to setpublic 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
.
identitySquash
- the value to setpublic 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
.
anonymousUid
- the value to setpublic 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
.
anonymousGid
- the value to setpublic 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.
isAnonymousAccessAllowed
- the value to setpublic ClientOptions.Builder allowedAuth(List<ClientOptions.AllowedAuth> allowedAuth)
Array of allowed NFS authentication types.
allowedAuth
- the value to setpublic ClientOptions build()
public ClientOptions.Builder copy(ClientOptions model)
Copyright © 2016–2024. All rights reserved.