Package com.oracle.bmc.filestorage.model
Class ClientOptions.Builder
- java.lang.Object
-
- com.oracle.bmc.filestorage.model.ClientOptions.Builder
-
- Enclosing class:
- ClientOptions
public static class ClientOptions.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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
-
allowedAuth
public ClientOptions.Builder allowedAuth(List<ClientOptions.AllowedAuth> allowedAuth)
Array of allowed NFS authentication types.- Parameters:
allowedAuth
- the value to set- Returns:
- this builder
-
build
public ClientOptions build()
-
copy
public ClientOptions.Builder copy(ClientOptions model)
-
-