Class NfsMountConfiguration

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

public final class NfsMountConfiguration extends Object implements com.azure.json.JsonSerializable<NfsMountConfiguration>
Information used to connect to an NFS file system.
  • Constructor Details

    • NfsMountConfiguration

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

    • 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 NfsMountConfiguration 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 NfsMountConfiguration object itself.
    • toJson

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

      public static NfsMountConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NfsMountConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NfsMountConfiguration 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 NfsMountConfiguration.