Class CifsMountConfiguration
java.lang.Object
com.azure.resourcemanager.batch.models.CifsMountConfiguration
Information used to connect to a CIFS file system.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CifsMountConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the mountOptions property: Additional command line options to pass to the mount command.password()Get the password property: The password to use for authentication against the CIFS file system.Get the relativeMountPath property: The relative path on the compute node where the file system will be mounted All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.source()Get the source property: The URI of the file system to mount.username()Get the username property: The user to use for authentication against the CIFS file system.voidvalidate()Validates the instance.withMountOptions(String mountOptions) Set the mountOptions property: Additional command line options to pass to the mount command.withPassword(String password) Set the password property: The password to use for authentication against the CIFS file system.withRelativeMountPath(String relativeMountPath) Set the relativeMountPath property: The relative path on the compute node where the file system will be mounted All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.withSource(String source) Set the source property: The URI of the file system to mount.withUsername(String username) Set the username property: The user to use for authentication against the CIFS file system.
-
Constructor Details
-
CifsMountConfiguration
public CifsMountConfiguration()Creates an instance of CifsMountConfiguration class.
-
-
Method Details
-
username
Get the username property: The user to use for authentication against the CIFS file system.- Returns:
- the username value.
-
withUsername
Set the username property: The user to use for authentication against the CIFS file system.- Parameters:
username- the username value to set.- Returns:
- the CifsMountConfiguration object itself.
-
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 CifsMountConfiguration object itself.
-
relativeMountPath
Get the relativeMountPath property: The relative path on the compute node where the file system will be mounted All 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 mounted All 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 CifsMountConfiguration 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 CifsMountConfiguration object itself.
-
password
Get the password property: The password to use for authentication against the CIFS file system.- Returns:
- the password value.
-
withPassword
Set the password property: The password to use for authentication against the CIFS file system.- Parameters:
password- the password value to set.- Returns:
- the CifsMountConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-