com.baidubce.services.bcc.model.image
Enum ImageAction

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

public enum ImageAction
extends Enum<ImageAction>

The action for operating the image.


Enum Constant Summary
cancelRemoteCopy
          The action to cancelRemoteCopy the image.
remoteCopy
          The action to remoteCopy the image.
share
          The action to share the image.
unshare
          The action to unshare the image.
 
Method Summary
static ImageAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImageAction[] 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

share

public static final ImageAction share
The action to share the image.


unshare

public static final ImageAction unshare
The action to unshare the image.


remoteCopy

public static final ImageAction remoteCopy
The action to remoteCopy the image.


cancelRemoteCopy

public static final ImageAction cancelRemoteCopy
The action to cancelRemoteCopy the image.

Method Detail

values

public static ImageAction[] 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 (ImageAction c : ImageAction.values())
    System.out.println(c);

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

valueOf

public static ImageAction 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 © 2020. All rights reserved.