@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 ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__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) |
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() |
ClientOptions.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"source","requirePrivilegedSourcePort","access","identitySquash","anonymousUid","anonymousGid"}) 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 ClientOptions.Builder toBuilder()
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
.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.