org.jclouds.sqs.domain
Enum Action

java.lang.Object
  extended by java.lang.Enum<Action>
      extended by org.jclouds.sqs.domain.Action
All Implemented Interfaces:
Serializable, Comparable<Action>

public enum Action
extends Enum<Action>

The action you want to allow for the specified principal.

Author:
Adrian Cole
See Also:

Enum Constant Summary
ALL
          This permission type grants the following actions to a principal on a shared queue: receive messages, send messages, delete messages, change a message's visibility, get a queue's attributes.
CHANGE_MESSAGE_VISIBILITY
          This grants permission to extend or terminate the read lock timeout of a specified message.
DELETE_MESSAGE
          This grants permission to delete messages from the queue.
GET_QUEUE_ATTRIBUTES
          This grants permission to receive all of the queue attributes except the policy, which can only be accessed by the queue's owner.
GET_QUEUE_URL
          This grants permission to get the url of a queue by name.
RECEIVE_MESSAGE
          This grants permission to receive messages in the queue.
SEND_MESSAGE
          This grants permission to send messages to the queue.
 
Method Summary
 String toString()
           
 String value()
           
static Action valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Action[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALL

public static final Action ALL
This permission type grants the following actions to a principal on a shared queue: receive messages, send messages, delete messages, change a message's visibility, get a queue's attributes.


RECEIVE_MESSAGE

public static final Action RECEIVE_MESSAGE
This grants permission to receive messages in the queue.


SEND_MESSAGE

public static final Action SEND_MESSAGE
This grants permission to send messages to the queue. SendMessageBatch inherits permissions associated with SendMessage.


DELETE_MESSAGE

public static final Action DELETE_MESSAGE
This grants permission to delete messages from the queue. DeleteMessageBatch inherits permissions associated with DeleteMessage.


CHANGE_MESSAGE_VISIBILITY

public static final Action CHANGE_MESSAGE_VISIBILITY
This grants permission to extend or terminate the read lock timeout of a specified message. ChangeMessageVisibilityBatch inherits permissions associated with ChangeMessageVisibility. For more information about visibility timeout, see Visibility Timeout. For more information about this permission type, see the ChangeMessageVisibility operation.


GET_QUEUE_ATTRIBUTES

public static final Action GET_QUEUE_ATTRIBUTES
This grants permission to receive all of the queue attributes except the policy, which can only be accessed by the queue's owner. For more information, see the GetQueueAttributes operation.


GET_QUEUE_URL

public static final Action GET_QUEUE_URL
This grants permission to get the url of a queue by name.

Method Detail

values

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

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

valueOf

public static Action 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

value

public String value()

toString

public String toString()
Overrides:
toString in class Enum<Action>


Copyright © 2009-2012 jclouds. All Rights Reserved.