枚举 InstanceAction

    • 枚举常量详细资料

      • 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 - 如果参数为空值