你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CIFSMountConfiguration 类

  • java.lang.Object
    • com.microsoft.azure.management.batch.CIFSMountConfiguration

public class CIFSMountConfiguration

用于连接到 CIFS 文件系统的信息。

方法摘要

修饰符和类型 方法和描述
String mountOptions()

获取这些选项是 Windows 中的“net use”选项和 Linux 中的“装载”选项。

String password()

获取密码值。

String relativeMountPath()

获取相对于 Batch 装载目录装载的所有文件系统,可通过 AZ_BATCH_NODE_MOUNTS_DIR 环境变量进行访问。

String source()

获取源值。

String username()

获取用户名值。

CIFSMountConfiguration withMountOptions(String mountOptions)

设置这些是 Windows 中的“net use”选项和 Linux 中的“装载”选项。

CIFSMountConfiguration withPassword(String password)

设置密码值。

CIFSMountConfiguration withRelativeMountPath(String relativeMountPath)

设置所有文件系统相对于 Batch 装载目录进行装载,可通过 AZ_BATCH_NODE_MOUNTS_DIR 环境变量访问。

CIFSMountConfiguration withSource(String source)

设置源值。

CIFSMountConfiguration withUsername(String username)

设置用户名值。

方法详细信息

mountOptions

public String mountOptions()

获取这些选项是 Windows 中的“net use”选项和 Linux 中的“装载”选项。

Returns:

mountOptions 值

password

public String password()

获取密码值。

Returns:

密码值

relativeMountPath

public String relativeMountPath()

获取相对于 Batch 装载目录装载的所有文件系统,可通过 AZ_BATCH_NODE_MOUNTS_DIR 环境变量进行访问。

Returns:

relativeMountPath 值

source

public String source()

获取源值。

Returns:

源值

username

public String username()

获取用户名值。

Returns:

用户名值

withMountOptions

public CIFSMountConfiguration withMountOptions(String mountOptions)

设置这些是 Windows 中的“net use”选项和 Linux 中的“装载”选项。

Parameters:

mountOptions - 要设置的 mountOptions 值

Returns:

CIFSMountConfiguration 对象本身。

withPassword

public CIFSMountConfiguration withPassword(String password)

设置密码值。

Parameters:

password - 要设置的密码值

Returns:

CIFSMountConfiguration 对象本身。

withRelativeMountPath

public CIFSMountConfiguration withRelativeMountPath(String relativeMountPath)

设置所有文件系统相对于 Batch 装载目录进行装载,可通过 AZ_BATCH_NODE_MOUNTS_DIR 环境变量访问。

Parameters:

relativeMountPath - 要设置的 relativeMountPath 值

Returns:

CIFSMountConfiguration 对象本身。

withSource

public CIFSMountConfiguration withSource(String source)

设置源值。

Parameters:

source - 要设置的源值

Returns:

CIFSMountConfiguration 对象本身。

withUsername

public CIFSMountConfiguration withUsername(String username)

设置用户名值。

Parameters:

username - 要设置的用户名值

Returns:

CIFSMountConfiguration 对象本身。

适用于