Share via


ContainerHostBatchBindMountEntry Class

  • java.lang.Object
    • com.azure.compute.batch.models.ContainerHostBatchBindMountEntry

Implements

public final class ContainerHostBatchBindMountEntry
implements JsonSerializable<ContainerHostBatchBindMountEntry>

The entry of path and mount mode you want to mount into task container.

Constructor Summary

Constructor Description
ContainerHostBatchBindMountEntry()

Creates an instance of ContainerHostBatchBindMountEntry class.

Method Summary

Modifier and Type Method and Description
static ContainerHostBatchBindMountEntry fromJson(JsonReader jsonReader)

Reads an instance of ContainerHostBatchBindMountEntry from the JsonReader.

ContainerHostDataPath getSource()

Get the source property: The path which be mounted to container customer can select.

Boolean isReadOnly()

Get the isReadOnly property: Mount this source path as read-only mode or not.

ContainerHostBatchBindMountEntry setIsReadOnly(Boolean isReadOnly)

Set the isReadOnly property: Mount this source path as read-only mode or not.

ContainerHostBatchBindMountEntry setSource(ContainerHostDataPath source)

Set the source property: The path which be mounted to container customer can select.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ContainerHostBatchBindMountEntry

public ContainerHostBatchBindMountEntry()

Creates an instance of ContainerHostBatchBindMountEntry class.

Method Details

fromJson

public static ContainerHostBatchBindMountEntry fromJson(JsonReader jsonReader)

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.

getSource

public ContainerHostDataPath getSource()

Get the source property: The path which be mounted to container customer can select.

Returns:

the source value.

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.

setSource

public ContainerHostBatchBindMountEntry setSource(ContainerHostDataPath source)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to