Class ContainerHostBatchBindMountEntry

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

public final class ContainerHostBatchBindMountEntry extends Object implements com.azure.json.JsonSerializable<ContainerHostBatchBindMountEntry>
The entry of path and mount mode you want to mount into task container.
  • Constructor Details

    • ContainerHostBatchBindMountEntry

      public ContainerHostBatchBindMountEntry()
      Creates an instance of ContainerHostBatchBindMountEntry class.
  • Method Details

    • getSource

      public ContainerHostDataPath getSource()
      Get the source property: The path which be mounted to container customer can select.
      Returns:
      the source value.
    • setSource

      Set the source property: The path which be mounted to container customer can select.
      Parameters:
      source - the source value to set.
      Returns:
      the ContainerHostBatchBindMountEntry object itself.
    • isReadOnly

      public Boolean isReadOnly()
      Get the isReadOnly property: Mount this source path as read-only mode or not. Default value is false (read/write mode). For Linux, if you mount this path as a read/write mode, this does not mean that all users in container have the read/write access for the path, it depends on the access in host VM. If this path is mounted read-only, all users within the container will not be able to modify the path.
      Returns:
      the isReadOnly value.
    • setIsReadOnly

      public ContainerHostBatchBindMountEntry setIsReadOnly(Boolean isReadOnly)
      Set the isReadOnly property: Mount this source path as read-only mode or not. Default value is false (read/write mode). For Linux, if you mount this path as a read/write mode, this does not mean that all users in container have the read/write access for the path, it depends on the access in host VM. If this path is mounted read-only, all users within the container will not be able to modify the path.
      Parameters:
      isReadOnly - the isReadOnly value to set.
      Returns:
      the ContainerHostBatchBindMountEntry 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<ContainerHostBatchBindMountEntry>
      Throws:
      IOException
    • fromJson

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