Class NfsMountConfiguration
java.lang.Object
com.azure.resourcemanager.batch.models.NfsMountConfiguration
Information used to connect to an NFS file system.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the mountOptions property: Additional command line options to pass to the mount command.Get the relativeMountPath property: The relative path on the compute node where the file system will be mountedsource()
Get the source property: The URI of the file system to mount.void
validate()
Validates the instance.withMountOptions
(String mountOptions) Set the mountOptions property: Additional command line options to pass to the mount command.withRelativeMountPath
(String relativeMountPath) Set the relativeMountPath property: The relative path on the compute node where the file system will be mountedwithSource
(String source) Set the source property: The URI of the file system to mount.
-
Constructor Details
-
NfsMountConfiguration
public NfsMountConfiguration()Creates an instance of NfsMountConfiguration class.
-
-
Method Details
-
source
Get the source property: The URI of the file system to mount.- Returns:
- the source value.
-
withSource
Set the source property: The URI of the file system to mount.- Parameters:
source
- the source value to set.- Returns:
- the NfsMountConfiguration object itself.
-
relativeMountPath
Get the relativeMountPath property: The relative path on the compute node where the file system will be mountedAll file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
- Returns:
- the relativeMountPath value.
-
withRelativeMountPath
Set the relativeMountPath property: The relative path on the compute node where the file system will be mountedAll file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
- Parameters:
relativeMountPath
- the relativeMountPath value to set.- Returns:
- the NfsMountConfiguration object itself.
-
mountOptions
Get the mountOptions property: Additional command line options to pass to the mount command.These are 'net use' options in Windows and 'mount' options in Linux.
- Returns:
- the mountOptions value.
-
withMountOptions
Set the mountOptions property: Additional command line options to pass to the mount command.These are 'net use' options in Windows and 'mount' options in Linux.
- Parameters:
mountOptions
- the mountOptions value to set.- Returns:
- the NfsMountConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-