枚举 InstanceAction
- java.lang.Object
-
- java.lang.Enum<InstanceAction>
-
- com.baidubce.services.bcc.model.instance.InstanceAction
-
- 所有已实现的接口:
Serializable,Comparable<InstanceAction>
public enum InstanceAction extends Enum<InstanceAction>
The action for operating the instance.
-
-
枚举常量概要
枚举常量 枚举常量 说明 bindThe action to bind the instance to specified securitygroup.changeHostnameThe action to change the hostname of the instance.changePassThe action to change the admin password of the instance.modifyAttributeThe action to modify the attribute of the instance.modifyDescThe action to modify the desc of the instance.purchaseReservedThe action to purchaseReserved the instance.rebootThe action to reboot the instance.rebuildThe action to rebuild the instance.renameThe action to rename the bbc instanceresizeThe action to resize the instance.startThe action to start the instance.stopThe action to stop the instance.toPrepayThe action to change instance to be prepaid.unbindThe action to unbind the instance from securitygroup.updateDescThe action to update bcc desc
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static InstanceActionvalueOf(String name)返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)static InstanceAction[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (InstanceAction c : InstanceAction.values()) System.out.println(c);
-
-
-
枚举常量详细资料
-
start
public static final InstanceAction start
The action to start the instance.
-
stop
public static final InstanceAction stop
The action to stop the instance.
-
reboot
public static final InstanceAction reboot
The action to reboot the instance.
-
changePass
public static final InstanceAction changePass
The action to change the admin password of the instance.
-
modifyAttribute
public static final InstanceAction modifyAttribute
The action to modify the attribute of the instance.
-
rename
public static final InstanceAction rename
The action to rename the bbc instance
-
modifyDesc
public static final InstanceAction modifyDesc
The action to modify the desc of the instance.
-
rebuild
public static final InstanceAction rebuild
The action to rebuild the instance.
-
resize
public static final InstanceAction resize
The action to resize the instance.
-
bind
public static final InstanceAction bind
The action to bind the instance to specified securitygroup.
-
unbind
public static final InstanceAction unbind
The action to unbind the instance from securitygroup.
-
purchaseReserved
public static final InstanceAction purchaseReserved
The action to purchaseReserved the instance.
-
updateDesc
public static final InstanceAction updateDesc
The action to update bcc desc
-
toPrepay
public static final InstanceAction toPrepay
The action to change instance to be prepaid.
-
changeHostname
public static final InstanceAction changeHostname
The action to change the hostname of the instance.
-
-
方法详细资料
-
values
public static InstanceAction[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (InstanceAction c : InstanceAction.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static InstanceAction valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-