@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddPermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AddPermissionRequest()
Default constructor for AddPermissionRequest object.
|
AddPermissionRequest(String queueUrl,
String label,
List<String> aWSAccountIds,
List<String> actions)
Constructs a new AddPermissionRequest object.
|
Modifier and Type | Method and Description |
---|---|
AddPermissionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getActions()
The action the client wants to allow for the specified principal.
|
List<String> |
getAWSAccountIds()
The Amazon Web Services account numbers of the principals who are to receive
permission.
|
String |
getLabel()
The unique identification of the permission you're setting (for example,
AliceSendMessage ). |
String |
getQueueUrl()
The URL of the Amazon SQS queue to which permissions are added.
|
int |
hashCode() |
void |
setActions(Collection<String> actions)
The action the client wants to allow for the specified principal.
|
void |
setAWSAccountIds(Collection<String> aWSAccountIds)
The Amazon Web Services account numbers of the principals who are to receive
permission.
|
void |
setLabel(String label)
The unique identification of the permission you're setting (for example,
AliceSendMessage ). |
void |
setQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to which permissions are added.
|
String |
toString()
Returns a string representation of this object.
|
AddPermissionRequest |
withActions(Collection<String> actions)
The action the client wants to allow for the specified principal.
|
AddPermissionRequest |
withActions(String... actions)
The action the client wants to allow for the specified principal.
|
AddPermissionRequest |
withAWSAccountIds(Collection<String> aWSAccountIds)
The Amazon Web Services account numbers of the principals who are to receive
permission.
|
AddPermissionRequest |
withAWSAccountIds(String... aWSAccountIds)
The Amazon Web Services account numbers of the principals who are to receive
permission.
|
AddPermissionRequest |
withLabel(String label)
The unique identification of the permission you're setting (for example,
AliceSendMessage ). |
AddPermissionRequest |
withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to which permissions are added.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public AddPermissionRequest()
public AddPermissionRequest(String queueUrl, String label, List<String> aWSAccountIds, List<String> actions)
queueUrl
- The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
label
- The unique identification of the permission you're setting (for example, AliceSendMessage
).
Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and
underscores (_
).aWSAccountIds
- The Amazon Web Services account numbers of the principals who are to receive
permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.actions
- The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public void setQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
queueUrl
- The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
public String getQueueUrl()
The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
Queue URLs and names are case-sensitive.
public AddPermissionRequest withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
queueUrl
- The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
public void setLabel(String label)
The unique identification of the permission you're setting (for example, AliceSendMessage
). Maximum
80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and underscores (
_
).
label
- The unique identification of the permission you're setting (for example, AliceSendMessage
).
Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and
underscores (_
).public String getLabel()
The unique identification of the permission you're setting (for example, AliceSendMessage
). Maximum
80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and underscores (
_
).
AliceSendMessage
).
Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and
underscores (_
).public AddPermissionRequest withLabel(String label)
The unique identification of the permission you're setting (for example, AliceSendMessage
). Maximum
80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and underscores (
_
).
label
- The unique identification of the permission you're setting (for example, AliceSendMessage
).
Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and
underscores (_
).public List<String> getAWSAccountIds()
The Amazon Web Services account numbers of the principals who are to receive permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.
public void setAWSAccountIds(Collection<String> aWSAccountIds)
The Amazon Web Services account numbers of the principals who are to receive permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.
aWSAccountIds
- The Amazon Web Services account numbers of the principals who are to receive
permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.public AddPermissionRequest withAWSAccountIds(String... aWSAccountIds)
The Amazon Web Services account numbers of the principals who are to receive permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.
NOTE: This method appends the values to the existing list (if any). Use
setAWSAccountIds(java.util.Collection)
or withAWSAccountIds(java.util.Collection)
if you want
to override the existing values.
aWSAccountIds
- The Amazon Web Services account numbers of the principals who are to receive
permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.public AddPermissionRequest withAWSAccountIds(Collection<String> aWSAccountIds)
The Amazon Web Services account numbers of the principals who are to receive permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.
aWSAccountIds
- The Amazon Web Services account numbers of the principals who are to receive
permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.public List<String> getActions()
The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for
ActionName.n
also grants permissions for the corresponding batch versions of those actions:
SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public void setActions(Collection<String> actions)
The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for
ActionName.n
also grants permissions for the corresponding batch versions of those actions:
SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
actions
- The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public AddPermissionRequest withActions(String... actions)
The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for
ActionName.n
also grants permissions for the corresponding batch versions of those actions:
SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public AddPermissionRequest withActions(Collection<String> actions)
The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for
ActionName.n
also grants permissions for the corresponding batch versions of those actions:
SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
actions
- The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public String toString()
toString
in class Object
Object.toString()
public AddPermissionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()