Share via


NfsMountConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.NfsMountConfiguration

Implements

public final class NfsMountConfiguration
implements JsonSerializable<NfsMountConfiguration>

Information used to connect to an NFS file system.

Constructor Summary

Constructor Description
NfsMountConfiguration()

Creates an instance of NfsMountConfiguration class.

Method Summary

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

Reads an instance of NfsMountConfiguration from the JsonReader.

String mountOptions()

Get the mountOptions property: These are 'net use' options in Windows and 'mount' options in Linux.

String relativeMountPath()

Get the relativeMountPath property: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.

String source()

Get the source property: The URI of the file system to mount.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NfsMountConfiguration withMountOptions(String mountOptions)

Set the mountOptions property: These are 'net use' options in Windows and 'mount' options in Linux.

NfsMountConfiguration withRelativeMountPath(String relativeMountPath)

Set the relativeMountPath property: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.

NfsMountConfiguration withSource(String source)

Set the source property: The URI of the file system to mount.

Methods inherited from java.lang.Object

Constructor Details

NfsMountConfiguration

public NfsMountConfiguration()

Creates an instance of NfsMountConfiguration class.

Method Details

fromJson

public static NfsMountConfiguration fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

mountOptions

public String mountOptions()

Get the mountOptions property: These are 'net use' options in Windows and 'mount' options in Linux.

Returns:

the mountOptions value.

relativeMountPath

public String relativeMountPath()

Get the relativeMountPath property: 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.

source

public String source()

Get the source property: The URI of the file system to mount.

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMountOptions

public NfsMountConfiguration withMountOptions(String mountOptions)

Set the mountOptions property: These are 'net use' options in Windows and 'mount' options in Linux.

Parameters:

mountOptions - the mountOptions value to set.

Returns:

the NfsMountConfiguration object itself.

withRelativeMountPath

public NfsMountConfiguration withRelativeMountPath(String relativeMountPath)

Set the relativeMountPath property: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.

Parameters:

relativeMountPath - the relativeMountPath value to set.

Returns:

the NfsMountConfiguration object itself.

withSource

public NfsMountConfiguration withSource(String source)

Set the source property: The URI of the file system to mount.

Parameters:

source - the source value to set.

Returns:

the NfsMountConfiguration object itself.

Applies to