Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerHostBatchBindMountEntry class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerHostBatchBindMountEntry from the JsonReader.Get the source property: The path which be mounted to container customer can select.Get the isReadOnly property: Mount this source path as read-only mode or not.setIsReadOnly(Boolean isReadOnly) Set the isReadOnly property: Mount this source path as read-only mode or not.setSource(ContainerHostDataPath source) Set the source property: The path which be mounted to container customer can select.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerHostBatchBindMountEntry
public ContainerHostBatchBindMountEntry()Creates an instance of ContainerHostBatchBindMountEntry class.
-
-
Method Details
-
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
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
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
- Specified by:
toJsonin interfacecom.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.
-