com.baidubce.services.bcc.model.instance
Enum InstanceAction

java.lang.Object
  extended by java.lang.Enum<InstanceAction>
      extended by com.baidubce.services.bcc.model.instance.InstanceAction
All Implemented Interfaces:
Serializable, Comparable<InstanceAction>

public enum InstanceAction
extends Enum<InstanceAction>

The action for operating the instance.


Enum Constant Summary
bind
          The action to bind the instance to specified securitygroup.
changePass
          The action to change the admin password of the instance.
modifyAttribute
          The action to modify the attribute of the instance.
purchaseReserved
          The action to purchaseReserved the instance.
reboot
          The action to reboot the instance.
rebuild
          The action to rebuild the instance.
resize
          The action to resize the instance.
start
          The action to start the instance.
stop
          The action to stop the instance.
unbind
          The action to unbind the instance from securitygroup.
 
Method Summary
static InstanceAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InstanceAction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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.


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.

Method Detail

values

public static InstanceAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (InstanceAction c : InstanceAction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static InstanceAction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2018. All rights reserved.