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 |
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 |
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_ONLY
.
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 build()
public ClientOptions.Builder copy(ClientOptions model)
Copyright © 2016–2023. All rights reserved.