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

PowerState 类

public final class PowerState
extends ExpandableStringEnum<PowerState>

定义 PowerState 的值。

字段摘要

修饰符和类型 字段和描述
static final PowerState RUNNING

针对电源状态运行的静态值。

static final PowerState STOPPED

已停止电源状态的静态值。

构造函数摘要

构造函数 说明
PowerState()

方法摘要

修饰符和类型 方法和描述
static PowerState fromString(String name)

从其字符串表示形式创建或查找 PowerState。

static Collection<PowerState> values()

获取已知的 PowerState 值。

方法继承自 ExpandableStringEnum

方法继承自 java.lang.Object

字段详细信息

RUNNING

public static final PowerState RUNNING

为 PowerState 运行的静态值。

STOPPED

public static final PowerState STOPPED

PowerState 的静态值 Stopped。

构造函数详细信息

PowerState

public PowerState()

方法详细信息

fromString

public static PowerState fromString(String name)

从 PowerState 的字符串表示形式创建或查找 PowerState。

Parameters:

name - 要查找的名称。

Returns:

相应的 PowerState。

values

public static Collection values()

获取已知的 PowerState 值。

Returns:

已知的 PowerState 值。

适用于