NfsMountConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. NfsMountConfiguration
- com.
Implements
public final class NfsMountConfiguration
implements JsonSerializable<NfsMountConfiguration>
Information used to connect to an NFS file system.
Constructor Summary
| Constructor | Description |
|---|---|
| NfsMountConfiguration() |
Creates an instance of Nfs |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Nfs |
fromJson(JsonReader jsonReader)
Reads an instance of Nfs |
| String |
mountOptions()
Get the mount |
| String |
relativeMountPath()
Get the relative |
| String |
source()
Get the source property: The URI of the file system to mount. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Nfs |
withMountOptions(String mountOptions)
Set the mount |
|
Nfs |
withRelativeMountPath(String relativeMountPath)
Set the relative |
|
Nfs |
withSource(String source)
Set the source property: The URI of the file system to mount. |
Methods inherited from java.lang.Object
Constructor Details
NfsMountConfiguration
public NfsMountConfiguration()
Creates an instance of NfsMountConfiguration class.
Method Details
fromJson
public static NfsMountConfiguration fromJson(JsonReader jsonReader)
Reads an instance of NfsMountConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
mountOptions
public String mountOptions()
Get the mountOptions property: These are 'net use' options in Windows and 'mount' options in Linux.
Returns:
relativeMountPath
public String relativeMountPath()
Get the relativeMountPath property: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
Returns:
source
public String source()
Get the source property: The URI of the file system to mount.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMountOptions
public NfsMountConfiguration withMountOptions(String mountOptions)
Set the mountOptions property: These are 'net use' options in Windows and 'mount' options in Linux.
Parameters:
Returns:
withRelativeMountPath
public NfsMountConfiguration withRelativeMountPath(String relativeMountPath)
Set the relativeMountPath property: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
Parameters:
Returns:
withSource
public NfsMountConfiguration withSource(String source)
Set the source property: The URI of the file system to mount.
Parameters:
Returns: