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

GuestOSCustomization 类

  • java.lang.Object
    • com.azure.resourcemanager.vmwarecloudsimple.models.GuestOSCustomization

public final class GuestOSCustomization

来宾 OS 自定义属性。

构造函数摘要

构造函数 说明
GuestOSCustomization()

创建来宾OSCustomization 类的实例。

方法摘要

修饰符和类型 方法和描述
List<String> dnsServers()

获取 dnsServers 属性:要使用的 dns 服务器列表。

String hostname()

获取主机名属性:虚拟机主机名。

String password()

获取密码属性:用于登录的密码。

String policyId()

获取策略ID 属性:自定义策略的 ID。

String username()

获取 username 属性:用于登录的用户名。

void validate()

验证实例。

GuestOSCustomization withDnsServers(List<String> dnsServers)

设置 dnsServers 属性:要使用的 dns 服务器列表。

GuestOSCustomization withHostname(String hostname)

设置主机名属性:虚拟机主机名。

GuestOSCustomization withPassword(String password)

设置密码属性:登录密码。

GuestOSCustomization withPolicyId(String policyId)

设置策略Id 属性:自定义策略的 ID。

GuestOSCustomization withUsername(String username)

设置 username 属性:用于登录的用户名。

方法继承自 java.lang.Object

构造函数详细信息

GuestOSCustomization

public GuestOSCustomization()

创建 GuestOSCustomization 类的实例。

方法详细信息

dnsServers

public List dnsServers()

获取 dnsServers 属性:要使用的 dns 服务器列表。

Returns:

dnsServers 值。

hostname

public String hostname()

获取主机名属性:虚拟机主机名。

Returns:

主机名值。

password

public String password()

获取密码属性:用于登录的密码。

Returns:

密码值。

policyId

public String policyId()

获取 policyId 属性:自定义策略的 ID。

Returns:

policyId 值。

username

public String username()

获取 username 属性:用于登录的用户名。

Returns:

用户名值。

validate

public void validate()

验证实例。

withDnsServers

public GuestOSCustomization withDnsServers(List dnsServers)

设置 dnsServers 属性:要使用的 dns 服务器列表。

Parameters:

dnsServers - 要设置的 dnsServers 值。

Returns:

GuestOSCustomization 对象本身。

withHostname

public GuestOSCustomization withHostname(String hostname)

设置主机名属性:虚拟机主机名。

Parameters:

hostname - 要设置的主机名值。

Returns:

GuestOSCustomization 对象本身。

withPassword

public GuestOSCustomization withPassword(String password)

设置密码属性:登录密码。

Parameters:

password - 要设置的密码值。

Returns:

GuestOSCustomization 对象本身。

withPolicyId

public GuestOSCustomization withPolicyId(String policyId)

设置 policyId 属性:自定义策略的 ID。

Parameters:

policyId - 要设置的 policyId 值。

Returns:

GuestOSCustomization 对象本身。

withUsername

public GuestOSCustomization withUsername(String username)

设置 username 属性:用于登录的用户名。

Parameters:

username - 要设置的用户名值。

Returns:

GuestOSCustomization 对象本身。

适用于