Class CifsMountConfiguration

java.lang.Object
com.azure.compute.batch.models.CifsMountConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<CifsMountConfiguration>

public final class CifsMountConfiguration extends Object implements com.azure.json.JsonSerializable<CifsMountConfiguration>
Information used to connect to a CIFS file system.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CifsMountConfiguration(String username, String source, String relativeMountPath, String password)
    Creates an instance of CifsMountConfiguration class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of CifsMountConfiguration from the JsonReader.
    Get the mountOptions property: Additional command line options to pass to the mount command.
    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.
    Get the source property: The URI of the file system to mount.
    Get the username property: The user to use for authentication against the CIFS file system.
    setMountOptions(String mountOptions)
    Set the mountOptions property: Additional command line options to pass to the mount command.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • CifsMountConfiguration

      public CifsMountConfiguration(String username, String source, String relativeMountPath, String password)
      Creates an instance of CifsMountConfiguration class.
      Parameters:
      username - the username value to set.
      source - the source value to set.
      relativeMountPath - the relativeMountPath value to set.
      password - the password value to set.
  • Method Details

    • getUsername

      public String getUsername()
      Get the username property: The user to use for authentication against the CIFS file system.
      Returns:
      the username value.
    • getSource

      public String getSource()
      Get the source property: The URI of the file system to mount.
      Returns:
      the source value.
    • getRelativeMountPath

      public String getRelativeMountPath()
      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.
    • getMountOptions

      public String getMountOptions()
      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.
    • setMountOptions

      public CifsMountConfiguration setMountOptions(String mountOptions)
      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.
    • getPassword

      public String getPassword()
      Get the password property: The password to use for authentication against the CIFS file system.
      Returns:
      the password value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CifsMountConfiguration>
      Throws:
      IOException
    • fromJson

      public static CifsMountConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CifsMountConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CifsMountConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the CifsMountConfiguration.