@Generated(value="OracleSDKGenerator", comments="API Version: 20171215") public final class ClientOptions extends Object
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 __explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take __explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ClientOptions.Access
Type of access to grant clients using the file system through this export.
|
static class |
ClientOptions.Builder |
static class |
ClientOptions.IdentitySquash
Used when clients accessing the file system through this export have their UID and GID remapped to ‘anonymousUid’ and ‘anonymousGid’.
|
Constructor and Description |
---|
ClientOptions(String source,
Boolean requirePrivilegedSourcePort,
ClientOptions.Access access,
ClientOptions.IdentitySquash identitySquash,
Long anonymousUid,
Long anonymousGid)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ClientOptions.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
ClientOptions.Access |
getAccess()
Type of access to grant clients using the file system through this export.
|
Long |
getAnonymousGid()
GID value to remap to when squashing a client GID (see identitySquash for more details.) If unspecified defaults to
65534 . |
Long |
getAnonymousUid()
UID value to remap to when squashing a client UID (see identitySquash for more details.) If unspecified, defaults to
65534 . |
ClientOptions.IdentitySquash |
getIdentitySquash()
Used when clients accessing the file system through this export have their UID and GID remapped to ‘anonymousUid’ and ‘anonymousGid’.
|
Boolean |
getRequirePrivilegedSourcePort()
If
true , clients accessing the file system through this export must connect from a privileged source port. |
String |
getSource()
Clients these options should apply to.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"source","requirePrivilegedSourcePort","access","identitySquash","anonymousUid","anonymousGid"}) @Deprecated public ClientOptions(String source, Boolean requirePrivilegedSourcePort, ClientOptions.Access access, ClientOptions.IdentitySquash identitySquash, Long anonymousUid, Long anonymousGid)
public static ClientOptions.Builder builder()
Create a new builder.
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.
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
.
public ClientOptions.Access getAccess()
Type of access to grant clients using the file system through this export. If unspecified defaults to READ_ONLY
.
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
.
public Long getAnonymousUid()
UID value to remap to when squashing a client UID (see identitySquash for more details.) If unspecified, defaults to 65534
.
public Long getAnonymousGid()
GID value to remap to when squashing a client GID (see identitySquash for more details.) If unspecified defaults to 65534
.
Copyright © 2016–2020. All rights reserved.